From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69477 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Sanskrit Devanagari characters Date: Fri, 24 Jun 2011 03:06:03 -0400 (EDT) Message-ID: References: <1308783116.3578.23.camel@kip-laptop> <20110623043639.GA22664@khaled-laptop> <1308875122.9217.1.camel@kip-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-74952054-1308899169=:15864" X-Trace: dough.gmane.org 1308899204 9509 80.91.229.12 (24 Jun 2011 07:06:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Jun 2011 07:06:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 24 09:06:38 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qa0TO-0005zY-2O for gctc-ntg-context-518@m.gmane.org; Fri, 24 Jun 2011 09:06:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C8629CADFA; Fri, 24 Jun 2011 09:06:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GZ2lqUNiF+0g; Fri, 24 Jun 2011 09:06:30 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2059CADD7; Fri, 24 Jun 2011 09:06:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6FD48CADD7 for ; Fri, 24 Jun 2011 09:06:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5m+-CEHdpA5l for ; Fri, 24 Jun 2011 09:06:16 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id EE2AECADC2 for ; Fri, 24 Jun 2011 09:06:15 +0200 (CEST) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p5O76B7Q015238 for ; Fri, 24 Jun 2011 09:06:15 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096681357.dsl.bell.ca [65.94.7.141]) By hellskitchen.mr.itd.umich.edu ID 4E043761.92718.4103 ; Authuser adityam; 24 Jun 2011 03:06:09 EDT In-Reply-To: <1308875122.9217.1.camel@kip-laptop> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.82; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0eEXH6ceF - 816b57e66336 - 20110624 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:69477 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-74952054-1308899169=:15864 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE 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=20 module [1] supports pre and postambles (@Mojca: you needed these for=20 gnuplot module). You can use: \usemodule[filter] \defineexternalfilter[mkii] [filter=3D{texexec --xtx --result=3D\externalfilterou= tputfile }, output=3D\externalfilterbasefile.pdf, directory=3Doutput, continue=3Dyes, readcommand=3D\readMKII] \define[1]\readMKII {\dontleavehmode\externalfigure[#1][location=3Dlohi]} \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=3D"Lohit-Hindi" at 12pt \starttext \startTEXpage[foregroundstyle=3D\devnagari] \stopmkiipreamble \startmkiipostamble \stopTEXpage \stoptext \stopmkiipostamble \starttext Check if this works. \startmkii \startlines =E0=A4=9C=E0=A4=BE=E0=A4=A4=E0=A4=BF =E0=A4=A8 =E0=A4=AA=E0=A5=82=E0=A4=9B= =E0=A5=8B =E0=A4=B8=E0=A4=BE=E0=A4=A7=E0=A5=81 =E0=A4=95=E0=A5=80, =E0=A4= =AA=E0=A5=82=E0=A4=9B =E0=A4=B2=E0=A5=80=E0=A4=9C=E0=A4=BF=E0=A4=8F =E0=A4= =97=E0=A5=8D=E2=80=8D=E0=A4=AF=E0=A4=BE=E0=A4=A8=E0=A5=A4 =E0=A4=AE=E0=A5=8B=E0=A4=B2 =E0=A4=95=E0=A4=B0=E0=A5=8B =E0=A4=A4=E0=A4=B2= =E0=A4=B5=E0=A4=BE=E0=A4=B0 =E0=A4=95=E0=A5=87, =E0=A4=AA=E0=A4=A1=E0=A4=BC= =E0=A4=BE =E0=A4=B0=E0=A4=B9=E0=A4=A8 =E0=A4=A6=E0=A5=8B =E0=A4=AE=E0=A5=8D= =E2=80=8D=E0=A4=AF=E0=A4=BE=E0=A4=A8=E0=A5=A4=E0=A5=A4 \stoplines \stopmkii \stoptext % \inlinemkii does not currently work with pre- and postamble Aditya [1]: https://github.com/adityam/filter/blob/dev/ --8323328-74952054-1308899169=:15864 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-74952054-1308899169=:15864--