View Single Post
Old 04-20-2014, 12:10 AM   #4
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,779
Karma: 30237628
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by mrmikel View Post
nope. I saw something that suggested combining them, but I don't understand the structure. Nor did I see any program to do so, but that seems like it might be something that someone could do.

http://code.google.com/p/hunspell-merge/downloads/list is a merge utility for hunspell. Looks like a java setup, but I don't know just how they relate one to the other, otx vs hunspell.

Here is website for roll your own.:
http://www.suares.com/index.php?page_id=25&news_id=233
@mrmikel & bobbert1234 - otx is the way that hunspell dictionaries are packaged for Open Office - they are just another zip

If you copy the .otx and rename to zip, then you can unarchive to a folder and it will have the .dic(tionary) and .aff(ix) files, which is what calibre and sigil use.

The java program seems to merge the diff and aff files that Sigil ships OK, and for Sigil you only need to put the merge dictionaries into its hunspell_dictionaries folder and then select the merged name in its preferences for spell checking. I have attached a zip with the four merged files. I have done very limited testing. The dictionary name is en_gb_us. As always, if it eats your book... Caveat Emptor.

The program is a bit fiddly in windows, I had to play around a bit to get the 'hang of it' - basically you need to get the .dic files and corresponding .aff files that you want to merge into the one folder, select the two or more .dic files in its list and hit the merge button.

Calibre requires OXT files. I didn't work out how to merge the other files (8 of them) that are packaged into an OXT file - nor will I be doing so.


Added - The attachment cannot be used in the Calibre Book Editor - it can be used by Sigil, more investigation/work is required to create a combined OXT file, which is what calibre needs.


BR
Attached Files
File Type: zip en_gb_us.zip (355.0 KB, 395 views)

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