Skip to content

Commit

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

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

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

0 comments on commit 82640b0

Please sign in to comment.