From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Sanskrit Devanagari characters
Date: Fri, 24 Jun 2011 03:06:03 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.02.1106240258520.15864@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <1308875122.9217.1.camel@kip-laptop>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1882 bytes --]
On Thu, 23 Jun 2011, Kip Warner wrote:
> On Thu, 2011-06-23 at 06:36 +0200, Khaled Hosny wrote:
>> ConTeXt MkIV (assuming it is what you use) has no proper support for
>> Devanagari or other Indic scripts. Since you need only few words, you
>> can produce them externally (say ConTeXt MkII with XeTeX or Inkscape)
>> and include the resultant PDF as inline figure.
>
> It's an inelegant, albeit workable solution - but perhaps the only way.
> Thanks for your help.
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/
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-06-24 7:06 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 [this message]
2011-06-24 21:36 ` Kip Warner
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=alpine.LNX.2.02.1106240258520.15864@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--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).