Skip to content

Commit

Permalink
feat(languages): Add Brazilian Portuguese specific hyphenation points
Browse files Browse the repository at this point in the history
  • Loading branch information
jodros authored and alerque committed Jun 17, 2024
1 parent 6404c53 commit 895c575
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions languages/pt.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ SILE.nodeMakers.pt = pl.class(SILE.nodeMakers.unicode)
SILE.nodeMakers.pt.handleWordBreak = SILE.nodeMakers.unicode._handleWordBreakRepeatHyphen
SILE.nodeMakers.pt.handlelineBreak = SILE.nodeMakers.unicode._handlelineBreakRepeatHyphen

-- further patterns "1nô", "1tô" and "1cô" were added for Brazilian Portuguese
SILE.hyphenator.languages["pt"] = {}
SILE.hyphenator.languages["pt"].patterns = {
"1b2l",
Expand Down Expand Up @@ -32,6 +33,7 @@ SILE.hyphenator.languages["pt"].patterns = {
"1cu",
"1cá",
"1câ",
"1cô",
"1cã",
"1cé",
"1cí",
Expand Down Expand Up @@ -172,6 +174,7 @@ SILE.hyphenator.languages["pt"].patterns = {
"1nu",
"1ná",
"1nâ",
"1nô",
"1nã",
"1né",
"1ní",
Expand Down Expand Up @@ -236,6 +239,7 @@ SILE.hyphenator.languages["pt"].patterns = {
"1tu",
"1tá",
"1tâ",
"1tô",
"1tã",
"1té",
"1tí",
Expand Down

0 comments on commit 895c575

Please sign in to comment.