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

Zdenek Wagner zdenek.wagner at gmail.com
Sun Nov 15 01:31:57 CET 2020


Yes, but it did not explain why 12% is wrong.

Zdeněk Wagner
http://ttsm.icpf.cas.cz/team/wagner.shtml
http://icebearsoft.euweb.cz

pá 13. 11. 2020 v 21:49 odesílatel Dominik Wujastyk <wujastyk at gmail.com> napsal:
>
> Didn't we solve this with David's alternative suggestion of using \edef?
>
> https://cikitsa.blogspot.com/2010/09/xelatex-velthuis-encoding-and-palatal.html
>
>
> On Thu, 12 Nov 2020 at 03:46, Zdenek Wagner <zdenek.wagner at gmail.com> wrote:
>>
>> Just to add, 12% is definitely wrong because it does not end the
>> number, the number ends at a non-number. If you type
>> \catcode`\~=12%
>> 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
>> http://ttsm.icpf.cas.cz/team/wagner.shtml
>> http://icebearsoft.euweb.cz
>>
>> č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.