On Mon, Feb 17, 2025 at 04:22:11PM +0100, Pablo Rodriguez via ntg-context wrote:
>>> I do get ἅπαν-τα, even with its hyphenation exception commented out.
>>
>>   That’s probably because of \lefthyphenmin: if (as I would except), its
>> value is two, you won’t get the hyphenation ἅ-.  Try setting it to one
>> and see what happens.
> 
> Sorry, is not the first hyphen the one that I’m missing.

  But that’s the one I was commenting on :-)

> The issue here for me is that I get a change in \agr from ἅπα-ντα to
> ἅπαν-τα, just by adding a totally unrelated pattern (2γ1μ).

  I can see that, but that’s a red herring.  As you can see in the
following example, there is already an issue with mixing patterns in one
language:

----
\setupbodyfont[dejavu]

\setuphyphenation[method=traditional]

\setuplanguage[es][patterns={es,agr}]
\mainlanguage[agr]

\startTEXpage[offset=1em]
\type{single language:} \hyphenatedword{ἅπαντα}

\type{two languages:} {\es\hyphenatedword{ἅπαντα}}
\stopTEXpage
\stoptext
----

  The first example yields ἅπα-ντα (incorrect according to the
patterns), the second one ἅπαν-τα (correct up to \lefthyphenmin).  Hans,
please comment :-)  The result should be the same in both cases, since
the Spanish and Ancient Greek patterns don’t interfere with each other
-- and in any case the example with only the Greek patterns is already
incorrect.

        Best,

                Arthur
\setupbodyfont[dejavu]

\setuphyphenation[method=traditional]

\setuplanguage[es][patterns={es,agr}]
\mainlanguage[agr]

\startTEXpage[offset=1em]
\type{single language:} \hyphenatedword{ἅπαντα}

\type{two languages:} {\es\hyphenatedword{ἅπαντα}}
\stopTEXpage
\stoptext

Attachment: confusing-hyphenation.pdf
Description: Adobe PDF document

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

maillist : ntg-context@ntg.nl / 
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