nex_docus/backend/venv312/lib/python3.12/site-packages/pyphen/dictionaries/update.sh

8 lines
251 B
Bash

git clone https://git.libreoffice.org/dictionaries libreoffice-dictionaries
cd libreoffice-dictionaries
git pull
cd ..
find libreoffice-dictionaries -name "hyph_*\.dic" | xargs -I '{}' cp '{}' .
sed -i 's/\r$//' *.dic
rename -- -Latn _Latn *-Latn.dic