View Single Post
Old 06-23-2019, 05:34 PM   #2
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,731
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by playful View Post
Would some of you please provide some pointers to known tools or procedures to take a mobi (or even better, azw) dictionary and port it to StarDict?
AFAIK, there's no Kindle to StarDict converter.

You'd have to do the following:
  1. De-DRM the dictionary.
  2. Unpack it with KindleUnpack.
  3. Reformat the source .html file to a Babylon GLS file.
  4. Convert the Babylon GLS file to a StarDict dictionary with StarDict Editor.
Especially the third step is rather time-consuming, unless you're a regex expert.

BTW, the Babylon GLS file should look like this:

Code:
#stripmethod=keep
#sametypesequence=h
#bookname=Spanish-English Dictionary

libro|libros
<p>single line definition of 'libro' (may contain html 3.2 tags, e.g <br>)</p>

rana|ranas
<p>single line definition of 'rana' (may contain html 3.2 tags, e.g <br>)</p>
Doitsu is offline   Reply With Quote