View Single Post
Old 02-25-2021, 02:08 AM   #924
genoasalami
Connoisseur
genoasalami began at the beginning.
 
Posts: 54
Karma: 20
Join Date: Apr 2017
Device: KK3G, PW, Voyage, Oasis, Aura One, Forma
is there a maximum file size for adding dictionaries? It looks like on the latest FW just dropping a stardict file is enough. However, my OED stardict file is over 200 megs and when I add it even though it shows up in the list there are never any results

Edit:


I fixed this by recreating dicthtml.zip using Penelope. However, Penelope will not install under windows because it requires the marisa-trie dependency which for some reason won't install either. Welcome to Python. Ultimately, I used my *nix system to get Penelope working, and as I think about this, that's what I had to do last time as well. If you're able to get python working under Windows, more power to you, but this was a mess and using *nix was faster for me, although that doesn't really help people who aren't tech savvy enough to have such a system handy.

The large file size doesn't seem to be a problem, but it does cause the Forma to chug for half a tick when you go to define a word. Not that big of a deal in my opinion, but it's worth noting.

Re the dictionary itself: the latest OED edition is the second. The third is underway according to the wiki; so, when you see a 1989 publication date, don't freak out. If you're here because you're looking for the OED, something something copyright and try google-fu.

Instructions:

1. get Penelope
2. get stardict file
3. depending upon where you happen across your stardict file, you will need to put it into a regular zip; so extract it and then zip it (literally .zip, not .7z or .tar etc); Penelope is expecting a .zip
3.
Code:
penelope -i oed1filename,oed2filename -j stardict -o oed.zip -p kobo -f en -t en
this: runs penelope, feeds it your two-part OED files, tells them to expect stardict format, tells it to output oed.zip (which penelope ignores; it will output dicthtml.zip), tells it to output in kobo format, and tells it that the to and from languages are both english
4. rename dicthtml.zip to dicthtml-oed.zip
this is desirable because without renaming the file the current Kobo FW will not remember that you've selected a different dictionary causing you to keep getting the default when you highlight a word. By renaming the file, it will persist for each lookup
5. make sure you're on the current firmware
6. connect your Kobo to your PC
7. drag dicthtml-oed.zip onto your kobo, placing it in .kobo\custom-dict
8. eject and unplug your kobo
9. go lookup a word
10. click the english dropdown and then select dicthtml-oed
11. Enjoy.

Last edited by genoasalami; 02-26-2021 at 01:07 PM.
genoasalami is offline   Reply With Quote