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
>
> [1]: https://github.com/adityam/filter/blob/dev/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
signature.asc
Description: This is a digitally signed message part
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
