latex3 / babel

The babel system for LaTeX, LuaLaTeX and XeLaTeX
LaTeX Project Public License v1.3c
125 stars 34 forks source link

The effect of multiple \babelhyphenation is unclear; please specify. #174

Closed ghost closed 2 years ago

ghost commented 2 years ago

The documentation says, “Multiple \babelhyphenation’s are allowed” but does not specify the effect of multiple \babelhyphenations. The way I read it, two commands \babelhyphenation produce no error. However, nothing more is implied. In particular, what is the effect of \babelhyphenation[L]{list1} \babelhyphenation[L]{list2} for a language L? I can imagine four possibilities for the total effect:

  1. \babelhyphenation[L]{list1}
  2. \babelhyphenation[L]{list2}
  3. \babelhyphenation[L]{list1 list2}
  4. \babelhyphenation[L]{list2 list1}

Or does something else happen? Please specify it in the documentation.

jbezos commented 2 years ago

With the exception explained in the manual, it behaves in the same way as \hyphenation. In other words, several \babelhyphenation’s in a row are much like several \hyphenation’s in a row. Since the behaviour is not different, I didn't think I had to say it explicitly, but I’ll add it to the manual.

ghost commented 2 years ago

@jbezos Thanks; please do!

ghost commented 2 years ago

Thank you! You wrote, “Multiple declarations work much like |\hyphenation| (last wins)”. Given http://chat.stackexchange.com/transcript/message/60532304#60532304, does “last wins” mean option 3 from above?