[XeTeX] problem with ~ in Mapping=velthuis-sanskrit

Zdenek Wagner zdenek.wagner at gmail.com
Thu Nov 12 11:44:40 CET 2020

Just to add, 12% is definitely wrong because it does not end the
number, the number ends at a non-number. If you type
3 sons

you will get an error that 123 is not allowed here. You should end it
either with a space or with a \relax.

Zdeněk Wagner

čt 12. 11. 2020 v 11:36 odesílatel David Carlisle
<d.p.carlisle at gmail.com> napsal:
> >    \catcode`\~=12%
> changing catcodes in an environment looks wrong (the % after the 12 is definitely wrong)  if you change catcodes then the definition cannot work in the argument of any command (for the same reasons that \verb does not work in command arguments) . Leave ~ active but make it expand to the inactive one eg
> \edef~{\string~}%

More information about the XeTeX mailing list.