Subject: Re: bug#53147: Hunspell dictionaries unavailable in LibreOffice

From: Ludovic Courtès <[email-masked]>
Date: Wed, 19 Jan 2022 23:04:10 +0100

Ludovic Courtès <[email-masked]> skribis:

> When running something like:
>
>    guix shell hunspell hunspell-dict-fr libreoffice -- libreoffice
>
> Hunspell dictionaries (for French in this case) are unavailable from the
> spell-checking menu, even though DICPATH is set (this is with
> 92faad0adb93b8349bfd7c67911d3d95f0505eb2).

Another data point: Hunspell itself does find the dictionaries:

--8<---------------cut here---------------start------------->8---
$ guix shell -C hunspell-dict-{de,fr,pl} hunspell -- hunspell -D
SEARCH PATH:
.::/gnu/store/nkzscw3rb7ypm4a1f6ljx8lvpkssv8va-profile/share/hunspell:/usr/share/hunspell:/usr/share/myspell:/usr/share/myspell/dicts:/Library/Spelling:/home/ludo/.openoffice.org/3/user/wordbook:/home/ludo/.openoffice.org2/user/wordbook:/home/ludo/.openoffice.org2.0/user/wordbook:/home/ludo/Library/Spelling:/opt/openoffice.org/basis3.0/share/dict/ooo:/usr/lib/openoffice.org/basis3.0/share/dict/ooo:/opt/openoffice.org2.4/share/dict/ooo:/usr/lib/openoffice.org2.4/share/dict/ooo:/opt/openoffice.org2.3/share/dict/ooo:/usr/lib/openoffice.org2.3/share/dict/ooo:/opt/openoffice.org2.2/share/dict/ooo:/usr/lib/openoffice.org2.2/share/dict/ooo:/opt/openoffice.org2.1/share/dict/ooo:/usr/lib/openoffice.org2.1/share/dict/ooo:/opt/openoffice.org2.0/share/dict/ooo:/usr/lib/openoffice.org2.0/share/dict/ooo
AVAILABLE DICTIONARIES (path is not mandatory for -d option):
/gnu/store/nkzscw3rb7ypm4a1f6ljx8lvpkssv8va-profile/share/hunspell/pl_PL
/gnu/store/nkzscw3rb7ypm4a1f6ljx8lvpkssv8va-profile/share/hunspell/fr-classique
/gnu/store/nkzscw3rb7ypm4a1f6ljx8lvpkssv8va-profile/share/hunspell/de_DE
--8<---------------cut here---------------end--------------->8---

Stracing ‘soffice’ shows that it searches the ‘share/hunspell’
directories too.  Now to find why it’s not doing anything with them.

Ludo’.