matthayes / anki_cloze_anything

Add cloze deletions to any existing Anki notes without any modification to Anki
https://ankiweb.net/shared/info/330680661
Apache License 2.0
52 stars 10 forks source link

Proper length computation for Japanese readings #4

Open matthayes opened 4 years ago

matthayes commented 4 years ago

Setting data-cloze-replace-same-length to true will not compute the proper length for text that contains a Japanese reading, such as 日本語[にほんご]. It should render as ... but instead it will render as .......... There should be an option to ignore the reading-related characters, including the leading space if it exists.