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

Re: Hyphenation pattern registration

On Mon, Apr 30, 2012 at 1:30 PM, Norbert Preining <preining@logic.at> wrote:
> On So, 29 Apr 2012, Theppitak Karoonboonyanan wrote:
>> - Install loadhyph-th.tex which loads appropriate pattern file
>>   based on 8-bit/UTF-8 encoding.
> Be warned, you package is still faulty! Pleae take a look at the
> current loadhyph-*.tex files. WHy, we support now platex
> (Japanese TeX), so you have to have a new check. Here I manually
> changed theloadhyph-th.tex so that it looks like:
> \begingroup
> \ifx\kanjiskip\undefined
> % Test for native UTF-8 (which gets only a single argument)
> % That's Tau (as in Taco or ΤΕΧ, Tau-Epsilon-Chi), a 2-byte UTF-8 character
> \def\testengine#1#2!{\def\secondarg{#2}}\testengine Τ!\relax
> \ifx\secondarg\empty
>    \message{UTF-8 Thai Hyphenation Patterns}
>    \input hyph-th-utf8.tex
> \else
>    \message{LTH Thai Hyphenation Patterns}
>    \input hyph-th.tex
> \fi\else
>  \message{Thai patterns not supoprted on ptex}
> \fi
> \endgroup
> And then it worked. Otherwisse format building with texlive-lang-cjk
> will fail.

OK. I have committed the change to upstream SVN.
Thanks for the suggestion.

> Please adapt your file (loader) to the current necessity, or
> change your patterns to a format that it is readable by platex,
> iethat the patterns are encoded with ^^ notation.

What is the content supposed to encode? Hexadecimals of
the UTF-8 contents?

Theppitak Karoonboonyanan

Reply to: