ttempe / chinese-support-addon

Addon for Anki2 that makes easier to input Chinese, in the spirit of batterseapower’s pinyin-toolkit for Anki1
https://github.com/ttempe/chinese-support-addon/wiki
47 stars 19 forks source link

Missing Bulk-add reading #31

Closed ttempe closed 10 years ago

ttempe commented 11 years ago

If you create card by card, it will work perfectly, but if you import a .txt file with cards formatted using the semicolon division, it won't add the readings. It will add them only in a certain way, which is tedious and cumbersome. If you want to reproduce the "problem" do the following:

  1. create a txt file with 5 cards.
  2. import it, choosing "Chinese" note type and Chinese as deck name.
  3. start to review, they won't have readings.
  4. when on one card, choose Edit and click on Cards... (the window with the css code), don't do anything; now close it.
  5. click the spacebar to reveal the answer of that card. It will now have the proper reading.

The fact is that if you start having 200, 500, 2000 cards it starts to get tedious. Can we get a Bulk-add readings?

ttempe commented 11 years ago

Actually, it may be preferable to use "fill missing", to better fit the needs of various users. Incidentally, it could also be used to fill pronunciation (TTS) for when you added cards without a connection to Google TTS.

I'm reluctant because it will make it so easy for users to make mistakes like adding dictionary definitions without any trimming or editing (you can't learn a word if it has a 3-lines-long definition), but I understand the need.

chatch commented 11 years ago

i'm starting some work on this for filling missing sounds to begin with. it then should be easy to adapt to fill readings, or even fill all ... i'll create a pull request when it's done.

chatch commented 11 years ago

fill missing sounds working in branch -> https://github.com/chatch/chinese-support-addon/tree/fill_sounds

still requiring testing on a large deck...

ttempe commented 10 years ago

Le 09/07/13 21:32, Chris Hatch a écrit :

fill missing sounds working in branch -> https://github.com/chatch/chinese-support-addon/tree/fill_sounds

still requiring testing on a large deck...

— Reply to this email directly or view it on GitHub https://github.com/ttempe/chinese-support-addon/issues/31#issuecomment-20673775.

Hi Chris, and sorry for the delay. I've been unreasonably busy since I started my new job, and I haven't taken the time to work on Anki (on anything else, for that matter).

Thanks a lot for your contribution. I've tried it out, and it seems to be working just fine, and pretty fast, too. It won't give feedback when it's failing, but we can keep that for later.

Please make a pull request, so you can get credit for your contribution in Github. Also, be careful, you left my name at the top of fill_missing.py.

Yours sincerely,

Thomas TEMPE

chatch commented 10 years ago

Great stuff. Ok I've just patched fill_missing and created a pull request. Cheers, Chris.

ttempe commented 10 years ago

Perfect, it's in 0.7.6. Thanks a lot.