From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47126 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: XeTeX and/or LuaTeX? Date: Sat, 31 Jan 2009 00:50:10 +0100 Message-ID: <49839232.2010301@wxs.nl> References: <4982D69C.5050101@gmail.com> <68bfdc900901300239p239c4a43q5fc5d2b6c84e269b@mail.gmail.com> <4982E0A7.7060204@gmail.com> <49830B8A.8050008@wxs.nl> <498389D7.1080006@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------030709060108010309070802" X-Trace: ger.gmane.org 1233359516 9281 80.91.229.12 (30 Jan 2009 23:51:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2009 23:51:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 31 00:53:09 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LT3Aa-0001m0-9f for gctc-ntg-context-518@m.gmane.org; Sat, 31 Jan 2009 00:53:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F1EC91FDCC; Sat, 31 Jan 2009 00:51:47 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19177-03; Sat, 31 Jan 2009 00:50:50 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9CD601FDCE; Sat, 31 Jan 2009 00:50:50 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4502F1FDCE for ; Sat, 31 Jan 2009 00:50:49 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21917-01 for ; Sat, 31 Jan 2009 00:50:12 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id 4DC5E1FDCC for ; Sat, 31 Jan 2009 00:50:12 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0UNoA0v020319 for ; Sat, 31 Jan 2009 00:50:11 +0100 Original-Received: from [10.100.1.107] (unverified [10.100.1.107]) by controller-1 (SurgeMail 3.9e) with ESMTP id 7435-1840426 for ; Sat, 31 Jan 2009 00:50:10 +0100 User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) In-Reply-To: <498389D7.1080006@gmail.com> X-Originating-IP: 10.100.1.107 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=16; city=Dronten; latitude=52.5333; longitude=5.7167; http://maps.google.com/maps?q=52.5333,5.7167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 173033187 - f67fba3fe65c X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47126 Archived-At: This is a multi-part message in MIME format. --------------030709060108010309070802 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable J.A.J. Pater wrote: > I've already send a mail in reply to Hans, but it was to big since I=20 > attached the TTF. > I don't know if the moderator will approve of posting fonts. > But it can also be found on the web:=20 > http://scripts.sil.org/cms/scripts/page.php?site_id=3Dnrsi&id=3DEzraSIL= _Home > So the moderator can drop my last mail, it was to extensive anyway. > Installed on my computer [Ubuntu Intrepid 8.10]=20 > /usr/share/fonts/truetype/ttf-sil-ezra/SILEOT.ttf >=20 > I got the font working by adapting the ara-sty from=20 > http://wiki.contextgarden.net/Arabic_and_Hebrew to heb-sty (attached) > I also adapted the example from the above link (attached as test.tex). > I ran it with the minimals. >=20 > Issues I still have: > I don't know how to use Hebrew and Latin text next to each other. > I don't like the font I get with \setlatin > I don't want every word on a new page > I don't have the faintest clue as to what I'm doing inside of heb-sty. >=20 > What's important for me is to use hebrew text inside of latin text. > I'd like to be able to do things like: >=20 > \starttext > This is the word for peace: \hebrew[=D7=A9=D7=9C=D7=9D]. > Isn't that what we all wish for? > \stoptext >=20 > Many thanks to Hans and Mojca! >=20 > Adriaan. >=20 > P.S. If you're interested in what I don't get in ara-sty casu quo heb-s= ty: >=20 > 1. \mainlanguage[hebrew] > The wiki: "Sets the main language to hebrew, so that translatable title= s > are translated to Arabic." > What exactly does "translatable titles" mean in this senctence? > The main language of my document is in Latin. >=20 > 2a. Why all the following stuff: >=20 > \starttypescript [serif] [hebrew] [name] > \usetypescript[serif][fallback] > \definefontsynonym [Serif] [Ezra SIL] [features=3Dhebrew] > \definefontsynonym [SerifItalic] [Ezra SIL] [features=3Dhebrew] > \definefontsynonym [SerifBold] [Ezra SIL] [features=3Dhebrew] > \definefontsynonym [SerifBoldItalic] [Ezra SIL] [features=3Dhebrew] > \stoptypescript >=20 > 2b. What does serif mean? >=20 > 3. I don't get the defining of the directional commands either. >=20 > 4. I absolutely don't get what I'm doing here >=20 > \definestartstop > [hebrewpar] > [commands=3D\Hebrew\HebrewParDir] >=20 > \define[1]\RT > {{\Hebrew\HebrewTextDir#1}} attached a more efficient variant btw: =3D there will be a more high level par direction text dir changer =3D you can use the hebrew font also for latin =3D you can combine fonts into one font *using teh font fallback mechanis= m) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- --------------030709060108010309070802 Content-Type: text/x-tex; name="heb-sty.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="heb-sty.tex" \startenvironment heb-sty \mainlanguage[hebrew] \definefontfeature [hebrew] [mode=node,language=dflt,script=hebr, init=yes,medi=yes,fina=yes,isol=yes, liga=yes,dlig=yes,rlig=yes,clig=yes, mark=yes,mkmk=yes,kern=yes,curs=yes] \starttypescript [serif] [hebrew] \definefontsynonym [EzraSIL] [file:sileot] [features=hebrew] \stoptypescript \starttypescript [serif] [hebrew] [name] \usetypescript[serif][fallback] \definefontsynonym [Serif] [EzraSIL] [features=hebrew] \stoptypescript \starttypescript [hebrew] \definetypeface [hebrew] [rm] [serif] [hebrew] [default] \stoptypescript \def\HebrewParDir {\textdir TRT\pardir TRT} \def\HebrewTextDir{\textdir TRT} \def\LatinParDir {\textdir TLT\pardir TLT} \def\LatinTextDir {\textdir TLT} \usetypescript[hebrew] \define\sethebrew{\HebrewParDir\switchtobodyfont[hebrew,20pt]} \define\setlatin {\LatinParDir \switchtobodyfont[modern,20pt]} \definestartstop[hebrewpar][commands=\hebrew\HebrewParDir] \definestartstop[latinpar] [commands=\Hebrew\LatinParDir] \define[1]\RT{\begingroup\hebrew\HebrewTextDir#1\endgroup} \define[1]\LT{\begingroup\modern\LatinTextDir #1\endgroup} \setcharactermirroring[1] \stopenvironment --------------030709060108010309070802 Content-Type: text/x-tex; name="test.tex" Content-Disposition: inline; filename="test.tex" Content-Transfer-Encoding: quoted-printable % engine=3Dluatex \environment heb-sty \starttext This is a test. \sethebrew test =D7=94=D6=B8=D7=9C=D6=B7=D7=9A test \setlatin walking \stoptext --------------030709060108010309070802 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --------------030709060108010309070802--