From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95323 Path: news.gmane.org!not-for-mail From: Mohammad Hossein Bateni Newsgroups: gmane.comp.tex.context Subject: RTL bug in textbackground Date: Sun, 3 Jul 2016 12:46:02 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2075737718818090721==" X-Trace: ger.gmane.org 1467564411 29687 80.91.229.3 (3 Jul 2016 16:46:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2016 16:46:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 03 18:46:40 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bJkXX-0003E5-SI for gctc-ntg-context-518@m.gmane.org; Sun, 03 Jul 2016 18:46:39 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 044FD10BAA; Sun, 3 Jul 2016 18:46:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aQPEoNJ-hWEn; Sun, 3 Jul 2016 18:46:16 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id E1DB710BA4; Sun, 3 Jul 2016 18:46:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 365CC10B9E for ; Sun, 3 Jul 2016 18:46:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oBvaBW7rPmZ2 for ; Sun, 3 Jul 2016 18:46:15 +0200 (CEST) Original-Received: from mail-oi0-f51.google.com (mail-oi0-f51.google.com [209.85.218.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 375EA10B6A for ; Sun, 3 Jul 2016 18:46:04 +0200 (CEST) Original-Received: by mail-oi0-f51.google.com with SMTP id r2so169618447oih.2 for ; Sun, 03 Jul 2016 09:46:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=KmgHjhj5y/pZOjgS/xIHPsBVpzfMxd6CZKgWDYWSmao=; b=sP2JEGEgyp+PP21S3yPxerDIZU1HkYm4J/YJ2jHibla+VgW3eEmxXHSeblmOY74+VB 9NWM547odvjQeLDjCJ55vnluFDe0pDQXWFPFKbtpBLO9ao/xg2Nm4yhq3fdoyTFSz0+g pDW3X1XvODkQVo/VwgTq9mnSSS34MU9w3QWGIsuFUjw6BPI3dpUcbTi9BPefgXajmr4E Q/su+XpUX4E5wJM6GUqOrfJ/Gk77eEkLwLSVDskdAjXDn+OPOxim6Cuhw9fTOYAW3pSB iksRCQRnUI12R+5X8cHehUQUDGeVd0uNu9GHLJdnmbM41wkzacPjyFDuc+44q7GYJnVB 7/NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KmgHjhj5y/pZOjgS/xIHPsBVpzfMxd6CZKgWDYWSmao=; b=cFwDNySZtRoeFFWw/C3DxEG36LnEfX75oGyFJ6zVxrDjDHc+O2GEWX+mYUUETSAOhe muhqBjzbbbhfGaGVNLY0wL1L45wp153lHZHTz94NhZIL6NJSzcNPF9jElDXT4sEPlvgp OTPzJAYl9Nwl7qbFbFkIeaQhiDLaNLn+3dTfUmdFay2t+At3D3bE9DEvTZtn9YCf56db 7bVeBJuTF1WPApkJSifFJiiUycCANcWgaY72Hqkfb8iQgvjSpiERmgE5dS5ax8RosW2z 3Owv6PV+BuMs86komCwU9/QzfMSYBZCn9a1uvtmE/UiSXl6wk1mFMYgxbjuHJWov6TIV opnw== X-Gm-Message-State: ALyK8tJAxrXYMFfBvrxtpinh9at8HOqD5OS7c+7QYLNClkq/xQNr4nOyNv97OxWQuRDbMxzTXjWDvbcwJI078A== X-Received: by 10.202.51.215 with SMTP id z206mr4718038oiz.86.1467564363113; Sun, 03 Jul 2016 09:46:03 -0700 (PDT) Original-Received: by 10.157.46.104 with HTTP; Sun, 3 Jul 2016 09:46:02 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95323 Archived-At: --===============2075737718818090721== Content-Type: multipart/alternative; boundary=001a113ce0ea8c710d0536bdf467 --001a113ce0ea8c710d0536bdf467 Content-Type: text/plain; charset=UTF-8 Hello, When using \definetextbackground in RTL setting, the boundaries are not determined correctly (both for location=paragraph and location=text) and colors gets messed up. Here a sort-of-minimal example adapted from details.pdf. Is there any particular keys I should use in RTL to fix the issue? \setupcolors[state=start] \definecolor[infogray][s=0.5] \definecolor[textgray][s=0.8] \definetextbackground[intro] [backgroundcolor=infogray, backgroundoffset=.25cm, offset=.5cm, frame=on,framecolor=red, location=paragraph, color=white] \definetextbackground[subintro] [backgroundcolor=textgray, backgroundoffset=0pt, offset=0pt, frame=off, location=text, color=blue] \starttext \starttextbackground[intro] A rather common way to draw attention to a passage, is to add a background. In this chapter we will therefore discuss how to enhance your document with \starttextbackground [subintro] colorful areas that either or not follow the shape of your paragraph. \stoptextbackground\ Be warned: this chapter has so many backgrounds that you should consider wearing sunglasses. \stoptextbackground \blank[3*big] \righttoleft \starttextbackground[intro] A rather common way to draw attention to a passage, is to add a background. In this chapter we will therefore discuss how to enhance your document with \starttextbackground [subintro] colorful areas that either or not follow the shape of your paragraph. \stoptextbackground\ Be warned: this chapter has so many backgrounds that you should consider wearing sunglasses. \stoptextbackground \stoptext Thanks, MHB --001a113ce0ea8c710d0536bdf467 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

When using \definetextbackground= in RTL setting, the boundaries are not determined correctly (both for loca= tion=3Dparagraph and location=3Dtext) and colors gets messed up.
=
Here a sort-of-minimal example adapted from details.pdf.=C2= =A0 Is there any particular keys I should use in RTL to fix the issue?


\setupcolors[state=3Dstart]
\definecolor[infogray][s= =3D0.5]
\definecolor[textgray][s=3D0.8]

\definetextbackground[int= ro]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0[backgroundcolor=3Dinfogray,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0backgroundoffset=3D.25c= m,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0offset=3D.5cm,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0frame=3Don,framecolor=3Dred,
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0location=3Dparagraph,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0color=3Dwhite]

\definet= extbackground[subintro]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0[backgroundcolor=3Dtextgray,
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0backgr= oundoffset=3D0pt,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0offset=3D0pt,
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0frame=3Doff,
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0location=3Dtext,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0color=3Dblue]

\starttext

\s= tarttextbackground[intro]
A rather common way to draw attention to a pas= sage, is to add
a background. In this chapter we will therefore discuss = how
to enhance your document with \starttextbackground [subintro]
col= orful areas that either or not follow the shape of your
paragraph. \stop= textbackground\ Be warned: this chapter has
so many backgrounds that you= should consider wearing sunglasses.
\stoptextbackground

\blank[3= *big]

\righttoleft
\starttextbackground[intro]
A rather common= way to draw attention to a passage, is to add
a background. In this cha= pter we will therefore discuss how
to enhance your document with \startt= extbackground [subintro]
colorful areas that either or not follow the sh= ape of your
paragraph. \stoptextbackground\ Be warned: this chapter has<= br>so many backgrounds that you should consider wearing sunglasses.
\sto= ptextbackground
\stoptext


Thanks,
MHB




=
--001a113ce0ea8c710d0536bdf467-- --===============2075737718818090721== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============2075737718818090721==--