Skip to content

Commit

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

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

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

0 comments on commit 8db7f23

Please sign in to comment.