On 7 February 2016 at 14:20, Masamichi HOSODA <[email protected]> wrote:
> \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?