Hi,

in RTL text direction the middle and bottom alternatives of \textrule extend into the right margin.

\setupalign[righttoleft]

\starttext

\textrule[top]{}

\textrule[middle]{}

\textrule[bottom]{}

\stoptext


A fix for this is to use \naturalvpack instead of \vpack.

%%%% pack-mrl.mkiv
\def\pack_textrule_with_text_nop#1%
  {\ifhmode
     \endgraf
   \fi
   \doifelse{\directtextrulesparameter\c!depthcorrection}\v!on
     \pack_textrule_correct_depth_yes
     \pack_textrule_correct_depth_nop
   \nointerlineskip
-  \noindent\vpack % was \dontleavehmode
+  \noindent\naturalvpack % was \dontleavehmode
     {\color[\directtextrulesparameter\c!rulecolor]
        {\hrule
           \s!depth \directtextrulesparameter\c!rulethickness
           \s!height\zeropoint
           \s!width \availablehsize}}}
%%%%

Wolfgang

Attachment: textrule.pdf
Description: Adobe PDF document

_______________________________________________
dev-context mailing list
[email protected]
https://mailman.ntg.nl/mailman/listinfo/dev-context

Reply via email to