Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lyx/hunspell doesn't recognize hunspell dicts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ExecutorElassus
Veteran
Veteran


Joined: 11 Mar 2004
Posts: 1435
Location: Berlin, Germany

PostPosted: Sun Sep 02, 2012 11:41 pm    Post subject: Lyx/hunspell doesn't recognize hunspell dicts Reply with quote

So, I use Lyx for some of my academic papers, and I write some of them in German. Now, LibreOffice seems to have no trouble using the hunspell dictionaries (which are in the format de_DE_frami.dic/.aff, and found in /usr/share/hunspell).

However, Lyx, bless its little heart, despite that I set that same directory in the path, does not look there (or rather, does not find anything there), and defaults to Lyx's dictionary directory (/usr/share/lyx/dicts). In that directory are the following files:
Code:
# ls -l
ls: error initializing month strings
total 25476
lrwxrwxrwx 1 root root       35 19. Jun 00:48 de_AT_frami.aff -> /usr/share/hunspell/de_AT_frami.aff
lrwxrwxrwx 1 root root       35 19. Jun 00:48 de_AT_frami.dic -> /usr/share/hunspell/de_AT_frami.dic
lrwxrwxrwx 1 root root       35 19. Jun 00:48 de_CH_frami.aff -> /usr/share/hunspell/de_CH_frami.aff
lrwxrwxrwx 1 root root       35 19. Jun 00:48 de_CH_frami.dic -> /usr/share/hunspell/de_CH_frami.dic
lrwxrwxrwx 1 root root       34 19. Jun 00:48 de_DE_1901.aff -> /usr/share/hunspell/de_DE_1901.aff
lrwxrwxrwx 1 root root       34 19. Jun 00:48 de_DE_1901.dic -> /usr/share/hunspell/de_DE_1901.dic
lrwxrwxrwx 1 root root       35  3. Sep 01:29 de_DE.aff -> /usr/share/hunspell/de_DE_frami.aff
lrwxrwxrwx 1 root root       35  3. Sep 01:29 de_DE.dic -> /usr/share/hunspell/de_DE_frami.dic
lrwxrwxrwx 1 root root       35 19. Jun 00:48 de_DE_frami.aff -> /usr/share/hunspell/de_DE_frami.aff
lrwxrwxrwx 1 root root       35 19. Jun 00:48 de_DE_frami.dic -> /usr/share/hunspell/de_DE_frami.dic
-rw-r--r-- 1 root root      306  7. Aug 2011  dictionary.lst.en
-rw-r--r-- 1 root root    37443  7. Aug 2011  en_AU.aff
-rw-r--r-- 1 root root   564226  7. Aug 2011  en_AU.dic
-rw-r--r-- 1 root root     1809  7. Aug 2011  en_CA.aff
-rw-r--r-- 1 root root   698653  7. Aug 2011  en_CA.dic
-rw-r--r-- 1 root root    27449  7. Aug 2011  en_GB.aff
-rw-r--r-- 1 root root   527337  7. Aug 2011  en_GB.dic
-rw-r--r-- 1 root root    27449  7. Aug 2011  en_GB-oed.aff
-rw-r--r-- 1 root root   524461  7. Aug 2011  en_GB-oed.dic
-rw-r--r-- 1 root root    27908  7. Aug 2011  en_NZ.aff
-rw-r--r-- 1 root root   536528  7. Aug 2011  en_NZ.dic
-rw-r--r-- 1 root root     3045  7. Aug 2011  en_US.aff
-rw-r--r-- 1 root root   696131  7. Aug 2011  en_US.dic
-rw-r--r-- 1 root root    27449  7. Aug 2011  en_ZA.aff
-rw-r--r-- 1 root root   590143  7. Aug 2011  en_ZA.dic
lrwxrwxrwx 1 root root       32 19. Jun 00:48 hyph_de_AT.dic -> /usr/share/hyphen/hyph_de_AT.dic
lrwxrwxrwx 1 root root       32 19. Jun 00:48 hyph_de_CH.dic -> /usr/share/hyphen/hyph_de_CH.dic
lrwxrwxrwx 1 root root       37 19. Jun 00:48 hyph_de_DE_1901.dic -> /usr/share/hyphen/hyph_de_DE_1901.dic
lrwxrwxrwx 1 root root       32 19. Jun 00:48 hyph_de_DE.dic -> /usr/share/hyphen/hyph_de_DE.dic
-rw-r--r-- 1 root root    79272  7. Aug 2011  hyph_en_GB.dic
lrwxrwxrwx 1 root root       33 19. Jun 00:48 th_de_AT_v2.dat -> /usr/share/mythes/th_de_AT_v2.dat
lrwxrwxrwx 1 root root       33 19. Jun 00:48 th_de_AT_v2.idx -> /usr/share/mythes/th_de_AT_v2.idx
lrwxrwxrwx 1 root root       33 19. Jun 00:48 th_de_CH_v2.dat -> /usr/share/mythes/th_de_CH_v2.dat
lrwxrwxrwx 1 root root       33 19. Jun 00:48 th_de_CH_v2.idx -> /usr/share/mythes/th_de_CH_v2.idx
lrwxrwxrwx 1 root root       33 19. Jun 00:48 th_de_DE_v2.dat -> /usr/share/mythes/th_de_DE_v2.dat
lrwxrwxrwx 1 root root       33 19. Jun 00:48 th_de_DE_v2.idx -> /usr/share/mythes/th_de_DE_v2.idx
-rw-r--r-- 1 root root 18579178  7. Aug 2011  th_en_US_v2.dat
-rw-r--r-- 1 root root  3043807  7. Aug 2011  th_en_US_v2.idx

You will notice that all of the non-symlinked files are to extended dictionary names. The ones that aren't all belong to myspell-2008. Those myspell dicts files are the only ones hunspell recognizes, despite that I just made two linked files for de_DE that are also the same short format. Still, Lyx/hunspell doesn't recognize them.

Any advice on why this is? One of the most annoying things ever is to have to ask my German colleagues to plod through my papers finding typos just because the spellchecker isn't working. Is there some setting for hunspell that I'm missing here? Is Lyx just wonky about using links?

Thanks for the help.

EE
Back to top
View user's profile Send private message
scarabeus
Developer
Developer


Joined: 25 Oct 2008
Posts: 95
Location: Europe/Prague

PostPosted: Mon Sep 03, 2012 12:13 pm    Post subject: Reply with quote

Seems like this bug https://bugs.gentoo.org/show_bug.cgi?id=430468 .

Sadly I have no damn clue what the hell is happening. So feel free to report upstream and/or patch.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum