bug-texinfo
[Top][All Lists]
Advanced

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

Re: XeTeX encoding problem


From: Gavin Smith
Subject: Re: XeTeX encoding problem
Date: Sun, 7 Feb 2016 14:57:49 +0000

On 7 February 2016 at 14:20, Masamichi HOSODA <address@hidden> 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?



reply via email to

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