[Dev-luatex] UTF-16 in \pdfoutline
Taco Hoekwater
taco at elvenkind.com
Tue Dec 11 09:41:52 CET 2007
Hans Hagen wrote:
>>
>> This fails with 'Text line contains an invalid utf-8 sequence.' (not
>> surprising, since the text is UTF-16 big endian). If I want to pass the
>> UTF-16-encoded string i.e. to \pdfoutline (since PDF bookmarks can be
>> encoded in UTF-16), how do I do this?
>>
>> (Maybe a callback would be useful, i.e. `convert_pdf_text')
>
> you can move all 'bytes' to a reserved private area (see manual) and
> then luatex will write them with that offset subtracted; think of a
> private 256 slot area representing bytes
For now, that is what will have to be done. But I agree that is ugly,
and either a callback or primitive or lua pdf.outline() access is
called for.
Best wishes,
Taco
More information about the dev-luatex
mailing list