"AR" == Arthur Reutenauer writes:

 >> - patterns generated by hypht2.tex which is similar to hypht1.tex
 >> ("\input hypht2" is present in ruhyphen.tex). i don't know what is
 >> the best way to include them. probably, if you want, i can provide
 >> "flat" file (not macro-generated) with patterns generated by
 >> hypht2.tex which are relevant to the russian language. then it could
 >> also be appended to hyph-ru.tex

 AR>   I would very much welcome that.  After TeX Live 2008 is out, we
 AR> can think about a way to include the hypht?.tex feature into
 AR> hyph-utf8.

i've attached the tarball exhyph.tar.gz which contains:

make-exhyph.pl - perl script to generate additional patterns specific to
  the given alphabet, to be used with font encodings where there is an
  additional hyphen character (such as T1 or T2A).

exhyph-ru.tex - additional patterns for Russian language generated by
  make-exhyph.pl ru > exhyph-ru.tex

exhyph-uk.tex - additional patterns for Ukrainian language generated by
  make-exhyph.pl uk > exhyph-uk.tex

please incorporate this into the hyph-utf8 package.

as you see, the generated patterns contain "forbidden" code:

\begingroup
\lccode45=45
...
\endgroup

this is to make the hyphen character allowed in the \patterns.

the file exhyph-ru.tex should be loaded in addition to hyph-ru.tex, in
case the target font encoding is T2A. to make it useful with xetex one
needs to use font with a separate hyphen character available, in
addition to slot 45, and a few additional ligatures between these hyphens.

as it stands, currently loadhyph-ru.tex loads old ruhyphen patterns for
8-bit engines. it is possible thus to use hyph-utf8-patterns for russian
language by always loading hyph-ru.tex (for 8-bit and utf8 engines, with
addition of conv-utf8-t2a.tex and exhyph-ru.tex for the case of 8-bit engine.

make-exhyph.pl allows to generate patterns targeted to the specific
alphabet, i.e. much smaller set than the one generated by hypht1.tex or
hypht2.tex. and it could be used instead of both hypht1.tex and
hypht2.tex (provided that the appropriate language alphabets are added
to make-exhyph.pl).

probably some more explanation/documentation is needed, which can be
provided later. please let me know if you have any questions.

Best,
v.

Attachment: exhyph.tar.gz
Description: Binary data

Reply via email to