Skip to content

Commit

Permalink
feat(languages): Enable explicit hyphen repetition handling in Czech
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Feb 7, 2024
1 parent c29545d commit b05d621
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions languages/cs.lua
@@ -1,3 +1,9 @@
SILE.nodeMakers.cs = pl.class(SILE.nodeMakers.unicode)

-- According to Czech rules, when a break occurs at an explicit hyphen, the hyphen gets repeated on the next line...
SILE.nodeMakers.cs.handleWordBreak = SILE.nodeMakers.unicode._handleWordBreakRepeatHyphen
SILE.nodeMakers.cs.handlelineBreak = SILE.nodeMakers.unicode._handlelineBreakRepeatHyphen

SILE.hyphenator.languages["cs"] = {}
SILE.hyphenator.languages["cs"].patterns =
{
Expand Down

0 comments on commit b05d621

Please sign in to comment.