xxyzz / WordDumb

A calibre plugin that generates Kindle Word Wise and X-Ray files for KFX, AZW3, MOBI and EPUB eBook.
https://xxyzz.github.io/WordDumb/
GNU General Public License v3.0
386 stars 19 forks source link

Add pronunciations into the Wiktionary explanations #56

Closed woaidangyang closed 2 years ago

woaidangyang commented 2 years ago

Would it be possible to add pronunciations (such as IPA /sliːp/ for sleep) into the explanations?

Thank you so much!

xxyzz commented 2 years ago

Hi @woaidangyang, I have added the feature to the master branch.

woaidangyang commented 2 years ago

Thank you so much!

xxyzz commented 2 years ago

I forget to say you'll need to delete the old wiktionary_* files from the worddumb-lemmas folder(it's inside the calibre plugin folder).

woaidangyang commented 2 years ago

Thanks for your reminder. Yes, it's working!

woaidangyang commented 2 years ago

I found there is another inconvenience about the explanations from Wiktionary. Here are a few examples:

  1. mucking: present participle of muck
  2. Subjectivity: The state of being subjective.

It uses the base form to explain different forms of the words. We look up the word usually because we don't know the meaning of the word in its base form, so the explanation is useless. It's fine on the Wiktionary website because we can click the link to get the meaning of the base forms. But in the book, there is no such choice.

It's probably very difficult to extract the meaning of the base forms. Not sure if there is a better way.

xxyzz commented 2 years ago

I'm able to fix the first case. Please check out the latest commit, I also added some other improvements. Old Wiktionary files need to be deleted.

"subjectivity" is not an inflected word, you could edit the gloss in the customize Wiktionary dialog. Even better, you could edit the definition on Wiktionary so others can benefit from your contribution.

woaidangyang commented 2 years ago

It's working! Super! Thank you so much!