Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139669 - eselect-oodict doesn't generate a complete dictionary.lst
Summary: eselect-oodict doesn't generate a complete dictionary.lst
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Kevin F. Quinn (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on: 139422
Blocks:
  Show dependency tree
 
Reported: 2006-07-08 07:42 UTC by Michiel de Bruijne
Modified: 2007-06-17 21:03 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
install all dictionaries for a language (oodict.eselect,12.01 KB, text/plain)
2006-07-08 10:07 UTC, Kevin F. Quinn (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michiel de Bruijne 2006-07-08 07:42:49 UTC
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.
Comment 1 Kevin F. Quinn (RETIRED) gentoo-dev 2006-07-08 09:09:59 UTC
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?
Comment 2 Kevin F. Quinn (RETIRED) gentoo-dev 2006-07-08 09:16:51 UTC
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.
Comment 3 Michiel de Bruijne 2006-07-08 09:21:49 UTC
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
Comment 4 Michiel de Bruijne 2006-07-08 09:25:44 UTC
(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
Comment 5 Michiel de Bruijne 2006-07-08 09:27:47 UTC
(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.
Comment 6 Kevin F. Quinn (RETIRED) gentoo-dev 2006-07-08 10:07:24 UTC
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.
Comment 7 Michiel de Bruijne 2006-07-09 08:52:02 UTC
(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.
Comment 8 Kevin F. Quinn (RETIRED) gentoo-dev 2006-08-04 04:13:12 UTC
I'm subsuming this into the new myspell.eselect stuff; see bug #139422.
Comment 9 Kevin F. Quinn (RETIRED) gentoo-dev 2006-08-06 11:50:53 UTC
I've added this to eselect-oodict as well anyway; new version app-admin/eselect-oodict-20060806.
Comment 10 Michiel de Bruijne 2006-08-08 14:46:59 UTC
I have tested app-admin/eselect-oodict-20060806, works great, thanks a lot!
Comment 11 András 2006-08-09 03:15:00 UTC
(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
Comment 12 Andreas Proschofsky (RETIRED) gentoo-dev 2006-09-14 09:45:16 UTC
Just out of interest: Is this now solved, or what is still missing?
Comment 13 Michiel de Bruijne 2006-09-14 14:07:23 UTC
(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.
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-06-17 21:03:06 UTC
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.