Problem
When trying to set up drop-cap for the first word of a paragraph, the characters do not maintain the right-to-left alignment.
Questions
- How do you align Right-to-Left in the
setupintialcommand? - How do you
setupinitialfor words that include other characters, like Hebrew words that include vowels? - How do you
setupinitialby using spaces to delimit the words?
Code examples and images of output
\setupdirections[bidi=on] \setupinitial[n=2, text={וְעַל}, method=auto ] \placeinitial וְעַל הַכֹּל יְהֹוָה אֱלֺהֵֽינוּ אֲנַֽחְנוּ מוֹדִים לָךְ וּמְבָרְ֒כִים אוֹתָךְ יִתְבָּרַךְ שִׁמְךָ בְּפִי כָּל־חַי תָּמִיד לְעוֹלָם וָעֶד כַּכָּתוּב וְאָכַלְתָּ וְשָׂבָֽעְתָּ וּבֵרַכְתָּ אֶת־יְהֹוָה אֱלֺהֶֽיךָ עַל־הָאָֽרֶץ הַטּוֹבָה אֲשֶׁר נָתַן־לָךְ בָּרוּךְ אַתָּה יְהֹוָה עַל־הָאָֽרֶץ וְעַל־הַמָּזוֹן: The above illustrates that with the default of Left-to-Right alignment, the empty space is created on the left side of the page, but the words are printed on the right.
When adding setup align, the space is created for the initial on the right side of the paragraph, but the initial is placed over the words in the paragraph:
\setupalign[r2l] The above illustrates that the empty space is created in the correct place, but the drop-cap word is overlayed on the paragraph text itself and the characters are in reverse order still.
With the addition of a non-Hebrew character, such as ,, the Hebrew characters are arranged in the proper Right-to-Left order with the corresponding vowels in the correct place. However, the empty space is not created correctly, the comma (,) is placed over the other characters, and the inclusion of the non-Hebrew character is problematic.
\setupinitial[n=2, text={,וְעַל}, method=auto ] Version
ConTeXt ver: 2025.08.21 23:32 LMTX fmt: 2025.9.2 int: english/english
Background
Trying to make a bencher page with drop-caps similar to the following image.
Other notes
I assume something needs to change in tex/texmf-context/tex/context/base/mkiv/typo-drp.mkiv or tex/texmf-context/tex/context/base/mkiv/typo-drp.lua, but I'm not sure where or what. Or maybe the approach should be more aligned with custom lua code like this answer, https://tex.stackexchange.com/a/531391/417053.
Minimal file:
\definefontfeature[minimal][default][ script=hebr ] \definefontfamily[hebrew] [rm] [notosanshebrew] [features=minimal] \setupbodyfont[hebrew, 20pt] \setupalign[r2l] \starttext \setupinitial[n=2, text={וְעַל}, method=auto, ] \placeinitial וְעַל הַכֹּל יְהֹוָה אֱלֺהֵֽינוּ אֲנַֽחְנוּ מוֹדִים לָךְ וּמְבָרְ֒כִים אוֹתָךְ יִתְבָּרַךְ שִׁמְךָ בְּפִי כָּל־חַי תָּמִיד לְעוֹלָם וָעֶד כַּכָּתוּב וְאָכַלְתָּ וְשָׂבָֽעְתָּ וּבֵרַכְתָּ אֶת־יְהֹוָה אֱלֺהֶֽיךָ עַל־הָאָֽרֶץ הַטּוֹבָה אֲשֶׁר נָתַן־לָךְ בָּרוּךְ אַתָּה יְהֹוָה עַל־הָאָֽרֶץ וְעַל־הַמָּזוֹן: \stoptext Thanks in advance for any suggestions and help!



