On Fri, 2011-06-24 at 03:06 -0400, Aditya Mahajan wrote:
If you really have to do it this way .... the dev version of the filter module [1] supports pre and postambles (@Mojca: you needed these for gnuplot module). You can use:
\usemodule[filter]
\defineexternalfilter[mkii] [filter={texexec --xtx --result=\externalfilteroutputfile }, output=\externalfilterbasefile.pdf, directory=output, continue=yes, readcommand=\readMKII]
\define[1]\readMKII {\dontleavehmode\externalfigure[#1][location=lohi]}
\startmkiipreamble \enableregime[utf-8] % I don't know how to setup typescripts with xetex % The rending is wrong. I think that one needs to enable % some language specific ligatures \font\devnagari="Lohit-Hindi" at 12pt \starttext \startTEXpage[foregroundstyle=\devnagari] \stopmkiipreamble
\startmkiipostamble \stopTEXpage \stoptext \stopmkiipostamble
\starttext
Check if this works.
\startmkii \startlines जाति न पूछो साधु की, पूछ लीजिए ग्यान। मोल करो तलवार के, पड़ा रहन दो म्यान।। \stoplines \stopmkii
\stoptext % \inlinemkii does not currently work with pre- and postamble
Aditya
Hey Aditya. That's pretty convuluted and a bit too much for one or two words of Sanskrit in a document. I think I'll hold off until there is native straightforward support. Thanks anyways. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com