On Mon, Jul 6, 2026 at 4:48 AM Hans Hagen <[email protected]> wrote:
> you now need to figure otu what to do with llap here
>
I think llap needs a similar ifcase.
\ifx\m_spac_hanging_location\v!right
\ifcase\textdirection
\rlap{\kern{\scratchhsize+\scratchdistance}\box\nextbox}%
\else
\rlap{\box\nextbox\kern\scratchdistance}%
\fi
\else
\ifcase\textdirection
\llap{\box\nextbox\kern\scratchdistance}%
\else
\llap{\kern{\scratchhsize+\scratchdistance}\box\nextbox}%
\fi
\fi
It seems the position the character when outside a frame is now too close
to the start of the paragraph. Again, that's when the location is set to
left or defaults to left, like in the snippet below.
\starthanging[distance=2*ex,location=left]{{\hangingCharacter{חַ}}}
י ה' וּבָרוּךְ צוּרִי בַּה' תִּתְהַלֵּל נַפְשִׁי כִּי ה' יָאִיר נֵרִי
בְּהִלּוֹ נֵרוֹ עֲלֵי רֹאשִׁי %
% }
\stophanging
But then, the following snippet places the character at the expected
location again.
\lefttoright
\startalignment[{flushright,end}]
\starthanging[distance=2*ex,location=right]{{\hangingCharacter{חַ}}}
י ה' וּבָרוּךְ צוּרִי בַּה' תִּתְהַלֵּל נַפְשִׁי כִּי ה' יָאִיר נֵרִי
בְּהִלּוֹ נֵרוֹ עֲלֵי רֹאשִׁי %
% }
\stophanging
\stopalignment
I'm not sure why the \lefttoright part is needed in this snippet, but it
makes it work.
-- 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
___________________________________________________________________________________