[Dev-luatex] Unicode in \pdfinfo

Jonathan Sauer Jonathan.Sauer at silverstroke.com
Tue Jul 1 10:38:08 CEST 2008


> slightly more efficient ... (char and byte accept multiple 
> arguments) and you can use write which is faster too)


> in context i use something quick and dirty (no > 0x10000 
> checking but from your function i can deduce the magic umbers -)

Well, they are simply the ones mentioned in

> function pdf.hexify(str)
>      texwrite("feff")
>      for b in str:utfvalues() do
>          texwrite(("%04x"):format(b))
>      end
> end
> \pdfinfo{/Title(\directlua0{pdf.hexify<'my title'>})}
> so <> instead of () as string delimiter

How does that work?


More information about the dev-luatex mailing list