[luatex] \Udelcodenum as a number

David Carlisle d.p.carlisle at gmail.com
Sun Apr 26 19:03:59 CEST 2015


The file


\Udelcode`a=0 "28

\Udelcodenum`a= "000028



produces the error

! You can't use `\Udelcodenum' after \the.

In each case (using TL2015 pretest luatex)

These primitives are documented as being "compatible with xetex", but
xetex does not give an error here and produces


that is
"40000028 and "28
(I think I'd have expected "28 in both cases, but I'll query that
on xetex list).

Is it intended that \Udelcodenum  can be used to extract the
delcode assigned to a character as a number?

Incidentally if you use \Udelcode rather than \Udelcodenum
in the above you get an error message that implies
\Udelcodenum might work:

! Can't use \Udelcode as a number (try \Udelcodenum).


I came across this trying to debug \string in xetex and started
to collect some test files for extended primitives common to
\xetex and luatex here

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20150426/8ae0af40/attachment.html>

More information about the luatex mailing list