genkio / blog

Stay hungry stay foolish
https://slashbit.github.io/blog/
0 stars 1 forks source link

Integrate Anki with Yomichan #198

Open genkio opened 3 years ago

genkio commented 3 years ago

Anki

  1. Install Anki desktop version.
  2. Create a new Node Type (Tools - Manage Node Types) called Yomichan note-type and click Fields. Rename the current front and backside as Expression and Meaning.
  3. Rename the default card template to Recognition
  4. Create a new card template and name it as Production
  5. Populate card template:

Recognition

<div lang="ja">{{furigana:Expression}}</div>
{{FrontSide}}

<hr id=answer>

{{furigana:Meaning}}<br/>

{{#Notes}}
<br/>
<b>Notes:</b>
<br>{{furigana:Notes}}
{{/Notes}}

Production

{{furigana:Meaning}}<br/>
{{FrontSide}}

<hr id=answer>

{{furigana:Expression}}
<br>

{{#Notes}}
<br><br>
<b>Notes:</b>
<br>{{furigana:Notes}}
{{/Notes}}

Yomichan

  1. Install Yomichan
  2. Load dictionaries

Integration

  1. Install AnkiConnect
  2. Verify AnkiConnect connection by visiting http://localhost:8765/
  3. Create a new Anki deck
  4. Go to Yomichan settings and create the mapping:
Deck → Yomichan, Model → yomichan Field Expression → {furigana-plain}, Meaning → {glossary-brief}

Reference material