From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62259 Path: news.gmane.org!not-for-mail From: Talal Al-Azem Newsgroups: gmane.comp.tex.context Subject: Re: mixed English and Arabic using Simplefonts? Date: Sat, 2 Oct 2010 17:34:22 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1286037288 10593 80.91.229.12 (2 Oct 2010 16:34:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 2 Oct 2010 16:34:48 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Oct 02 18:34:45 2010 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 1P252r-0005NU-4Y for gctc-ntg-context-518@m.gmane.org; Sat, 02 Oct 2010 18:34:45 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 62FD8CA6BB; Sat, 2 Oct 2010 18:34:43 +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 sGlEaEHWqpEf; Sat, 2 Oct 2010 18:34:40 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 597B2CA69E; Sat, 2 Oct 2010 18:34:40 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 66D3ACA69E for ; Sat, 2 Oct 2010 18:34:39 +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 c0RUBLv3l9Yl for ; Sat, 2 Oct 2010 18:34:26 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id D0127CA696 for ; Sat, 2 Oct 2010 18:34:26 +0200 (CEST) Original-Received: from cambridge.eukhosting.net (cambridge.eukhosting.net [92.48.108.230]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o92GOOfZ024143 for ; Sat, 2 Oct 2010 18:24:25 +0200 Original-Received: from alazem.seh.ox.ac.uk ([163.1.175.247]:44369 helo=[10.0.1.5]) by cambridge.eukhosting.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1P252o-0003t1-5T for ntg-context@ntg.nl; Sat, 02 Oct 2010 17:34:42 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1081) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cambridge.eukhosting.net X-AntiAbuse: Original Domain - ntg.nl X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - fastmail.fm X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=92.48.108.230; country=GB; region=P9; city=Maidenhead; latitude=51.5167; longitude=-0.7000; http://maps.google.com/maps?q=51.5167,-0.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aDdQoojQ - 34c02716cf30 - 20101002 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:62259 Archived-At: Dear Wolfgang and Khaled, Thank you both for your replies. This has been very helpful. May I ask one further newbie question of simplefonts: how do I change the font for just the "fallback" font, without affecting the mainfont? Is there a way to do this by setting the size in points, or in scale (percentage), or some other fashion? In fontspec, i was accustomed to something like: \newfontfamily{\arfont}[Script=Arabic,Scale=1.66,WordSpace=1.66]{Scheherazade-Regular} I am sure there are equivalents for these feature (size, scale, wordspace); I've seen many features in the simplefonts pdf. But i'm unsure how to define something like "arfont" using simplefonts. Many thanks, Talal > > \usemodule[simplefonts] > > %\setmainfont[Antykwa Poltawskiego] > \setmainfontfallback[Scheherazade][range={arabic,arabicpresentationformsa,arabicpresentationformsb,arabicsupplement}] > > \starttext > > \input knuth > > \textdir TRT ???? ???????! > > \stoptext > > Wolfgang > > > > ------------------------------ > > Message: 3 > Date: Sat, 2 Oct 2010 11:25:12 +0200 > From: Khaled Hosny > To: mailing list for ConTeXt users > Subject: Re: [NTG-context] mixed English and Arabic using Simplefonts? > Message-ID: <20101002092512.GA1986@khaled-laptop> > Content-Type: text/plain; charset=utf-8 > > On Sat, Oct 02, 2010 at 06:32:05AM +0200, Wolfgang Schuster wrote: >> >> Am 02.10.2010 um 02:16 schrieb Talal Al-Azem: >> >>> My apologies if I'm dumbing down the level of discussion here. But I'm trying to get my head around fonts and bidirectionality using ConTeXt MkIV (as a rather unsophisticated user, not as a developer). >>> >>> To begin with, since it's all bit much at once, I'm trying to use simplefonts. I am unclear how to establish English as my language and its font as my main font (using the default font), and Arabic as a secondary language (using Scheherazade). >>> >>> What would I change in the ara-sty environment found on wiki.contextgarden.net/Arabic_and_Hebrew? Or, if I don't need to use this, should I define my own macro in my tex document for directionality? >>> >>> I'm probably making a mess of some basic things here, but could use some help. I have working familiarity with Fontspec over on the XeLaTeX side of things, but the sparse documentation of simplefonts is leading to my uncertainty as how to proceed. >> >> \usemodule[simplefonts] >> >> %\setmainfont[Antykwa Poltawskiego] >> \setmainfontfallback[Scheherazade][range={arabic,arabicpresentationformsa,arabicpresentationformsb,arabicsupplement}] > > I think there is no need for presentation forms, they are deprecated > symbols not used for entering text. > > -- > Khaled Hosny > Arabic localiser and member of Arabeyes.org team > Free font developer > > > ------------------------------ > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ > > > End of ntg-context Digest, Vol 76, Issue 8 > ****************************************** ___________________________________________________________________________________ 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 ___________________________________________________________________________________