fonol / anki-search-inside-add-card

An add-on providing full-text-search and PDF reading functionality to Anki's Add card dialog
https://ankiweb.net/shared/info/1781298089
GNU Affero General Public License v3.0
179 stars 24 forks source link

Can you optimize the support for Chinese pdf? #211

Open oqicloud opened 3 years ago

oqicloud commented 3 years ago

The Chinese characters will have more spaces that need to replace the spaces on the ; When selecting words to get sentences, such as from。 To。 between ; The sentence is currently automatically captured in the wrong format ; I can make pdfs in a specific format. Thank you very much.

image image image

fonol commented 3 years ago

Hi, I am afraid support for cloze generation from Chinese text won't happen too soon. It cost me a lot of time to even make the sentence boundary detection halfway work for English sentences, and judging from your screenshots, it doesn't work at all for Chinese. So that would mean I would have to completely redo it.

oqicloud commented 3 years ago
  1. Thanks for your reply, here is a suggestion for newbies 😃.
  2. I routinely split sentences by capturing the clipboard by recognizing the specified punctuation marks and generating a list format.
  3. Chinese punctuation marks 【(,。?!)】English counterpart [(,.?!)].
  4. Because Anki uses html to edit cards, I personally prefer uniformity.
  5. P.S. Great plugin, love managing all documents in Anki.
lb19940508 commented 3 years ago

The sentence is currently automatically captured in the wrong format ;

Maybe you could try keyboard maestro on Mac or quicker on windows to delete space or other symbols you won't need.