I have emerged myspell-nl and the following files are created in /usr/lib/openoffice/share/dict/ooo -rw-r--r-- 1 root root 614 2006-07-08 11:30 dictionary.lst lrwxrwxrwx 1 root root 33 2006-07-08 11:30 hyph_nl_NL.dic -> /usr/share/myspell/hyph_nl_NL.dic lrwxrwxrwx 1 root root 29 2006-07-08 11:30 nl_med.aff -> /usr/share/myspell/nl_med.aff lrwxrwxrwx 1 root root 29 2006-07-08 11:30 nl_med.dic -> /usr/share/myspell/nl_med.dic lrwxrwxrwx 1 root root 28 2006-07-08 11:30 nl_NL.aff -> /usr/share/myspell/nl_NL.aff lrwxrwxrwx 1 root root 28 2006-07-08 11:30 nl_NL.dic -> /usr/share/myspell/nl_NL.dic the contents of dictionary.lst is DICT nl NL nl_med HYPH nl NL hyph_nl_NL Notice that nl_NL.dic isn't used. Language packs with multiple dic-files are not completely activated.
Thanks for the report. You're right; OpenOffice.org can only cope with one dictionary per language variant that it understands - I can't add: DICT nl med ... because OpenOffice doesn't understand it. I had the same problem with the Hungarian dictionary, which has a utf8 version and a non-utf8 version. In that case I forced the ebuild to install just the utf8 version. I'm not sure that's a good idea here - I think it would be better to install both nl_NL and nl_med into /usr/share/myspell and link just the nl_NL one into OpenOffice; what do you think?
Just to clarify slightly; it is possible to write: DICT nl NL nl_NL DICT nl med nl_med into dictionary.lst, but it creates two entries in the language selection drop-down with the same name - both become: "Dutch (Netherlands)". This isn't much use.
Multiple dic-files can be activated for one language. If you put the following lines in dictionary.lst; DICT nl NL nl_med DICT nl NL nl_NL HYPH nl NL hyph_nl_NL then both dic-files will be parsed when checking for the Dutch language. eselect-oodict just need to add them all to dictionary.lst
(In reply to comment #2) > into dictionary.lst, but it creates two entries in the language selection > drop-down with the same name - both become: "Dutch (Netherlands)". This isn't > much use. > If I put both in dictionary.lst I get only one entry in the language selection drop-down
(In reply to comment #4) > (In reply to comment #2) > > into dictionary.lst, but it creates two entries in the language selection > > drop-down with the same name - both become: "Dutch (Netherlands)". This isn't > > much use. > > > > If I put both in dictionary.lst I get only one entry in the language selection > drop-down And I have checked with words that only exists in one dic-file. Both are recognized.
Created attachment 91215 [details] install all dictionaries for a language Thanks for the info. Try this - save it to /usr/share/eselect/oodict.eselect It should sort out your problem; I have more work to do on it as I think it'll break other stuff.
(In reply to comment #6) > Created an attachment (id=91215) [edit] > install all dictionaries for a language > > Thanks for the info. Try this - save it to /usr/share/eselect/oodict.eselect > > It should sort out your problem; I have more work to do on it as I think it'll > break other stuff. > Works great. Thanks! You can apply the same logic on the Hungarian dictionary and activate both utf8 version and non-utf8 version with one entry in the language selection drop-down.
I'm subsuming this into the new myspell.eselect stuff; see bug #139422.
I've added this to eselect-oodict as well anyway; new version app-admin/eselect-oodict-20060806.
I have tested app-admin/eselect-oodict-20060806, works great, thanks a lot!
(In reply to comment #7) > You can apply the same logic on the Hungarian dictionary and activate > both utf8 version and non-utf8 version with one entry in the language > selection drop-down. As for the Hungarian the latin2 version is a subset of the utf8 version, this is not suggested. For OpenOffice only the utf8 version should be used, while the latin2 dictionary should also be installed into the /usr/share/myspell dir without linking it to OO. thx
Just out of interest: Is this now solved, or what is still missing?
(In reply to comment #12) > Just out of interest: Is this now solved, or what is still missing? > For nl, both dic-files are activated with one entry in the drop down menu, so for nl everything works fine. I'm happy with current behaviour. Much thanks to Kevin.
06 Aug 2006; Kevin F. Quinn <kevquinn@gentoo.org> +eselect-oodict-20060806.ebuild: Modify to install all dictionaries files for a language where the language has more than one - bug #139669 Closing.