On Sun, 2011-06-26 at 08:44 +0200, Mojca Miklavec wrote:
On Sun, Jun 26, 2011 at 02:22, Kip Warner wrote:
On Thu, 2011-06-23 at 07:58 +0200, Mojca Miklavec wrote:
Or produce the whole document with ConTeXt + XeTeX :)
I would, but getting ConTeXt alone up and running has taken weeks.
If you have it up and running, you can use it now also for XeTeX.
The only difference is that you have to run "texexec --xtx filename" as opposed to "context filename".
You'd think it would just be something really simple like \switchfont[devangari] तरीकिन \unswitchfont
With ConTeXt+XeTeX it boils down to:
% this is plain xetex font switch; see next example \font\devanagari="Devanagari MT:script=Deva" \starttext {\devanagari तरीकिन} \stoptext
Or the following one that could work in both XeTeX and LuaTeX with MKIV:
\definefontfeature[devanagari][script=deva] \definefontsynonym[devanagari][name:Devanagari MT][features=devanagari]
\starttext {\definedfont[devanagari] तरीकिन} \stoptext
See attachments. XeTeX should work fine for you, the only question is whether you need any MKIV features or not. If you do need them, you could use Aditya's approach to insert snipets compiled with XeTeX (it will happen automatically), if you don't need them you just take XeTeX and you are done. The example that you sent also works fine in ConTeXt MKIV, but as soon as it comes to slightly more complex ligatures, LuaTeX won't render them properly without writing some additional support.
Mojca
Thanks Mojca. The problem is it looks like XeTeX may not fully support some of the features I need like mathematical characters and such yet. Although I have no doubt it probably will eventually. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com