-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #343 from sbosio/separador-tex
Separador basado en tex-hyphen-spanish
- Loading branch information
Showing
11 changed files
with
6,229 additions
and
9,285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,4 @@ | |
.vscode | ||
.zed | ||
productos/ | ||
.versiones.cfg | ||
contrib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
# asignación de variables en lenguaje shell de Bash | ||
# | ||
# CORRECTOR, versión de la edición actual del corrector ortográfico | ||
CORRECTOR="2.5" | ||
CORRECTOR="2.9" | ||
|
||
# SEPARACION, versión de la edición actual del patrón de silabeo | ||
SEPARACION="0.2" | ||
SEPARACION="5.0" | ||
|
||
# SINONIMOS, versión de la edición actual del patrón de silabeo | ||
SINONIMOS="24/02/2013" | ||
|
||
# LO_DICTIONARIES_GIT, ruta a la copia local de https://gerrit.libreoffice.org/admin/repos/dictionaries | ||
LO_DICTIONARIES_GIT="/home/olea/git/libreoffice-dictionaries/" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/bash | ||
|
||
# Se usa como fuente los patrones para patgen de tex-hyphen-spanish | ||
wget https://raw.githubusercontent.com/jbezos/tex-hyphen-spanish/refs/heads/master/tex/hyph-es.tex | ||
# Se hace uso de `substrings.pl` de Hunspell para convertir a Libhnj | ||
wget https://raw.githubusercontent.com/hunspell/hyphen/refs/heads/master/substrings.pl | ||
perl substrings.pl hyph-es.tex hyph_es.dic | ||
# Ajustes a `hyph_es.dic` | ||
sed -i -e '/^}/d' -e '1s/^/UTF-8\nLEFTHYPHENMIN 2\nRIGHTHYPHENMIN 2\n/' hyph_es.dic | ||
# Se remueven fuentes externas | ||
rm hyph-es.tex substrings.pl | ||
# Tests | ||
sed '/^%/d' hyph_es.dic | tr '\n' ' ' | sed 's/UTF-8 LEFTHYPHENMIN 2 RIGHTHYPHENMIN 2 //g' > hyph_es_test.dic | ||
python hyphenate.py | ||
rm hyph_es_test.dic |
Oops, something went wrong.