Skip to content

Create a dictionary for your pocketbook with data from dict.cc

License

Notifications You must be signed in to change notification settings

OliverHaag/pocketbook_dic

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POCKETBOOK DICTIONARY DICT.CC

Screenshot pocketbook e-book reader translation ENG-GER
Passage from "The Hitchhiker's Guide to the Galaxy" by Douglas Adams

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. After a little research I found out that you can now use stardict dictionaries if you use another reader application on your eBook reader. This instruction is for the classic way and here I decided to create my own dictionary based on the data provided by dict.cc.

Excerpt from the page "About dict.cc":

[...]
All services offered by dict.cc can be used in the web browser for free, both for private and business purposes. All other ways of usage, particularly automated requests (parsing) require express permission.
[...]

Therefore I do not offer the finished dictionary for download, you have to download the vocabulary from dict.cc yourself.

The instructions were developed and tested on January 7, 2021 for the ENG-GER data (English to German). If I have the time and feel like it, I will provide assistance, but cannot guarantee it. Feel free to add new languages ​​to this script or improve it elsewhere.

How to create a (translation) dictionary for Pocketbook eBook Readers:

(These instructions have only been tested with the Pocketbook Touch 3, but the newly created dictionaries should work on all Pocketbook devices.)

  1. Download the translation text file from dict.cc (for private use only, so you cannot download the finished dictionary in this repository.)
    • If you don't want to deal with this tool or these instructions, download it directly the finished dictionary from dict.cc and copy and paste it into your e-book reader as described in step 5 (note, however, that this dictionary is not as comprehensive as the one you can create yourself with this instruction).
  2. Unzip the downloaded archive, place the text file next to the Python file (after cloning this repo 🤓) and rename it to "lex.txt".
  3. Run python3 ./parser.py in the dictionary that lex.txt and parser.py are located and get some coffee, read a book, or clean your kitchen - it will take some time
  4. Now we need to convert the newly created lex.xdxf1 file with converter.exe
    • You can download converter.exe here: Mobileread forum, there are a few different versions of this tool on this forum: I have tested two different ones and the result were exactly the same
    • Copy your lex.xdxf file into the extracted directory of the converter. There should be an executable file and some folders like ger or eng. These are needed for the converter.
    • Run cmd or Powershell under Windows or with Wine (does not work on my machine): ./converter.exe ./lex.xdxf eng (set paths correct for your os)
  5. Copy the new dictation file on your Pocketbook reader in /system/dictionionaries/lex.dic

Good luck and much fun with your new dictionary

1 Further information on the xdxf standard: https://github.com/soshial/xdxf_makedict

About

Create a dictionary for your pocketbook with data from dict.cc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%