David Kastrup wrote:
Khaled Hosny
writes: \pdfinfo doesn't seem to support Unicode, when I compile the attached example with luatex I get symbols like هصة instead of the proper (Arabic) Unicode strings. Shouldn't luatex default to Unicode here too?
Khaled Hosny wrote: this is a backend c.q macro package issue ... (btw this can also be done in pdftex, but i never came to enabling the code in context because there was nothign to test) I suspected that, since hyperrref with latex does this, but I found that xetex supports Unicode pdfinfo directly and thought luatex should do
On Fri, Jun 27, 2008 at 11:49:07PM +0200, Hans Hagen wrote: this too.
Yes, hyperref with LaTeX does this, but I recommend looking at _how_ it does this. It is another case of "code nobody but Heiko would come up with and very few people would be able to maintain".
there are two methods (afaik) ... either pushing utf16 in (strings) or hexed utf16 in <strings>; doing that is not so much the problem (pdfdocencoding is more troublesome); as usign with this kind of data the biggest deal is to intercept / handle content that makes no sense in bookmarks (math, tex commands, unexpanded stuff, etc) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------