hyphen()
in several languages. Replace "XX"
with "de"
, "de.old"
, "en"
, "es"
, "it"
, "en.us"
, or "ru"
, respectively."orig"
column described above) were originally provided by the LaTeX developers[1], under the terms of the LaTeX Project Public License[2]. Refer to Liang (1983) for a detailed explaination -- it's fascinating. From these original patterns the values in the remaining columns were created (using read.hyph.pat
).Note: Some of the original patterns might have been altered before, too. This is because the use cases slightly differ between LaTeX and this package. For accurate hyphenation in text processing it's important to not split words in wrong ways, rather than identifying all possible split points. I therefore understand that in general these patterns might lead to slightly more conservative results. This package, however, uses the same algorithm to count syllables, that is, it's more important to just get the right sum of syllables in a word, and actually quite irrelevant (for the time being) which actual syllables were identified. That is, for this purpose even completely wrong suggestions wouldn't do any harm, as long as the overall number is correct, whereas perfectly valid hyphenations would be misleading if they are missing one or more possibilities. If any such changes to the patterns have been made, they are fully documented in the file "ChangeLog_hyph_patterns.txt" in the sources for this package. The unchanged original patterns can be found under [1].
The pattern
slot of each hyphenation pattern object has three colums:
[object Object],[object Object],[object Object]
[1]
[2]
read.hyph.pat
, manage.hyph.pat
# to look at the patterns themselves:
data(hyph.en) # English
data(hyph.de) # German
Run the code above in your browser using DataLab