View Single Post
Old 06-21-2020, 07:35 PM   #81
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,805
Karma: 7423683
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by Alanon View Post
Using the default PyGlossary options to convert my dictionaries to Kobo format did not result in a readable dictionary. So I guess my first question would be - to what format do I need to convert a .dsl dictionary for best results with dictutils?
If you don't have words with multiple headwords (i.e. multiple words with the same definition) and don't have images, I'd actually suggest using Penelope to convert the dictionary, then to use dictzip-decompile on it and regenerate it with dictgen. This way, you can take advantage of the input formats supported by Penelope, but still make use of the features and compatibility of dictutil.

Otherwise, if you have multiple headwords, I'd suggest converting it to a plain-text format (like the Babylon text one or CSV) and using a text editor with regexp and multi-cursor support to transform it into a dictfile, then use dictgen on it. If you do use the Babylon format, there's a converter on the dictutil site.

If you also need images, I'd suggest writing a custom script to do it (or give me an example of what a word looks like, and I'll see what I can do).
geek1011 is offline   Reply With Quote