From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92140 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: r2l alignment and linenumbering conflict? Date: Sat, 01 Aug 2015 20:47:20 +0200 Message-ID: <55BD1438.4020504@gmail.com> References: <23253135-8B88-487D-9271-39A683A8A060@fastmail.fm> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1498080143==" X-Trace: ger.gmane.org 1438455263 4890 80.91.229.3 (1 Aug 2015 18:54:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Aug 2015 18:54:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 01 20:54:10 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZLbv7-0007M1-8X for gctc-ntg-context-518@m.gmane.org; Sat, 01 Aug 2015 20:54:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B22DD10219 for ; Sat, 1 Aug 2015 20:54:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zxqN-27YnRif for ; Sat, 1 Aug 2015 20:54:07 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6059810425 for ; Sat, 1 Aug 2015 20:50:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 06F091020A for ; Sat, 1 Aug 2015 20:49:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5kyUsSo8nCg1 for ; Sat, 1 Aug 2015 20:49:35 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 8F02610217 for ; Sat, 1 Aug 2015 20:47:24 +0200 (CEST) Original-Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com [IPv6:2a00:1450:400c:c05::22c]) by filter4-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t71IlNQk017086 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Sat, 1 Aug 2015 20:47:23 +0200 Original-Received: by wicmv11 with SMTP id mv11so91776679wic.0 for ; Sat, 01 Aug 2015 11:47:23 -0700 (PDT) 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=gNuzkQcoYrLzGjiDDDLR/TZtLc7xu8Kh0ufWTacdus4=; b=tXeyUA9+6VpHnoOE29F5YGxE8YfaL9uq9J71q4uSAKf/4P/cLACpDUaiG5nyxMZb8Y ngS7KBoBwvPHewCbSXg0Bpq+xGB6KHzMUma6Zoa2+kk1fNgvJXLQWfJZp/9V+mAEFtYM HYZjIwcG7cKLI0/YPTTbg0NsVnjV+EJSxINcm+q0gzwyhzAiIS+4U5qe8cLXKxts8FSm 9+chS0uUGhGjXnacB9AAE0IglE/IZ7zkwycHHLLsBLYpmM9W73IKQHpL55RN16nH6b3L N6yheIhzDmR19Sf6tK6D2T1/xcYqhm/gr5libeW8wFbIDKCvyV5wLs/BGlpLk4vv0Y0J jk+Q== X-Received: by 10.180.20.15 with SMTP id j15mr18621703wie.76.1438454843110; Sat, 01 Aug 2015 11:47:23 -0700 (PDT) Original-Received: from keima.localdomain (x2f26555.dyn.telefonica.de. [2.242.101.85]) by smtp.googlemail.com with ESMTPSA id qq1sm13760277wjc.0.2015.08.01.11.47.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 01 Aug 2015 11:47:22 -0700 (PDT) User-Agent: Postbox 4.0.1 (Macintosh/20150514) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::22c; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01OXuLnBf - 821ddb51bfa5 - 20150801 Received-SPF: pass (filter4-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::22c as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::22c; envelope-from=; helo=mail-wi0-x22c.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) 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:92140 Archived-At: This is a multi-part message in MIME format. --===============1498080143== Content-Type: multipart/alternative; boundary="------------010307020600080802050202" This is a multi-part message in MIME format. --------------010307020600080802050202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > talazem@fastmail.fm > 1. August 2015 17:37 > Sorry to pester, but this problem is barring me from moving my book > project into ConTeXt this weekend. > > The use of linenumbers seems to throw off the R2L mechanism. Example > of the problem attached. > The culprit is the function "boxed.stage_two" in page.lua which output each text line in the line numbering environment in left to right mode. When you have justified lines everything is fine but when you have a ragged line (e.g. the last line in a paragraph) ConTeXt aligns the context with the left margin. \starttext \showframe \startalignment[righttoleft,flushleft] \input ward \blank \startlinenumbering \input ward \stoplinenumbering \stopalignment \stoptext Wolfgang --------------010307020600080802050202 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
1. August 2015 17:37
Sorry to pester, but this problem is barring me from moving my book project into ConTeXt this weekend.

The use of linenumbers seems to throw off the R2L mechanism. Example of the problem attached. 


The culprit is the function "boxed.stage_two" in page.lua which output each text line in the line numbering
environment in left to right mode. When you have justified lines everything is fine but when you have a ragged
line (e.g. the last line in a paragraph) ConTeXt aligns the context with the left margin.

\starttext \showframe

\startalignment[righttoleft,flushleft]

    \input ward

    \blank

    \startlinenumbering
    \input ward
    \stoplinenumbering

\stopalignment

\stoptext

Wolfgang
--------------010307020600080802050202-- --===============1498080143== 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= --===============1498080143==--