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.

*Context Version:*
ConTeXt ver: 2025.11.24 17:55 LMTX fmt: 2025.12.24 int: english/english
(LMTX fmt with more of the typesetters enabled for looking at the logs)

*Code Example:*
\definefontfeature[minimal][default][
script=hebr
]

\starttypescript [serif] [hebrew]
\definefontsynonym [Serif]
[file:/workspaces/context_lmtx/context_2/build_from_cmake_2/context_from_scratch/tex/texmf-fonts/firago/FiraGO-Regular.ttf][features=minimal]
\stoptypescript

\definetypeface [hebrew] [rm] [serif] [hebrew]
\definetypeface [hebrew] [ss] [serif] [hebrew]

\setupbodyfont[hebrew, 20pt]
\setupalign[r2l]
\setupdirections[bidi=on, method=two]

\defineframed[Zimmun][width=\textwidth,align={flushleft,nothyphenated,verytolerant,r2l},
frame=off]

\defineparagraphs[SubZimmun][n=2,before={\blank},after={},align=r2l]
\setupparagraphs[SubZimmun][1][width=.3\textwidth,align=middle]

\define[1]\instructionalText{{\switchtobodyfont[hebrew,8pt]#1}}
\enabletrackers["typesetters"]
\showdirections

\starttext
\Zimmun
{
\showdirections
\setupalign[righttoleft]
\showdirections
שלושה שאכלו כאחד חייבין בזימון, וכך מזמנין:
\startSubZimmun
\showdirections
\instructionalText{
המזמן אומר:
}
\SubZimmun
רַבּוֹתַי נְבָרֵךְ:
\stopSubZimmun

\startSubZimmun
\instructionalText{
המסובים עונים:
}
\SubZimmun
\showdirections
יְהִי שֵׁם יְהֹוָה מְבֹרָךְ מֵעַתָּה וְעַד־עוֹלָם:
\stopSubZimmun

\startSubZimmun
\instructionalText{
וממשיך:
}
\SubZimmun
בִּרְשׁוּת מָרָנָן וְרַבָּנָן וְרַבּוֹתַי נְבָרֵךְ (בעשרה אֱלֺהֵֽינוּ)
שֶׁאָכַֽלְנוּ מִשֶּׁלּוֹ:
\stopSubZimmun
}

\instructionalText{
המסובים עונים:
}
בָּרוּךְ (בעשרה אֱלֺהֵֽינוּ) שֶֽׁאָכַֽלְנוּ מִשֶּׁלּוֹ וּבְטוּבוֹ חָיִֽינוּ:

\stoptext

The above code produces the result (with my line annotations added by hand)
that's attached. Image to come.

*Comments on image:*
Line 2 appears to be formatted as I expect. The smaller text is located on
the right of the larger text.
Lines 3 and 4 appear to be formatted incorrectly with the smaller text
being placed on the left of the larger text instead of the right. I think
this placement makes sense if there is something that is causing the layout
of the paragraph elements to be l2r at that point.
Line 5 appears to be formatted as I expect. It is not using the Zimmun
frame or SubZimmun paragraph blocks. Therefore, the small text appears to
the right of the larger text.

Throughout the generated document the layout shows as l2r. I would expect
it to be r2l since I've set that up with \setupalign.

Any help would be greatly appreciated. Thank you!

Best,
Aryeh
___________________________________________________________________________________
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