Re: [Dev-luatex] \Udelcodenum doesn't work properly
On 11/18/2022 12:25 PM, Petr Olsak wrote:
Sorry,
I need to set delcodes to Unicode fonts and read them. LuaTeX manual says that
-----
The following new primitives are compatible with XƎTEX:
...
\Udelcode
\Udelcodenum
-----
and XeTeX manual says that \Udelcode <charnum>=<family><slot> can save delcode. and \Udelcodenum can read or save packed <family>/<slot> data (the packed format isn't specified, but it doesn't matter). I am using \Udelcode for setting delcode data. I don't know nothing else how to do this. Now, I need to read saved delcode data using \Udelcodenum for debugging purposes. Is there another way for saving and reading it? I am talking only about Unicode fonts, i.e. there is only single pair <family><slot>, no two pairs like in the classical \delcode. \def\theUdelcodesmallfam {\directlua{tex.print(tex.getdelcode(token.scan_int())[1])}} \def\theUdelcodelargefam {\directlua{tex.print(tex.getdelcode(token.scan_int())[3])}} \def\theUdelcodesmallchar {\directlua{tex.print(tex.getdelcode(token.scan_int())[2])}} \def\theUdelcodelargechar {\directlua{tex.print(tex.getdelcode(token.scan_int())[4])}}
\theUdelcodesmallfam \la\ \theUdelcodelargefam \la\ \theUdelcodesmallchar\la\ \theUdelcodelargechar\la\ (as you can also set them there's actually always two pairs) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (1)
-
Hans Hagen