[luatex] loading new language patterns
Hans Hagen
j.hagen at xs4all.nl
Sun May 20 17:02:08 CEST 2018
On 5/19/2018 10:27 PM, Luis Rivera wrote:
> I'm trying to understand how to load a new set of language patterns in
> plain luatex. This far, I collect I have to do
>
> %%%
> \directlua{
> grc = lang.new()
grc = lang.new(123)
> pattfile = io.open(kpse.find_file('grchyph.tex'), 'r')
> lang.patterns(grc, pattfile:read('*all'))
> pattfile:close()
> }
>
> \def\greek{\language\grc}
\def\greek{\language123 }
> \greek χαῖρε
> \bye
> %%%
>
> But then I don't know how to access the patterns with a language declaration.
>
> I'm sorry, but I fear the documentation is far too terse on this topic
> for a non-programmer. Any hints are welcome.
it assumes that you know tex (programming)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
More information about the luatex
mailing list