Copy a field to the system clipboard. Supports fallbacks field values. Tested on anki 24.06.3.
questionField and answerField0
Inside the questionField0, place the name of the note field you want to copy when the question is displayed.
Inside the answerField0, place the name of the note field you want to copy when the answer is displayed.
Each subsequent questionField and answerField (1, 2, 3, …) are used as fallbacks. They’ll be used until a value can be found.
You can populate only the questionField(s) or answerField(s)
stripHtml
stripHtml determines if the html from the text of the note field will be removed or not.
e.g. 100%の<b>ジュース</b>。 ⟶ 100%のジュース。
(the b tag is removed)
stripFurigana
stripFurigana determines if the furigana from the text of the note field will be removed or not.
e.g. 僕[ぼく]が正[まさ]しく導[みちび]かないと ⟶ 僕が正しく導かないと
(the furigana inside the [ and ] brackets is removed)
Changes
Up to 10 fallback fields are supported.
Added option to strip html.
Added option to strip furigana.
Added compatibility for Anki Qt6.
Credits
Based on 1525025114
See the init.py file for a complete overview of the edits.