Random orientation of review item?

Recently, I joined r/translator on Reddit, and most posts are like LOL, what does this mean, and it is a kanji mirrored and or rotated 90 degrees. Which got me thinking it would for sure make it more challenging to do your reviews if the review item was randomly oriented. I remember using a script awhile ago to randomize the font on review items and it was really difficult. It has been a long time since I have touched any web programming so I am not sure how difficult it would be. Here is the post that inspired me to ask, at first I was like"?", then OOOH, #basic.

4 Likes

This is all you need. You can test it by pasting directly in the JS console. It only rotates kanji, not radicals or vocab, because longer words could rotate off the screen.

$.jStorage.listenKeyChange('currentItem', function() {
    $('#character.kanji span').css({
        display:'inline-block',
        transform:'rotate('+Math.round(Math.random()*360,0)+'deg)'
    });
});
6 Likes

You want to be ready just in case you need to read kanji written on a window, from the wrong side while doing a handstand?

6 Likes

Hmm… maybe need to add some random skew and mirroring, too :joy:

5 Likes

sounds like a wanikani new game+ activity

6 Likes

Thanks so much!

1 Like