ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Idris Samawi Hamid <ishamid@colostate.edu>
Subject: Re: MetaPost graphics with TRT direction
Date: Thu, 26 Mar 2009 23:31:48 +0100	[thread overview]
Message-ID: <49CC0254.8050401@wxs.nl> (raw)
In-Reply-To: <20090325152851.GA18337@khaled-laptop>

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
___________________________________________________________________________________


  reply	other threads:[~2009-03-26 22:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-25 15:28 Khaled Hosny
2009-03-26 22:31 ` Hans Hagen [this message]
2009-03-27 12:07   ` Khaled Hosny
2009-04-01 14:41   ` MetaPost graph mkiv error Alan BRASLAU

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49CC0254.8050401@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ishamid@colostate.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).