Hi there, I thought it would be nice to share a little script I wrote. I wanted a convenient way to get the stroke order info right there when I'm doing reps, without the hassle of copy-pasting to the browser or (oh lord) searching the RTK book.
I could just replace the default Arial font with it but I like Arial more.
You need to get the KanjiStrokeOrders font and install it in your system. I use Windows dunno how to do it in CunniLinux.
You just hover the cursor over the kanji and it changes the font showing you the stroke order.
Here is the script:
You just copy it to the question field somewhere.
And instead if {{Kanji}} in the same question field place this:
That's it!
Oh, and if Anki was open during the font installation you should probably restart it.
I could just replace the default Arial font with it but I like Arial more.
You need to get the KanjiStrokeOrders font and install it in your system. I use Windows dunno how to do it in CunniLinux.
You just hover the cursor over the kanji and it changes the font showing you the stroke order.
Here is the script:
Code:
<script language="JavaScript">
function toggleFont()
{
var _font = document.getElementsByTagName('span')[0].style.fontFamily;
if(_font != 'KanjiStrokeOrders') {
document.getElementsByTagName('span')[0].style.fontFamily = 'KanjiStrokeOrders';
}
else {
document.getElementsByTagName('span')[0].style.fontFamily = 'Arial'; //whatever font you want
}
}
</script>And instead if {{Kanji}} in the same question field place this:
Code:
<a onmouseover="toggleFont();" onmouseout="toggleFont();">{{Kanji}}</a>Oh, and if Anki was open during the font installation you should probably restart it.


![[Image: 24enmvt.png]](http://i50.tinypic.com/24enmvt.png)