The SLJFAQ kanji recognizer is pretty robust, and very useful for learners, and since it got iframe support last year, we can integrate it into Anki. I did this with a deck I had lying on hand, JALUP's RTK mod deck, but the principle will work with any deck.
Caveats before the screenshots: you have to be online to use it. I've only tested it on computer and mouse. It won't work on Ankiweb.net because, if I remember correctly, they block iframes. I haven't tried on AnkiMobile, but it might work (help?). I realize using your mouse to draw kanji isn't exactly 21st century
neither is Anki alas.
Download the "JALUP RTK Mod (With Edition 6 Grouping) Japanese, With Writing Practice" deck and follow along.
![[Image: sQaxGAw.png]](http://i.imgur.com/sQaxGAw.png)
The question side consists of:
1. the RTK keyword (with JALUP's in-Japanese version),
2. a textbox in which you could type your answer if you wanted (using IME, e.g.—this is just an Anki cloze-deleted field), and
3. the SLJFAQ kanji recognition webapp.
The first time you try it, the first checkbox, "Look ahead (don't match exactly)" will be checked, but you should really consider unchecking this. Then using your mouse, start drawing the kanji:
![[Image: 4sVNblL.png]](http://i.imgur.com/4sVNblL.png)
The app updates its list of candidates after each stroke. With the options as I've shown them here, its suggestions will match your input's stroke order and number of strokes. That's why I recommend turning off "look ahead", so it doesn't recommend the kanji you're aiming for until the last stroke is drawn. So as you draw, the list of solution continues evolving but you can ignore it till you're done
![[Image: EzZ4Vz8.png]](http://i.imgur.com/EzZ4Vz8.png)
Now click on the kanji from the list of suggestions it gives you, and it'll automatically show up in the textbox under the keyword. Then you can click "Show Answer" to flip the card.
![[Image: 3mhSjCT.png]](http://i.imgur.com/3mhSjCT.png)
At the top is a big colorful stroke order diagram showing you what you *should* have drawn, the story, and finally two new things: what you just entered in the textbox, plus what what you *should* have entered. This will be green if you got it right, or red if you didn't.
That green/red correction is just Anki's cloze-deleted display: read all about it in the manual.
And here's all the code one has to add to the question side of the card template to get the SLJFAQ iframe and connect it to the cloze-deleted input textfield:
On the answer side of the template, you just need to use Anki's syntax for displaying cloze-deletions, in this case, "You entered: {{cloze:Kanji}}. Answer: {{type:cloze:Kanji}}". So again, this will work for any kanji deck. You can use this to even practice writing entire sentences, though the SLJFAQ doesn't recognize kana (yet! email Benjamin Bullock and ask him
).
If someone can tell me if this works in their AnkiMobile, I'd really appreciate it. I think having this sort of writing practice, which enforces good stroke order and doesn't distract you with predictions, on mobile would be worth paying for AnkiMobile.
Caveats before the screenshots: you have to be online to use it. I've only tested it on computer and mouse. It won't work on Ankiweb.net because, if I remember correctly, they block iframes. I haven't tried on AnkiMobile, but it might work (help?). I realize using your mouse to draw kanji isn't exactly 21st century
neither is Anki alas.Download the "JALUP RTK Mod (With Edition 6 Grouping) Japanese, With Writing Practice" deck and follow along.
![[Image: sQaxGAw.png]](http://i.imgur.com/sQaxGAw.png)
The question side consists of:
1. the RTK keyword (with JALUP's in-Japanese version),
2. a textbox in which you could type your answer if you wanted (using IME, e.g.—this is just an Anki cloze-deleted field), and
3. the SLJFAQ kanji recognition webapp.
The first time you try it, the first checkbox, "Look ahead (don't match exactly)" will be checked, but you should really consider unchecking this. Then using your mouse, start drawing the kanji:
![[Image: 4sVNblL.png]](http://i.imgur.com/4sVNblL.png)
The app updates its list of candidates after each stroke. With the options as I've shown them here, its suggestions will match your input's stroke order and number of strokes. That's why I recommend turning off "look ahead", so it doesn't recommend the kanji you're aiming for until the last stroke is drawn. So as you draw, the list of solution continues evolving but you can ignore it till you're done
![[Image: EzZ4Vz8.png]](http://i.imgur.com/EzZ4Vz8.png)
Now click on the kanji from the list of suggestions it gives you, and it'll automatically show up in the textbox under the keyword. Then you can click "Show Answer" to flip the card.
![[Image: 3mhSjCT.png]](http://i.imgur.com/3mhSjCT.png)
At the top is a big colorful stroke order diagram showing you what you *should* have drawn, the story, and finally two new things: what you just entered in the textbox, plus what what you *should* have entered. This will be green if you got it right, or red if you didn't.
That green/red correction is just Anki's cloze-deleted display: read all about it in the manual.
And here's all the code one has to add to the question side of the card template to get the SLJFAQ iframe and connect it to the cloze-deleted input textfield:
Code:
{{type:cloze:Kanji}}
<iframe id="my-iframe" width="800" height="350" src="http://kanji.sljfaq.org/iframe.html"></iframe>
<script>
window.addEventListener("message", receiveMessage, false);
function receiveMessage(event) {
document.getElementById('typeans').value = event.data;
}
function sendMessageToGetSelection() {
var iframe= document.getElementById('my-iframe');
var iwin= iframe.contentWindow || iframe.contentDocument.defaultView;
iwin.postMessage('Anki requesting kanji', '*');
}
</script>
).If someone can tell me if this works in their AnkiMobile, I'd really appreciate it. I think having this sort of writing practice, which enforces good stroke order and doesn't distract you with predictions, on mobile would be worth paying for AnkiMobile.


Mac trackpads are amazing because they're mini-tablets and know where on the trackpad you're touching, so, e.g., in Chinese handwriting recognition mode (which in a pinch works for Japanese), you literally use your finger as a brush to draw the character. This app called Inklet lets you use the trackpad in drawing programs, but doesn't seem to work for browsers or HTML5 canvas: I've tweeted them asking what's up with that. I'm not even sure if a Wacom would work with this browser thing? Wish I still had mine.