If babel doesn't know how to hyphenate a word, I can inform it of good line breaks with \babelhyphenation:
\documentclass{article}
\usepackage[nynorsk]{babel}
\babelhyphenation[nynorsk]{fram-halds-skulen}
\begin{document}
framhaldsskulen
\end{document}
But how do I do this with polyglossia? The documentation doesn't say anything about it. \babelhyphenation obviously doesn't work:
\documentclass{article}
\usepackage{polyglossia}
\setdefaultlanguage{nynorsk}
\babelhyphenation[nynorsk]{fram-halds-skulen}
\begin{document}
framhaldsskulen
\end{document}
! Undefined control sequence.
l.4 ^^I\babelhyphenation
[nynorsk]{fram-halds-skulen}
?


\hyphenation{fram-halds-skulen}as long as the right language is in scope at that point – David Carlisle Nov 20 '14 at 22:30\hyphenation[nynorsk]{fram-halds-skulen}, which didn't work. Then how willpolyglossiaunderstand what language the hyphenation is for if I just set\hyphenation{fram-halds-skulen}? – Sverre Nov 20 '14 at 22:33