Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Bulk-add reading #31

Closed
ttempe opened this issue Apr 21, 2013 · 6 comments
Closed

Missing Bulk-add reading #31

ttempe opened this issue Apr 21, 2013 · 6 comments

Comments

@ttempe
Copy link
Owner

ttempe commented Apr 21, 2013

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
Copy link
Owner Author

ttempe commented Apr 21, 2013

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
Copy link

chatch commented Jul 9, 2013

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
Copy link

chatch commented Jul 9, 2013

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

still requiring testing on a large deck...

@ttempe
Copy link
Owner Author

ttempe commented Jul 27, 2013

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
#31 (comment).

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
Copy link

chatch commented Jul 29, 2013

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

@ttempe ttempe closed this as completed Jul 30, 2013
@ttempe
Copy link
Owner Author

ttempe commented Jul 30, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants