I think this is not too difficult, the (1-indexed) column can be computed as loc - start + 1 provided state != token_list.
I already have a proof of concept implementation at user202729/luatex@synctex-column , which appears to work reasonably for simple documents.
I'd like to ask:
-
is there sufficient interest in this idea?
-
while I implement this, I don't really understand the memory layout, which leads to me packing the line and column into a single int like a bit mask. This leads to a limitation of file length less than $2^{24}$ lines and column less than $2^8$.
How can I modify the memory layout to add an extra field column into the box?
I think this is not too difficult, the (1-indexed) column can be computed as
loc - start + 1providedstate != token_list.I already have a proof of concept implementation at user202729/luatex@synctex-column , which appears to work reasonably for simple documents.
I'd like to ask:
is there sufficient interest in this idea?
while I implement this, I don't really understand the memory layout, which leads to me packing the$2^{24}$ lines and column less than $2^8$ .
lineandcolumninto a singleintlike a bit mask. This leads to a limitation of file length less thanHow can I modify the memory layout to add an extra field
columninto the box?