[tex-hyphen] tex patterns as lua files

Karl Berry karl at freefriends.org
Wed Apr 7 17:48:59 CEST 2010


Elie -- I don't have a solution, but it is completely unsurprising to me
that changing \addlanguage to take an argument fails.  The argument can
hardly be guaranteed to contain only valid-for-a-control-sequence
tokens.  This can't be the right approach.

k

Date: Wed, 7 Apr 2010 12:08:53 +0300
From: Élie Roux <elie.roux at telecom-bretagne.eu>
To: Mojca Miklavec <mojca.miklavec.lists at gmail.com>
Cc: Manuel Pégourié-Gonnard <mpg at elzevir.fr>,
        Heiko Oberdiek <oberdiek at uni-freiburg.de>,
        Arthur Reutenauer <arthur.reutenauer at normalesup.org>,
        Taco Hoekwater <taco at elvenkind.com>,
        François Charette <firmicus at ankabut.net>,
        Karl Berry <karl at freefriends.org>,
        Khaled Hosny <khaledhosny at eglug.org>
Subject: Re: tex patterns as lua files

Hello,

I need a little help on the modification of hyphen.cfg: I need to have
the correspondence between the name of a language and its id in the
format in order to load the patterns correctly, so I tried to modify
line 98 of hyphen.cfg this way:

\else
  \def\addlanguage{\alloc at 9\language\chardef\@cclvi}
\fi

transformed in

\else
  \def\addlanguage#1{%
    \alloc at 9\language\chardef\@cclvi{#1}%
    \ifx\directlua\@undefined\else
        \expandafter\xdef\csname bbl at luatex@#1 at id\endcsname{\the\last at language}%
    \fi
  }
\fi

But with this modification, when I try to build the format, I get
errors about a missing \endcsname... As it seems to highly interfere
with LaTeX internals, it seems a bit beyond my knowledge to fix
this... Could a LaTeX guru (Heiko?) tell me how to fix this error?

Thank you,
-- 
Elie


More information about the tex-hyphen mailing list