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 <[email protected]>
To: Mojca Miklavec <[email protected]>
Cc: Manuel Pégourié-Gonnard <[email protected]>,
        Heiko Oberdiek <[email protected]>,
        Arthur Reutenauer <[email protected]>,
        Taco Hoekwater <[email protected]>,
        François Charette <[email protected]>,
        Karl Berry <[email protected]>,
        Khaled Hosny <[email protected]>
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{\al...@9\language\chardef\@cclvi}
\fi

transformed in

\else
  \def\addlanguage#1{%
    \al...@9\language\chardef\@cclvi{#1}%
    \ifx\directl...@undefined\else
        \expandafter\xdef\csname 
b...@luatex@#...@id\endcsname{\the\last@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

Reply via email to