First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 139669
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Kevin F. Quinn (RETIRED) <kevquinn@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Michiel de Bruijne <m.debruijne@matrict.nl>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
oodict.eselect install all dictionaries for a language text/plain Kevin F. Quinn (RETIRED) 2006-07-08 10:07 0000 12.01 KB Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 139669 depends on: 139422 Show dependency tree
Show dependency graph
Bug 139669 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-07-08 07:42 0000
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 From Kevin F. Quinn (RETIRED) 2006-07-08 09:09:59 0000 -------
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 From Kevin F. Quinn (RETIRED) 2006-07-08 09:16:51 0000 -------
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 From Michiel de Bruijne 2006-07-08 09:21:49 0000 -------
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 From Michiel de Bruijne 2006-07-08 09:25:44 0000 -------
(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 From Michiel de Bruijne 2006-07-08 09:27:47 0000 -------
(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 From Kevin F. Quinn (RETIRED) 2006-07-08 10:07:24 0000 -------
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.

------- Comment #7 From Michiel de Bruijne 2006-07-09 08:52:02 0000 -------
(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 From Kevin F. Quinn (RETIRED) 2006-08-04 04:13:12 0000 -------
I'm subsuming this into the new myspell.eselect stuff; see bug #139422.

------- Comment #9 From Kevin F. Quinn (RETIRED) 2006-08-06 11:50:53 0000 -------
I've added this to eselect-oodict as well anyway; new version
app-admin/eselect-oodict-20060806.

------- Comment #10 From Michiel de Bruijne 2006-08-08 14:46:59 0000 -------
I have tested app-admin/eselect-oodict-20060806, works great, thanks a lot!

------- Comment #11 From AndrĂ¡s 2006-08-09 03:15:00 0000 -------
(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 From Andreas Proschofsky 2006-09-14 09:45:16 0000 -------
Just out of interest: Is this now solved, or what is still missing?

------- Comment #13 From Michiel de Bruijne 2006-09-14 14:07:23 0000 -------
(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 From Jakub Moc 2007-06-17 21:03:06 0000 -------
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.

First Last Prev Next    No search results available      Search page      Enter new bug