From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/48822 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: MetaPost graphics with TRT direction Date: Thu, 26 Mar 2009 23:31:48 +0100 Message-ID: <49CC0254.8050401@wxs.nl> References: <20090325152851.GA18337@khaled-laptop> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1238106767 4758 80.91.229.12 (26 Mar 2009 22:32:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Mar 2009 22:32:47 +0000 (UTC) To: mailing list for ConTeXt users , Idris Samawi Hamid Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 26 23:34:05 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 1Lmy9A-0003S4-68 for gctc-ntg-context-518@m.gmane.org; Thu, 26 Mar 2009 23:34:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3712C1FBF9; Thu, 26 Mar 2009 23:32:34 +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 09851-04; Thu, 26 Mar 2009 23:32:01 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CDBC21FBEB; Thu, 26 Mar 2009 23:32:00 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D73731FBEB for ; Thu, 26 Mar 2009 23:31:58 +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 02480-07-3 for ; Thu, 26 Mar 2009 23:31:51 +0100 (CET) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by ronja.ntg.nl (Postfix) with ESMTP id 4F4911FBB8 for ; Thu, 26 Mar 2009 23:31:51 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter3-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n2QMVoZR018662 for ; Thu, 26 Mar 2009 23:31:50 +0100 Original-Received: from [10.100.1.107] (unverified [10.100.1.107]) by controller-1 (SurgeMail 3.9e) with ESMTP id 23194-1840426 for multiple; Thu, 26 Mar 2009 23:31:45 +0100 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <20090325152851.GA18337@khaled-laptop> 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: 199813282 - 5aa26091a92e - 20090326 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:48822 Archived-At: Khaled Hosny wrote: > MPost graphics inside TRT direction are placed incorrectly overlapping > the text on the right, similar to what we had with \pdfximage (see the > attached PDF). > > This seems to be unrelated to images issue since MPost graphics are > inserted as \pdfliteral. I'm not sure if this an engine or macro issue, > but I'm guessing the later. > > Changing the \startMPLIBtoPDF so that the \hbox where the graphics is > placed is fixed to TLT direction fixes this, but I'm not sure if it is > safe to do so. for the moment i did \def\startMPLIBtoPDF#1#2#3#4% watch the transparency reset {\naturalhbox\bgroup (as \naturalhbox is the official way) this keeps the internal direction (in textext) the same as the outer one idris: we need to discuss what aspects of r-l stay r-l and in what cases we revert to lr (as here) or even to lr inside constructs it depends a bit on general rules for arabic typesetting Hans ----------------------------------------------------------------- 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________