[luatex] inserting

Paul Isambert zappathustra at free.fr
Sun Jun 26 12:51:16 CEST 2011


Le 26/06/2011 12:44, Arno Trautmann a écrit :
> just to clarify: it
> worked for the first line, because there is another node before the
> first glyph node, so my whatsit is not inserted as the first node of
> that list?

Yes. There's a whatsit and the identation box at the beginning of the 
first line.

>>>    But I don't
>>> see what I'm doing wrong …
>>> To understand what mistake I'm making, I tried to use
>>>
>>> letter = node.first_glyph(line) [or line.head?]
>>>
>>> instead of the for loop, but then letter doesn't seem to be a node at
>>> all.
>> That should be node.first_glyph(line.head) (otherwise you browse over
>> the list of nodes of which the line is part, not the list of nodes which
>> is the contents of the line). But anyway node.first_glyph only finds
>> glyph nodes (id 37) with subtype 1 (real glyphs). It's not quite clear
>> to me what's the difference between a glyph-character (subtype 0) and a
>> glyph-glyph (subtype 1), but the function is concerned with the latter
>> only.
> So that is ment by “with a subtype indicating it is a
> glyph”. Indeed, I thought what I had were glyphs, but appearently they
> are not. Do you have a suggestion where I can find information about this?

Apart from Taco's head, I know of no better place to get information 
than the manual or your own experiments.

Best,
Paul


More information about the luatex mailing list