<html><head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
</head><body bgcolor="#FFFFFF" text="#000000">
<blockquote style="border: 0px none;"
cite="mid:E199A651-7435-44E8-9E12-B22BC1530A97@fastmail.fm" type="cite">
<div style="margin:30px 25px 10px 25px;" class="__pbConvHr"><div
style="display:table;width:100%;border-top:1px solid
#EDEEF0;padding-top:5px"> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;width:100%">
<a moz-do-not-send="true" href="mailto:talazem@fastmail.fm"
style="color:#737F92
!important;padding-right:6px;font-weight:bold;text-decoration:none
!important;">talazem@fastmail.fm</a></div> <div
style="display:table-cell;white-space:nowrap;vertical-align:middle;">
<font color="#9FA2A5"><span style="padding-left:6px">1. August 2015
17:37</span></font></div> </div></div>
<div style="color:#888888;margin-left:24px;margin-right:24px;"
__pbrmquotes="true" class="__pbConvBody"><meta content="text/html;
charset=ISO-8859-1" http-equiv="Content-Type">Sorry to pester, but this
problem is barring me from moving my book project into ConTeXt this
weekend.<div class=""><br class=""></div><div class="">The use of
linenumbers seems to throw off the R2L mechanism. Example of the problem
attached. </div><br>
</div>
</blockquote>
<br>
The culprit is the function "boxed.stage_two" in page.lua which output
each text line in the line numbering<br>
environment in left to right mode. When you have justified lines
everything is fine but when you have a ragged<br>
line (e.g. the last line in a paragraph) ConTeXt aligns the context with
the left margin.<br>
<br>
\starttext \showframe<br>
<br>
\startalignment[righttoleft,flushleft]<br>
<br>
\input ward<br>
<br>
\blank<br>
<br>
\startlinenumbering<br>
\input ward<br>
\stoplinenumbering<br>
<br>
\stopalignment<br>
<br>
\stoptext<br>
<br>
Wolfgang<br>
</body></html>