Am 28.12.2025 um 17:58 schrieb Aryeh Zapinsky:
I originally tried to send this question on December 23, but the size of the email was too large and the email bounced. So I have not included the font. It bounced again several times because I was trying to include the image inline. Attaching the image, the email was still too large. So I will follow up with an email that contains the image. Sorry if this question ends up appearing more than once.

_Problem:_
When using r2l alignment, layout of paragraphs appears to be flipped (from r2l to l2r) after correctly placing the first paragraph inside of a frame.

_Questions:_
1. What is going on? (I'm not sure how to describe what's happening.) Is the paragraph not being formatted correctly or the frame? 2. What document can I look at to understand what's happening to format the text? typo-duc.lmt seems to be referencing some other work that has sections and tagged rules. What document is that? 3. What are typo-dir, typo-dha, and typo-duc each doing? I'm curious to know so I can better navigate the codebase going forward.

I can reproduce the problem with the following minimal example

\defineparagraphs [Columns] [n=2,rule=on]

\starttext

\startframed[width=max,align=r2l]
\startColumns 1 \nextColumns 2 \stopColumns
\startColumns 1 \nextColumns 2 \stopColumns
\stopframed

\stoptext


The reason why the first environment is r2l is because it start in horizontal mode while the second start in vertical mode, when you add \dontleavehmode before the second one it will also switch to r2l.


One way to fix this problem is to add a direction key with will by default place the column "left to right" with the option to reverse it to "right to left".

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to