[luatex] Setting language inside nodelist

Taco Hoekwater taco at elvenkind.com
Mon Sep 21 10:07:16 CEST 2009


Patrick Gundlach wrote:
> Hello again...
> 
> I try to set the language inside a nodelist. Let's say I have done 
> something like
> 
> l=lang.new()
> l:patterns([==[
> ... for example german hyphenation patterns ..
> ]==])
> l:id()  -- returns 1
> 
> Now \language1 switches to the german hyphenation patterns.
> 
> But when I go thru the nodelist with the pre_linebreak_filter, it is not 
> enough to set the lang fields in the glyph nodes to 1. I have to 
> explicitly say \language1 in my TeX text. Why is this? There are no 
> other nodes where I can set the lang field.

Hm, this sounds a bit like a bug. Can you create a tracker.luatex.org
item along with a full example file?

Best wishes,
Taco


More information about the luatex mailing list