[tex-live] Luatex formats and hyphenation patterns
Khaled Hosny
khaledhosny at eglug.org
Thu Feb 25 14:33:07 CET 2010
On Wed, Feb 24, 2010 at 08:08:32PM +0200, Khaled Hosny wrote:
> On Tue, Feb 23, 2010 at 10:22:57PM +0100, Heiko Oberdiek wrote:
> > * \patterns (and \hyphenation) are *global* assignments,
> > therefore \gdef should be used to define "\plded@#1".
> >
> > * Loading at runtime means, the catcodes are not known any longer.
> > Before loading a file, the correct catcodes must be set
> > and restored after loading. If there is a resource managment
> > for catcode tables, then a catcode table can be used for
> > this purpose.
> >
> > LuaTeX also provides library `lang'. If I remember Taco correctly,
> > the patterns as plain Lua string are faster than \patterns.
> > Loading the patterns via Lua also solves the catcode problem.
> > Probably it is not to difficult for the hyph-utf8 project
> > to provide lua pattern input files that are generated automatically
> > from the project data?
> >
> > A strict name convention can help to detect whether the
> > patterns for a language is available as Lua code and/or TeX code.
>
> Here is another attempt:
> * used \gdef instead of \def for "\plded@#1".
> * redefined \patterns and \hyphenation to use the corresponding lua
> functions.
Another patch with slight comment update.
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: etex.src.diff
Type: text/x-diff
Size: 2440 bytes
Desc: not available
URL: <http://tug.org/pipermail/tex-live/attachments/20100225/85fa6711/attachment.bin>
More information about the tex-live
mailing list