Hello,
a few years ago I bought a Pocketbook Touch HD 3 e-book reader and found it had a lousy standard dictionary. As a non-native speaker, I enjoy reading English books, so I occasionally need a translation of a word. The standard dictionaries on this device only provide basic vocabulary and therefore do not help me any further. Because of this problem, I looked around a little and only found expensive dictionaries that weren't big enough for my taste.
Therefore I wrote a small program to parse the data from dict.cc into the xdxf format, ready for the converter (which I got from this forum, thanks) to load these into the binary dic format by pocketbook. If you are wondering: My script only picks the translation of the words, no explanations or grammatical informations. I think, that another languages won't work with my tool - it has to be customized for it.
https://github.com/p4cx/pocketbook_dicPlease check it out. I am open for criticism and improvements. If you want, feel free to contribute to my repo. If you need help, feel free to ask.
Nice!
You can combine it with the dictionary script from this
thread. In case you would like to convert mobi-, Stardict- and csv-format to Pocketbook dic-format, too.
Looking at your code dict.cc is a csv-format with tab as separation symbol?
Ah, I already found it on github and starred it. But I didn't had the time to investigate this further. But I will, it's looking really promising.
Yeah, the format of dict.cc is a textfile with all entries in own lines, seperated with tabs. Quite easy to parse, it would even be possible to write a beautiful xdxf file with grammatical informations, etc.. But I don't like this kind of stuff while reading and translating words. Therefore I got rid of all that stuff.
But it shouldn't be that complicated to rewrite it with variable options and use your script for generating the dic file (so I don't have to use my Windows VM for the generator, yey )
I used a command line approach using wine:
wine convert.exe etc.etc. So without using my script, you can already get rid of the VM.
Yeah, i already tried that - won't work on my system. But there are some tools, I need Windows for, therefore the VM isn't that much a problem.
But I always prefer a Linux/Mac only solution.