[tex-hyphen] loading two different hyphenation patterns by default

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sun Mar 18 23:30:47 CET 2012


2012/3/17 Pablo Rodríguez <oinos at web.de>:
> Hi there,
>
> I have this sample file:
>
> \documentclass[11pt]{book}
> \usepackage{fontspec}
> \setmainfont{Theano Didot}
> \begin{document}
> Default hyphenation is English (fine for me).
> I need to hyphenate χαλεπὰ τὰ καλά (ancient Greek also).
> \end{document}
>
> LuaTeX can load two hyphenation patterns for the same text. This leads
> to errors when typesetting languages that use the same script. But it is
> extremely useful with languages that have different scripts.
>
> How could I load US English hyphenation patterns and ancient Greek
> hyphenation patterns in the example above? (ConTeXt has
> "\setuplanguage[en][patterns=en,agr]", but I have no idea how to do that
> in Lua(La)TeX.)

This is probably the right mailing list, however:

(a) There is currently no working-out-of-the-box solution for that yet.
(b) Making it work for yourself only must be reasonably easy to
implement for somebody knowledgeable with LuaTeX (see loadlanguage in
tex/luatex/hyph-utf8/luatex-hyphen.lua).
(c) Making a systematic approach and enabling this on the package
level would require either modification of polyglossia (once
polyglossia starts supporting luatex) or some modifications of babel
or maybe the files under tex/luatex/hyph-utf8. But I'm not the author
of those files and it would help if Manuel (author) or anyone else
would jump in. I'm not even sure what the (babel) syntax should be.

Were you looking for (b) or (c)?

Mojca



More information about the tex-hyphen mailing list