ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* UTF-8 XML to IL2
@ 2005-01-20 15:06 Vit Zyka
  2005-01-20 16:13 ` Adam Lindsay
  0 siblings, 1 reply; 2+ messages in thread
From: Vit Zyka @ 2005-01-20 15:06 UTC (permalink / raw)


Dear ConTeXters,

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}
But I guess the Unicode -> IL2 mapping is missing.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: UTF-8 XML to IL2
  2005-01-20 15:06 UTF-8 XML to IL2 Vit Zyka
@ 2005-01-20 16:13 ` Adam Lindsay
  0 siblings, 0 replies; 2+ messages in thread
From: Adam Lindsay @ 2005-01-20 16:13 UTC (permalink / raw)


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@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-20 16:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-20 15:06 UTF-8 XML to IL2 Vit Zyka
2005-01-20 16:13 ` Adam Lindsay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).