From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/93261 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Paragraph breaking bug with BiDi text Date: Mon, 11 Jan 2016 20:24:27 +0100 Message-ID: <5694016B.2020502@gmail.com> References: <5693B180.9090506@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0175816967698581536==" X-Trace: ger.gmane.org 1452540320 20284 80.91.229.3 (11 Jan 2016 19:25:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2016 19:25:20 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 11 20:25:08 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 1aIi5Q-0001tJ-6b for gctc-ntg-context-518@m.gmane.org; Mon, 11 Jan 2016 20:25:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1B0105E86; Mon, 11 Jan 2016 20:24:44 +0100 (CET) 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 Cr4_hujQhPbW; Mon, 11 Jan 2016 20:24:43 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 4CDF75E9F; Mon, 11 Jan 2016 20:24:43 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2035E5E9F for ; Mon, 11 Jan 2016 20:24:42 +0100 (CET) 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 6Kv9G9MkXVkY for ; Mon, 11 Jan 2016 20:24:41 +0100 (CET) Original-Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) (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 1B0EF5E86 for ; Mon, 11 Jan 2016 20:24:31 +0100 (CET) Original-Received: by mail-wm0-f43.google.com with SMTP id u188so227771097wmu.1 for ; Mon, 11 Jan 2016 11:24:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=HCCMxmNDLafOdthYsqMd6qgxK1EbyPYaVd8vzL8U0j0=; b=0Gz/ZezAOxJhbm8PDvSn7NbE3k5B2ZNOXGDkPyI3gQ8/tUgfDJN4RYdnwNUhSrRF6z uW+SvYorabUdVhcV2NiQyCxGPFH51qqeOW3HcIwjfN7Jyy4c6IRFXKdoJs0g9EjDUvPZ KHl4/jiirzbGULQl41jR8qlFACiF5quvnVOO/6PF5zJ9v0tHCee7G48W0E/bSi3/ZJb8 uudfDrKll6efUvzR3XHI5vXSnpk/r6h3gyGjc12vrCH4IT1lZNUI9/1PiotDJbdydwDl 8Bm20JbrhLMVvMDO4x1WNZeAy3S4i9FRZKM2OMIcEwvC9BkE3Pme0Es4llzmHeNZvUSA mq1A== X-Received: by 10.28.173.71 with SMTP id w68mr16327992wme.88.1452540270748; Mon, 11 Jan 2016 11:24:30 -0800 (PST) Original-Received: from keima.localdomain (x2f23e6f.dyn.telefonica.de. [2.242.62.111]) by smtp.gmail.com with ESMTPSA id y188sm14108696wmy.11.2016.01.11.11.24.29 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 11 Jan 2016 11:24:29 -0800 (PST) User-Agent: Postbox 4.0.8 (Macintosh/20151105) In-Reply-To: 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:93261 Archived-At: This is a multi-part message in MIME format. --===============0175816967698581536== Content-Type: multipart/alternative; boundary="------------050600030406070209000606" This is a multi-part message in MIME format. --------------050600030406070209000606 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > Mohammad Hossein Bateni > 11. Januar 2016 um 17:58 > Great! You partly answered another question I meant to ask: what is > the proper way to write \textdir and \pardir in CONTEXT? So > \lefttoright and \righttoleft are replacements for \textdir TLT and > \textdir TRT. How should I code in \pardir TRT in CONTEXT? I > couldn't find anything for that in spac-ali.mkiv. The \lefttoright and \righttoleft commands set the paragraph direction when you use the commands at the begin of a paragraph. \setupwhitespace[line] \starttext \input ward \righttoleft \input ward \lefttoright \input ward \stoptext Still there is no need for \righttoleft because you can use the normal alignment commands {\setupalign and \startalignment) to change the text direction. \setupwhitespace[line] \starttext \input ward \startalignment[righttoleft] \input ward \stopalignment \input ward \stoptext Wolfgang --------------050600030406070209000606 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
11= .=20 Januar 2016 um 17:58
Great!=C2=A0 You partly = answered another question I meant to ask: what is the proper way to write=20 \textdir and \pardir in CONTEXT?=C2=A0 So \lefttoright and \righttoleft a= re=20 replacements for \textdir TLT and \textdir TRT.=C2=A0 How should I code i= n=20 \pardir TRT in CONTEXT?=C2=A0 I couldn't find anything for that in=20 spac-ali.mkiv.
The \lefttoright and \righttoleft commands set the paragraph direction=20 when you use the commands at the begin of a paragraph.

\setupwhitespace[line]

\starttext

\input ward

\righttoleft
\input ward

\lefttoright
\input ward

\stoptext

Still there is no need for \righttoleft because you can use the normal=20 alignment commands {\setupalign and \startalignment) to change the text=20 direction.

\setupwhitespace[line]

\starttext

\input ward

\startalignment[righttoleft]
\input ward
\stopalignment

\input ward

\stoptext

Wolfgang
--------------050600030406070209000606-- --===============0175816967698581536== 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= --===============0175816967698581536==--