assert read_patterns(r'''
\patterns{
1ba alous1
1be % foobar
ch2r}
\hyphenation{
saippua-kauppias
}
'''.splitlines()) == (['1ba', 'alous1', '1be', 'ch2r'], ['saippua-kauppias'])00_file
File input
TeX hyphenation patterns look like this:
% this is a comment
\patterns{
pattern % could have comments on lines
another
maybe many words per line} % that brace ends the patterns
\hyphenation{ % and now the exceptions
word
anoth-er
}