obynio / anki-japanese-furigana

Anki add-on providing support for adding furigana on Japanese text
https://ankiweb.net/shared/info/678316993
GNU General Public License v3.0
17 stars 5 forks source link

Furigana generation breaks the <br> formatting #3

Closed postkevone closed 3 years ago

postkevone commented 3 years ago

Right now is impossible to generate furigana for multiple lines without messing up the formatting.

obynio commented 3 years ago

Hello, yes I am aware of the issue. I did not yet found a way to parse how Anki marks new lines in fields which appears to differ depending of the Anki version. It's on my todo list.

obynio commented 3 years ago

Note to myself, also remove the extra spaces in the resulting text once the parsing by Kakasi is done. Or is it used to prevent a bad furigana offset once displayed ?

obynio commented 3 years ago

Okay @kebifurai, I took a look

I'll try to push an update once I finished cleaning my work 👍

obynio commented 3 years ago

Backward compatibility is ensured for the moment. Issue solved with eac2b34b0975ac68d5e1b9b3a43605247bb222a4