[NTG-context] UTF-8 XML to IL2
Adam Lindsay
atl at comp.lancs.ac.uk
Thu Jan 20 17:13:12 CET 2005
Vit Zyka said this at Thu, 20 Jan 2005 16:06:55 +0100:
>
>please, I have UTF-8 XML file and I want to typeset with IL2 (czech)
>font. What I have to do?
>
>Thank you
>Vit Zyka
>
>P.S. I tried:
> \useregime[utf]
> \defineXMLenvironment[doc] \starttext \stoptext
> \processXMLfile{manaana.xml}
It depends on how your il2 font is defined locally (like in terms of the
typescript), but it should work with something like:
\useregime[utf]
\usetypescript [all] [latin-modern] [il2]
\setupbodyfont[reset]
\setupbodyfont[cmr]
\defineXMLenvironment...(etc.)
>But I guess the Unicode -> IL2 mapping is missing.
There's a Unicode -> ConTeXt named glyph mapping (unic-*),
and a ConTeXt named glyph -> ISO Latin 2 mapping (enco-il2),
so it *should* work!
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Adam T. Lindsay, Computing Dept. atl at comp.lancs.ac.uk
Lancaster University, InfoLab21 +44(0)1524/510.514
Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
More information about the ntg-context
mailing list