Skip to content

Commit 1298af4

Browse files
Omikhleiaalerque
authored andcommitted
feat(languages): Update hyphenation patterns for Portuguese
Additional set of rules enhancing hyphenation rules for Portuguese. PR 62 on https://github.com/hyphenation/tex-hyphen was merged on January 20, 2025.
1 parent a014353 commit 1298af4

2 files changed

Lines changed: 125 additions & 5 deletions

File tree

Lines changed: 124 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
-- AUTOMATICALLY GENERATED FILE --
12
return {
2-
-- further patterns "1nô", "1tô" and "1cô" were added for Brazilian Portuguese
3+
hyphenmins = {
4+
typesetting = { left = 2, right = 3 },
5+
},
36
patterns = {
47
"1b2l",
58
"1b2r",
@@ -27,7 +30,6 @@ return {
2730
"1cu",
2831
"1cá",
2932
"1câ",
30-
"1cô",
3133
"1cã",
3234
"1cé",
3335
"1cí",
@@ -168,7 +170,6 @@ return {
168170
"1nu",
169171
"1ná",
170172
"1nâ",
171-
"1nô",
172173
"1nã",
173174
"1né",
174175
"1ní",
@@ -233,7 +234,6 @@ return {
233234
"1tu",
234235
"1tá",
235236
"1tâ",
236-
"1tô",
237237
"1tã",
238238
"1té",
239239
"1tí",
@@ -310,6 +310,126 @@ return {
310310
"u3e",
311311
"u3o",
312312
"u3u",
313+
".p2si",
314+
".p2sí",
315+
".g2no",
316+
".g2nó",
317+
".g2nô",
318+
"t2c",
319+
"1p2neu",
320+
".t2m",
321+
".p2t",
322+
"su2b3r",
323+
"su2b3l",
324+
".su3b4li",
325+
"a1ir.",
326+
"u1ir.",
327+
"1qu",
328+
"1vô",
329+
"1lô",
330+
"1cô",
331+
"1gô",
332+
"1bô",
333+
"1tô",
334+
"1rô",
335+
"1pô",
336+
"a1é",
337+
"a1í",
338+
"a1ó",
339+
"a1ú",
340+
"e1á",
341+
"e1â",
342+
"e1ã",
343+
"e1é",
344+
"e1ê",
345+
"e1í",
346+
"e1ó",
347+
"é1o",
348+
"e1ú",
349+
"i1á",
350+
"i1ã",
351+
"í1a",
352+
"i1é",
353+
"i1í",
354+
"i1ó",
355+
"í1o",
356+
"i1u",
357+
"i1ú",
358+
"o1á",
359+
"o1é",
360+
"o1í",
361+
"o1ó",
362+
"u1á",
363+
"u1ã",
364+
"u1â",
365+
"u1í",
366+
"ú1o",
367+
"1qu2á",
368+
"1qu2â",
369+
"1qu2í",
370+
"1gu2í",
371+
"a1ind",
372+
"a1i1nh",
373+
"e1imp",
374+
"e1inc",
375+
"e1inf",
376+
"e1ing",
377+
"e1ins",
378+
"e1int",
379+
"e1inv",
380+
"u1iz.",
381+
"a1iz.",
382+
"4a.",
383+
"4e.",
384+
"4o.",
385+
"1gu2á",
386+
"1gu2ã",
387+
"1qu2ã",
388+
".m2n",
389+
"c2za",
390+
".s2",
391+
"1p2seu1d",
392+
"1dô",
393+
"1fô",
394+
"1mô",
395+
"1nô",
396+
"1sô",
397+
"1zô",
398+
"tu1i",
399+
"tu2it",
400+
"tu2id",
401+
"bu1i",
402+
"nu1i",
403+
"o1in",
404+
"u1in",
405+
"su1i",
406+
"í1e",
407+
"ju1i",
408+
"fu1i",
409+
"du1i",
410+
"do1im",
411+
"au1i",
412+
"u1i1ç",
413+
"u1ê",
414+
"1gu2ê",
415+
"1qu2ê",
416+
"1çô",
417+
"u1é",
418+
"1gu2é",
419+
"1qu2é",
420+
"1xô",
421+
"a1â",
422+
"a1ã",
423+
"a1ô",
424+
"e1ô",
425+
".ne4o",
426+
"o1ã",
427+
"o1ê",
428+
"o1im",
429+
"o2i1na",
430+
"pro1i1b",
431+
"co2ima",
432+
".t2",
313433
"1-",
314434
},
315435
exceptions = {

languages/pt/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ SILE.nodeMakers.pt = pl.class(SILE.nodeMakers.unicode)
44
SILE.nodeMakers.pt.handleWordBreak = SILE.nodeMakers.unicode._handleWordBreakRepeatHyphen
55
SILE.nodeMakers.pt.handlelineBreak = SILE.nodeMakers.unicode._handlelineBreakRepeatHyphen
66

7-
local hyphens = require("languages.pt.hyphens")
7+
local hyphens = require("languages.pt.hyphens-tex")
88
SILE.hyphenator.languages["pt"] = hyphens

0 commit comments

Comments
 (0)