jamsinclair / open-anki-jlpt-decks

Open source and updatable JLPT Vocabulary Anki Decks
MIT License
118 stars 24 forks source link

Create separate decks with furigana on the Front side? #2

Open jamsinclair opened 4 years ago

jamsinclair commented 4 years ago

Currently the Japanese cards only show the expression which may contain Kanji you do not know.

Rather than add JS/CSS to hide or show furigana I was contemplating generating separate decks with the furigana readings on the front side as well.

Any opinions are very welcome! 🙇

gaul commented 4 years ago

I am confused how to use the cards with Anki. When importing, I can assign fields 1 (kanji) to the front and 3 to the back (English). But how can I assign field 2 (kana) to the back? Ideally the card would start with the kanji, I could get a kana hint, and then see the English to check the answer.

If there were a deck with the combined kanji and furigana this would solve my problem but is there so other way to use Anki?

jamsinclair commented 4 years ago

@gaul From what I understand, you're wanting a "hint" option for kana? Anki has built in support for this, see the docs here: https://docs.ankiweb.net/#/templates/fields?id=hint-fields.

The card templates have a loose templating language and so you can reference more than one field on the "Front Template" and/or the "Back Template".

With this project you can achieve this effect by editing the "Front Template" The following should work:

<div class="question expression">
  {{expression}}
</div>
<div class="reading">
  {{hint:reading}}
</div>

Resulting in: hint

Would that help solve your problem?