Summary: | Myspell doesn't work with oxt dictionaries provided by OpenOffice.org extensions | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Joaquim Uchoa <joukim> |
Component: | New packages | Assignee: | Spell checking utilities and dictionaries -- related bugs (OBSOLETE) <app-dicts+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | atman.sense, pva |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
patch to myspell.eclass to support *.oxt openoffice extensions
Updated myspell.class |
Description
Joaquim Uchoa
2010-01-27 02:15:19 UTC
This is expected, because myspell really does not work with oxt dictionaries... or do you mean that it is possible to make it workable somehow? (In reply to comment #1) > This is expected, because myspell really does not work with oxt dictionaries... > or do you mean that it is possible to make it workable somehow? > Oxt files are zip files: unzip -l Vero_pt_BR_V207AOC.oxt Archive: Vero_pt_BR_V207AOC.oxt Length Date Time Name --------- ---------- ----- ---- 366 09-22-2008 17:35 META-INF/manifest.xml 4327 01-08-2010 22:14 description.xml 1300 07-02-2009 09:02 dictionaries.xcu 3081 12-14-2009 21:32 hyph_pt_BR.dic 968260 01-09-2010 11:33 pt_BR.aff 4571588 01-09-2010 11:25 pt_BR.dic 2600 09-22-2008 17:35 README_en.TXT 11482 01-08-2010 22:11 README_hyph_pt_BR.TXT 9099 01-08-2010 22:05 README_pt_BR.TXT --------- ------- 5572103 9 files The problem to me, is that oxt is the actual format adopted by OpenOffice.org. So, in my opinion is highly desirable that Myspell eclass was able to work with oxt files. I don't know how to do this workaround and how to start. I've tried to use src_prepare() to rename the oxt file to give it a zip extension, but aparently Portage tries to unpack the file before src_prepare(). I think there is a configuration to Portage informing the command associated with a file, but I couldn't find it. So I think the better way to improve dictionaries in future is using oxt files and configurating Portage to open this kind of file with unzip. How I can start to do this? Write custom src_unpack function for myspell.eclass which will do that. For example, take a look on /usr/lib/portage/bin/ebuild.sh unpack() function. Created attachment 273417 [details, diff] patch to myspell.eclass to support *.oxt openoffice extensions for example see bug #305725 Created attachment 305303 [details]
Updated myspell.class
Updated eclass file, with provided patch. Worked here with an updated myspell-pt!
Please, gentoo developers: update main tree!!!
The eclass myspell-r2 is provided in main tree for this purposes. Example ebuilds are myspell-cs, myspell-ca or myspell-sk. |