Taco Hoekwater wrote:
Wolfgang Schuster wrote:
Hi Hans,
you showed a while ago how the actualtext function of pdf works
and i have a module where i would use it but letters outside of
ascii appear wrong when i copy the text
\starttext
text \pdfliteral{/Span <</ActualText (Müller) >> BDC}Meier\pdfliteral{EMC} text
\stoptext
Is /ActualText supposed to be in PDFDoc Encoding?
nopdfcompression
\def\pdfactualtext#1#2%
{\pdfliteral direct{/Span <</ActualText
\ctxlua{tex.write(lpdf.tosixteen("#2"))} >> BDC}#1\pdfliteral direct{EMC}}
\starttext
text \pdfactualtext{Meier}{Müller} text
\stoptext
-----------------------------------------------------------------
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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________