[tex-hyphen] Customizing patterns

Javier Bezos listas at tex-tipografia.com
Sat Feb 6 09:56:22 CET 2010


Hi Karl,

I'll work it out a bit.

Let assume we want in a document something like:

\usepackage{localhyphens}
\setlocalhyphen{tl=liquid,prefixes=off}

With luatex, that's all. Well, the package has to be written,
of course.

With standard TeX, a preloaded set of patterns is necessary,
so:

- create a file localeshyph.conf with those setting
- recreate formats, so that if that file exists an
additional set of patters is created (iir, it's
possible without modifying language.dat - to be tested).
Save those settings in the format.
- When the document above is typeset, verify the
saved settings with those given in \setlocalhyphen.
- If they match, it's ok
- If not, raise an error (or a warning), save the
settings in a new localeshyph.conf and recreate
formats.

The process can be improved, of course, but this is the
basic idea. Note the local settings are not implicit,
but explicit, so that if the document is distributed the
receiver will be able to use the right patterns.

Cheers
Javier


More information about the tex-hyphen mailing list