Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353010 - app-office/libreoffice-bin-3.3.0 should install dictionaries
Summary: app-office/libreoffice-bin-3.3.0 should install dictionaries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-28 07:23 UTC by Matthew Turnbull
Modified: 2011-02-09 08:36 UTC (History)
2 users (show)

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


Attachments
install dictionaries (libreoffice-bin-3.3.0.ebuild.patch,1.47 KB, patch)
2011-01-28 07:29 UTC, Matthew Turnbull
Details | Diff
install dictionaries take 2 (libreoffice-bin-3.3.0-r1.ebuild.patch,1.50 KB, patch)
2011-01-29 22:32 UTC, Matthew Turnbull
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Turnbull 2011-01-28 07:23:31 UTC
libreoffice-bin doesn't install any dictionaries, and the only place they are available is in the install and langpack RPMs. It would be nice if these were included in the install.

Reproducible: Always

Steps to Reproduce:
Comment 1 Matthew Turnbull 2011-01-28 07:29:13 UTC
Created attachment 260893 [details, diff]
install dictionaries

This is a quick hack I put together to install the dictionaries. Handling the langpack dictionaries could probably be better, like using find instead of a double loop, but it appears to work.

My test:
LINGUAS="ru uk fr sw_TZ zh_CN" emerge -av libreoffice-bin
Installs dict-en, dict-fr, dict-ru
Comment 2 Andreas Proschofsky (RETIRED) gentoo-dev 2011-01-28 10:48:35 UTC
The problem as I see it: not all the included dictionaries use the correct language code, which makes this all a bit tricky.

Also: if possible I think it would be better to use the system-wide myspell-dictionaries, but I'll still have to look into that...
Comment 3 Matthew Turnbull 2011-01-29 22:32:42 UTC
Created attachment 261046 [details, diff]
install dictionaries take 2

Uses find to get the dict files, and sed to check if we've already extracted them.


I agree that integration with the system myspell dictionaries would be desirable. It could probably be done by linking the myspell dictionaries into the libreoffice extensions folder, then generating the necessary libreoffice extension manifest files.

ln -s /usr/share/myspell/ /usr/lib64/libreoffice/share/extensions/dict-myspell
generate /usr/share/myspell/META-INF/manifest.xml
generate /usr/share/myspell/description.xml
generate /usr/share/myspell/dictionaries.xcu

The only caveat being that the dictionaries.xcu would need to be regenerated whenever myspell dictionaries are [un]installed.
Comment 4 Ondrej Filip 2011-02-08 17:40:41 UTC
Is there any progress with the issue?
Comment 5 Andreas Proschofsky (RETIRED) gentoo-dev 2011-02-09 08:36:37 UTC
This is in portage now (as a rev-bump), thanks a lot Matthew for the patch, great work! Closing.