[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?
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/02/03
- Re: XeTeX encoding problem, Gavin Smith, 2016/02/07
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/02/07
- Re: XeTeX encoding problem, Gavin Smith, 2016/02/07
- Re: XeTeX encoding problem, Gavin Smith, 2016/02/07
- Re: XeTeX encoding problem,
Masamichi HOSODA <=
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/02/07
- Re: XeTeX encoding problem, Gavin Smith, 2016/02/07
- Re: XeTeX encoding problem, Masamichi HOSODA, 2016/02/08
- Re: XeTeX encoding problem, Gavin Smith, 2016/02/08