After a recent update, the hyphenrules environment causes an error when used with polyglossia. I've been using it for a few years to specify the hyphenation of certain words by language. Here's a MWE:
\documentclass{article}
%\usepackage{fontspec}
\usepackage{polyglossia}
\setdefaultlanguage[variant=american]{english}
\setotherlanguage{german}
\begin{hyphenrules}{german}
\hyphenation{Ü-ber-lief-er-ung}
\end{hyphenrules}
\begin{document}
Test
\end{document}
With TeX Live 2016 (fully updated), XeLaTeX typesets this document. With TeX Live 2017 as of today, it fails thus:
! Undefined control sequence.
<argument> ...nguageshorthands {none}\bbl@ifunset
{\bbl@tempf hyphenmins}{\s...
l.11 \begin{hyphenrules}{german}
Am I doing something wrong? When I search for information on hyphenrules, everything I can find talks about babel. Should the language for \hyphenation be specified in another way with polyglossia?
Or is this a polyglossia bug? If so, that would make three that affect my document, and it has been a relatively long time since the last release. I might consider converting my long document to babel.
fontspecupdate (some parts offontspecare still loaded, even though the package is commented out), but it could help to narrow down the culprit exactly if we know when the problem started. – moewe Nov 12 '17 at 19:39fontspecupdate, but I did notice that I got ababelupdate (3 Nov. 2017). – jcr Nov 12 '17 at 20:42babelissue. My redefinition from https://tex.stackexchange.com/a/396614/35864 works (it was a copy of the code in 3.14 with one command renamed). But the new code in 3.15 is slightly different. – moewe Nov 12 '17 at 20:51