From: Kip Warner <kip@thevertigo.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Sanskrit Devanagari characters
Date: Fri, 24 Jun 2011 14:36:18 -0700 [thread overview]
Message-ID: <1308951378.9217.40.camel@kip-laptop> (raw)
In-Reply-To: <alpine.LNX.2.02.1106240258520.15864@ybpnyubfg.ybpnyqbznva>
[-- Attachment #1.1: Type: text/plain, Size: 1862 bytes --]
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
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
prev parent reply other threads:[~2011-06-24 21:36 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-22 22:51 Kip Warner
2011-06-23 4:36 ` Khaled Hosny
2011-06-23 5:58 ` Mojca Miklavec
2011-06-23 6:06 ` Khaled Hosny
2011-06-23 7:38 ` Hans Hagen
2011-06-23 12:05 ` Daniel Stender
2011-06-24 0:23 ` Kip Warner
2011-06-26 0:22 ` Kip Warner
2011-06-26 6:44 ` Mojca Miklavec
2011-06-26 6:50 ` Aditya Mahajan
2011-06-26 6:59 ` Mojca Miklavec
2011-06-26 9:31 ` Hans Hagen
2011-06-27 2:10 ` Kip Warner
2011-06-27 7:35 ` Mojca Miklavec
2011-06-28 1:39 ` Kip Warner
2011-06-28 1:51 ` Mojca Miklavec
2011-06-28 1:57 ` Kip Warner
2011-06-24 0:25 ` Kip Warner
2011-06-24 7:06 ` Aditya Mahajan
2011-06-24 21:36 ` Kip Warner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1308951378.9217.40.camel@kip-laptop \
--to=kip@thevertigo.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).