[XeTeX] xetex and xmltex

josef dev david_jsf at yahoo.com
Thu Mar 6 14:58:14 CET 2008


Hi,

I was trying xmltex in XeTeX. It is running fine but I couldn't understand how can I translate or convert a unicode entity (e.g. ā for letter "ā") into a UTF-8 character (for given example "Ä") internally.

When I compile XML file using XeTeX then UTF-8 characters (e.g. "Ä") get output directly from font (my assumption) without any explicit tex definition for this while uncode entity (e.g. ā) expects the explicit definition with the command "\UnicodeCharacter{x0101}{\={a}}"

On the other hand when I compile XML file using LaTeX then in both the cases (i.e. for UTF-8 character sequence "Ä" and uncode entity ā) it expect the command "\UnicodeCharacter{x0101}{\={a}}" defined. If it is not defined then it do not give any output for UTF-8 and unicode entity.

Can somebody tell why is this difference and how one can internally force (using tex macros added to xmltex.tex) unicode entities to be translated automatically in xetex as it is translating UTF-8 encoded characters to get the correct output without defining each unicode character using  "\UnicodeCharacter{x####}{TeX definition}"

If my question is not clear then please write.

Thanks
David

 


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20080306/0cc72b55/attachment.html 


More information about the XeTeX mailing list