reutenauer/polyglossia — Issue #18: Defining hyphenation exceptions
Author: eg9
Created: 2012-03-07 21:42:39+00:00
State: open

It would be nice if Polyglossia had a facility for defining hyphenation exceptions in the various languages used in a document. If there's only one language, then a plain `\hyphenation` command suffices, but for more than one it's necessary to change language. A possibility could be to provide

\newcommand{\sethyphenation}[3][]{%
\sbox\z@{\begin{otherlanguage}[#1]{#2}\hyphenation{#3}\end{otherlanguage}}}

so that a user can say

\sethyphenation[variant=]{}{}

Using the `hyphenrules` environment rather than `otherlanguage` would be better, but it doesn't appear to work correctly in Polyglossia.