bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XeTeX encoding problem


From: Masamichi HOSODA
Subject: Re: XeTeX encoding problem
Date: Mon, 08 Feb 2016 00:30:42 +0900 (JST)

>>  \def\DeclareUnicodeCharacterNative#1#2{%
>>    \catcode"#1=\active
>> -  \begingroup
>> -    \uccode`\~="#1\relax
>> -    \uppercase{\gdef~}{#2}%
>> -  \endgroup}
>> +  \ifnativeunicodereplace
>> +    \begingroup
>> +      \uccode`\~="#1\relax
>> +      \uppercase{\gdef~}{#2}%
>> +    \endgroup
>> +  \else
>> +    \begingroup
>> +      \uccode`\.="#1\relax
>> +      \uppercase{\endgroup \def\UTFNativeTmp{.}}%
>> +    \begingroup
>> +      \uccode`\~="#1\relax
>> +      \uppercase{\endgroup \edef~}{\UTFNativeTmp}%
>> +  \fi
>> +}
> 
> I'm not sure if this is correct: shouldn't the conditional be inside a
> single definition, instead of two definitions (starting \gdef~ and
> \edef~) inside the conditional?

Sorry.
It's comletely incorrect.
It can not swith to ``pass-through''.

Even if to use \gdef for ``pass-through'',
it can not switch to ``replace'' again.

Would you revert it?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]