olsak / OpTeX

OpTeX - LuaTeX format with extended Plain TeX macros
http://petr.olsak.net/optex/
36 stars 14 forks source link

wrong catcodes for unicode chars #149

Closed Udi-Fogiel closed 1 year ago

Udi-Fogiel commented 1 year ago

With plain LuaTeX the following test returns true, while with OpTeX it returns false.

\ifcat אa true\else false\fi
\bye

Is this intentional? I've noticed it when I tried to translate some of OpTeX's macro to hebrew, to ease the typing of a hebrew document.

Udi-Fogiel commented 1 year ago

Also happens with czech letters

\the\catcode`\č % 12 with OpTeX, 11 with plain
\bye
olsak commented 1 year ago

Yes, it is intentional. Only classical plain TeX setting of catcodes 11 is provided.

I hope that if somebody wants to have letters from another language in control sequence names then he/she can set catcode 11 for such letters.

Udi-Fogiel commented 1 year ago

Ok, thanks for the quick response.