From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49067 Path: news.gmane.org!not-for-mail From: Khaled Hosny Newsgroups: gmane.comp.tex.context Subject: Re: \framed (and others) don't honor directional switches Date: Sat, 4 Apr 2009 17:05:58 +0200 Message-ID: <20090404150558.GA15057@khaled-laptop> References: <20090403123501.GA12675@khaled-laptop> <49D6075C.80106@wxs.nl> <20090403204723.GA28189@khaled-laptop> <49D67CE5.1080802@wxs.nl> <20090403234820.GA4586@khaled-laptop> <49D737F2.9010806@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0856927913==" X-Trace: ger.gmane.org 1238857624 20144 80.91.229.12 (4 Apr 2009 15:07:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Apr 2009 15:07:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Apr 04 17:08:23 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 1Lq7Tp-00012i-T7 for gctc-ntg-context-518@m.gmane.org; Sat, 04 Apr 2009 17:08:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F38361FB49; Sat, 4 Apr 2009 17:06:52 +0200 (CEST) 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 12708-03; Sat, 4 Apr 2009 17:06:19 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D6DA11FADC; Sat, 4 Apr 2009 17:06:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9F5861FADC for ; Sat, 4 Apr 2009 17:06:16 +0200 (CEST) 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 05109-02-7 for ; Sat, 4 Apr 2009 17:06:09 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id 2A3221FA4C for ; Sat, 4 Apr 2009 17:06:09 +0200 (CEST) Original-Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.177]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n34F66eI030949 for ; Sat, 4 Apr 2009 17:06:07 +0200 Original-Received: by wa-out-1112.google.com with SMTP id j5so830179wah.2 for ; Sat, 04 Apr 2009 08:06:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=SYCXdS6yBFeO+Zp4+3NJaw6WImDX9/GKEte/PYuFOQE=; b=W+zFVrWZyDsZFirWLJHndGSbf2VGSo3RNXcGurBMNmtLa/gTCSgSR1C4gUak0RGS9f 3cAdGgz/wfPfEc+sRWVRO2nP8MGXA6+3PXoSs5NShAYiieiN7ZwqoaMnCuPZpacStnrF QKt5fsqu4Fqd8+1srh0QGedJmk+YHJ8NXHyG4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=tapG8hJjJ/oQh9U14/ysAhpiFnAUG9hP6exsD5X9CttxTXxcYL0RQezlxw5p2mPHua aB41Z5grbm6Tfd+KW+yvCxAZ7J6nQiHDMeKldkMlLzpXpy+LyvdUt6ZNuu46vwHTK32m mLGfmVo1YBtbKWzY33pESbvmGNu1vkZ8GACx4= Original-Received: by 10.115.18.3 with SMTP id v3mr1226215wai.32.1238857565497; Sat, 04 Apr 2009 08:06:05 -0700 (PDT) Original-Received: from localhost ([41.237.40.221]) by mx.google.com with ESMTPS id k14sm3356309waf.23.2009.04.04.08.06.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 04 Apr 2009 08:06:04 -0700 (PDT) In-Reply-To: <49D737F2.9010806@wxs.nl> User-Agent: Mutt/1.5.18 (2008-05-17) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.146.177; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 203876017 - a6e36b45804f - 20090404 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:49067 Archived-At: --===============0856927913== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 04, 2009 at 12:35:30PM +0200, Hans Hagen wrote: > Khaled Hosny wrote: > indeed, so we're looking into it now (an dlet's forget about the =20 > page/bodydir for the moment) > > since textdir and pardir go hand-in-hand i suggest the following > > \setuplayout[direction=3Dr2l] % also influences general layout issues I assume that will mirror all layout elements like double sided page numbering, right and left pages etc. right? > \setupalign [r2l] % textdir and pardir > \setuparranging[direction=3Dr2l] % will flush pages backward > > so l2r and r2l values; as they are part of the align mechanism then, =20 > they are automatically part of all commands that have a align key This sounds very good for me. While we are in it, I'd suggest that the current implicit bidi to be revised, currently it is broken. I suggest to be implement Unicode BiDi algorithm[1], and the "higher-level protocols[2]" part is worthy investigating. Also, I think it should be decoupled from character mirroring, so that one can enable mirroring while explicitly setting text direction. Also, some characters that had assigned mirrored property in Unicode 5.0.0 has been reversed in later revisions[3] because it "affects deployed data" (the source of all evil!), this includes quotation marks, so we need to handle mirroring of those characters as part of the suggested higher-level protocols as well. [1]http://www.unicode.org/reports/tr9/ [2]http://www.unicode.org/reports/tr9/#Higher-Level_Protocols [3]http://unicode.org/versions/corrigendum6.html Regards, Khaled --=20 Khaled Hosny Arabic localiser and member of Arabeyes.org team Free font developer --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAknXd1UACgkQRoqITGOuyPKvcgCfZgc3slhPq3usmhv2V/p9dxPg pT8An2+HEvF4MfQLhv4zc+mG8oIg/bc5 =nmgT -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4-- --===============0856927913== 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 ___________________________________________________________________________________ --===============0856927913==--