Compare commits

...

1 Commits
3.11 ... 3.11

Author SHA1 Message Date
Florian Guillet 5d61a97b8e CONTRIBUTING: Ajout installation poutils sur MacOS 2023-05-24 16:29:49 +02:00
1 changed files with 29 additions and 1 deletions

View File

@ -23,8 +23,36 @@ la manipulation des fichiers ``.po`` et la traduction.
`Poutils <https://pypi.org/project/poutils/>`_ est un paquet PyPI qui
regroupe un certain nombre d'outils liés à la traduction. Dans un
environnement disposant de Python 3.7 ou plus, installez-le avec ::
environnement disposant de Python 3.7 ou plus, installez-le avec :
Debian / Ubuntu ::
python3 -m pip install poutils
MacOS (intel) ::
brew install hunspell
sudo mkdir /Library/Spelling/
# Aller chercher le dictionnaire français sur grammalecte
# http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.dic&ci=tip
# http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.aff&ci=tip
sudo mv ~/Downloads/fr-toutesvariantes.dic /Library/Spelling/fr_FR.dic
sudo mv ~/Downloads/fr-toutesvariantes.aff /Library/Spelling/fr_FR.aff
ln -s /usr/local/Cellar/hunspell/1.7.2/lib/libhunspell-1.7.0.dylib /usr/local/Cellar/hunspell/1.7.2/lib/libhunspell.dylib
CFLAGS=$(pkg-config --cflags hunspell) LDFLAGS=$(pkg-config --libs hunspell) python3 -m pip install hunspell
python3 -m pip install poutils
MacOS (Universal) ::
brew install hunspell
sudo mkdir /Library/Spelling/
# Aller chercher le dictionnaire français sur grammalecte
# http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.dic&ci=tip
# http://grammalecte.net:8080/file?name=gc_lang/fr/oxt/Dictionnaires/dictionaries/fr-toutesvariantes.aff&ci=tip
sudo mv ~/Downloads/fr-toutesvariantes.dic /Library/Spelling/fr_FR.dic
sudo mv ~/Downloads/fr-toutesvariantes.aff /Library/Spelling/fr_FR.aff
ln -s /opt/homebrew/lib/libhunspell-1.7.0.dylib /opt/homebrew/Cellar/hunspell/1.7.2/lib/libhunspell-1.7.0.dylib
CFLAGS=$(pkg-config --cflags hunspell) LDFLAGS=$(pkg-config --libs hunspell) python3 -m pip install hunspell
python3 -m pip install poutils
Dans notre cas, les utilitaires de *Poutils* qui nous intéressent sont :