View Single Post
Old 04-20-2014, 06:55 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,836
Karma: 30277270
Join Date: Mar 2012
Location: Sydney Australia
Device: none
In another thread mrmikel posted this https://www.mobileread.com/forums/sho...5&postcount=53

Quote:
Originally Posted by mrmikel View Post
Thanks for the try on the dictionary, but it fails when I try to install to calibre with:
calibre, version 1.33.0
ERROR: Failed to import dictionaries: Failed to import dictionaries from J:/Our Documents/Etexts/en_gb_us.oxt. Click "Show Details" for more information

Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\spell.py", line 112, in accept
File "site-packages\calibre\spell\import_from.py", line 70, in import_from_oxt
File "site-packages\calibre\utils\zipfile.py", line 1008, in open
File "site-packages\calibre\utils\zipfile.py", line 970, in getinfo
KeyError: "There is no item named u'META-INF/manifest.xml' in the archive"
@mrmikel - The zip I posted can only be used with Sigil by copying the contents to the Sigil\hunspell_dictionaries folder and then selecting en_gb_us.

I had hoped my previous post made it clear that it can't be used with Calibre. I've added a paragraph to make it clear.

They can't be used by calibre as it requires an OXT file. Whilst an OXT is a rebadged ZIP, it contains files in addition to the .dic(tionary) and .aff(ix) files as in

Code:
META-INF
    manifest.xml
*en_US.aff
 th_en_US_v2.dat
*en_US.dic
*hyph_en_US.dic
 th_en_US_v2.idx
 license.txt 
 affDescription.txt
 changelog.txt
 dictionaries.xcu
 description.xml
So far we've demonstrated that a combined dictionary is feasible, but we don't have a specific solution for calibre. I don't know enough about OXT files in part because I don't use Open Office. Perhaps someone who uses OO, could investigate if/how one could merge the other files, also I don't know which of the other files calibre actually uses.

I find it odd that this issue (combining dictionaries) has arisen in the context of the calibre book editor, with a quick search I couldn't find anything similar in the Sigil forum

BR

Last edited by BetterRed; 04-20-2014 at 07:14 PM.
BetterRed is offline   Reply With Quote