latex3 / tagpdf

Tagging support code for LaTeX
59 stars 7 forks source link

Avoid issues when object number reaches 2^16 #98

Closed zauguin closed 6 months ago

zauguin commented 6 months ago

Fixes #97.

LuaTeX's .index is primarily intended to support getting the index of a register and is therefore hardcoded to never return values bigger than a valid register index. Since expl3 integers in this range do not correspond to register indices but are chardefs, we can use .mode to avoid this restriction.