debanjandhar12 / logseq-anki-sync

An logseq to anki syncing plugin with superpowers - image occlusion, card direction, incremental cards, and a lot more.
GNU Affero General Public License v3.0
421 stars 30 forks source link

Request support for Anki's {{furigana:Text}} annotation field #223

Closed DreamAfar closed 6 months ago

DreamAfar commented 7 months ago

Describe the solution you'd like Anki supports displaying kana annotations in Japanese kanji.

Simply add the tag {{furigana:Text}} to the template field to correctly display the complete kana in kanji, https://en.wikipedia.org/wiki/Furigana

The effect is similar to the <ruby>tag of html: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ruby

However, every time the logseq update is synchronized to Anki, the {{furigana:Text}} template field will be reset to the default template by logseq-anki-sync.

image

image

In addition, I found that adding the {{furigana:Text}} field to Anki's template will cause the Image Occlusion cards of logseq-anki-sync to become invalid. I hope the conflict can be resolved.

Describe how it will help your workflow It is hoped that logseq-anki-sync can provide a switch so that Anki's {{furigana:Text}} field can be retained in each update without having to manually edit the template every time.

Describe alternatives you've considered If logseq-anki-sync adds Anki's {{furigana:Text}} field to the template and it is difficult to implement, can it be solved through the HTML <ruby> tag?

logseq test text:

debanjandhar12 commented 6 months ago

Will be released with next version.