BoboTiG / ebook-reader-dict

Finally decent dictionaries based on Wiktionary for your beloved eBook reader.
http://www.tiger-222.fr/?d=2020/04/17/22/14/21-un-dictionnaire-alternatif-et-complet-pour-votre-liseuse
MIT License
391 stars 21 forks source link

Feature request: Create EPUB dictionaries valid for Kindles #1913

Closed Juliaria08 closed 9 months ago

Juliaria08 commented 9 months ago

I propose the program creates or at least makes it easier to create valid codepage 1252 dictionaries, similar to the files made by The Ficcionary.

I understand that this might not be the best issue or may not be acknowledged, but I hope someone finds this useful, and I certainly do.

The kindle that I've got is a old K4S, and I can test files generated if requested, but if so, for the first tests I'd prefer to have the English and Spanish dictionaries used, as those are the languages I can read and understand.

Juliaria08 commented 9 months ago

Oh, it seems like the codepage isn't important, as kindlegen seems to have that option in the manpage saying -western: force build of Windows-1252 book, so I think the following headers should be set from KindleUnpack

  Field:         dict_in_lang   Offset: 0x060   Width:  4   Value: 0x0409
  Field:        dict_out_lang   Offset: 0x064   Width:  4   Value: 0x0409

Or somthing similar.

lasconic commented 9 months ago

Do you have more information about the format? A page describing it ?

Does https://github.com/ilius/pyglossary support the format?

My understanding is that a Kindle can read *.mobi dictionary and pyglossary can export this format. No ?

Juliaria08 commented 9 months ago

I can try to make pyglossary export the file I have that seems to work, I can also upload the default installed files if you want. Am currently going to look into pyglossary.

BoboTiG commented 9 months ago

I think we already covered that topic in the wiki: https://github.com/BoboTiG/ebook-reader-dict/wiki/HOWTO-Convert-to-mobi-for-the-Kindle

Or it is something else you need?

Juliaria08 commented 9 months ago

Oh, sorry. Didn't notice.

I think we already covered that topic in the wiki: https://github.com/BoboTiG/ebook-reader-dict/wiki/HOWTO-Convert-to-mobi-for-the-Kindle

Sorry. Didn't notice, thought there was going to be the direct files in the downloadeable links to make a nicer UX (I am a unix nerd but most people aren't), but if there's a entry on how to do so, I can use that entry.

Or it is something else you need?

No it's not anything else I need.

Juliaria08 commented 9 months ago

Also, noticed that penelope is archived, but whilst it works we don't have any issues.

dbogdanov commented 5 months ago

I've followed the instructions in the https://github.com/BoboTiG/ebook-reader-dict/wiki/HOWTO-Convert-to-mobi-for-the-Kindle however, after importing the resulting .mobi files to Kindle, the dictionaries have empty definitions for all words. Any suggestion on what could be the problem?

kvn1351 commented 2 months ago

rchived, but whilst it works we don't have any issu

I've followed the instructions in the https://github.com/BoboTiG/ebook-reader-dict/wiki/HOWTO-Convert-to-mobi-for-the-Kindle however, after importing the resulting .mobi files to Kindle, the dictionaries have empty definitions for all words. Any suggestion on what could be the problem?

I've followed the instructions in the https://github.com/BoboTiG/ebook-reader-dict/wiki/HOWTO-Convert-to-mobi-for-the-Kindle however, after importing the resulting .mobi files to Kindle, the dictionaries have empty definitions for all words. Any suggestion on what could be the problem?

Same issue here.

Edit: Got it working by using PyGlossary instead of Penelope.

Things to keep in mind: