掲示板 Forums - Option to allow Hiragana/Katakana input
Top > renshuu.org > Feature Requests/Improvements Getting the posts
Top > renshuu.org > Feature Requests/Improvements
It would be awesome if WanaKana script will be integrated for quiz that uses text input. Maybe as optional input that can be changed in the settings.
WanaKana is a plugin that allows the user to input an answer in Hiragana or Katakana.
Note: Changing the keyboard input into japanese is a hassle for me especially in the mobile version since I am using a custom keyboard.
Currently I just inject the script to the site in my browser using the following:
var wanakanaScript; var wanakana; $(() => { $.get("https://raw.githubusercontent.com/WaniKani/WanaKana/gh-pages/assets/js/wanakana.min.js") .done((script, textStatus) => { wanakanaScript = script; bindWanaKana(); console.debug('$.get().done() wanakana script loaded...'); }) .fail((jqxhr, settings, exception) => { console.error('$.get().fail() Failed to bind wanakana'); }); $("body").on("focus", "#blankbox", (e) => { bindWanaKana(); }); }); function bindWanaKana() { if (wanakana === undefined) { eval(wanakanaScript); }; let inputType = $('#type').text(); if (inputType.toLowerCase().indexOf('hiragana/katakana') !== -1) { var input = document.getElementById('blankbox'); wanakana.bind(input); console.debug('bindWanaKana() wanakana script is now bound to the input text...'); } else { console.error('bindWanaKana() Failed to bind wanakana'); } }
I suppose you're using Android (which I'm not really familiar with) and I'm sure you have reasons for using romaji. But a friend of mine once complained that typing in another language (not Japanese) is so complicated on Android. He was surprised that it is very easy to switch keyboards on iOS (touching one key). Very soon he found out that Android offers the same functionality.
And as for typing in romaji: After getting used to use the kana keyboard on iOS like Japanese people do (swiping the keys/flick-typing) I would never want to use a romaji input for Japanese on a mobile again.
Interesting. Let me consider it for the next beta round. (although I already have this functionality built into the site from years ago - it's just limited to the hiragana crossword puzzle. I imagine this package is a bit more fleshed out and battle-tested). What would need to be considered is, if it is on-by-default, where it should be bound, and where it shouldn't. For example, a quiz prompt would benefit from it, but a dictionary search field would not. I'd want to be careful to make it so the user isn't confused by its presence in some areas and absence in others.
You probably know this, but while it does not provide the visual feedback, the quizzes will accept romaji answers (or, in other words, what you would be entering into wanakana) for hiragana/katakana prompts.
If I do add this to the next beta, I will definitely let you know!
@マイコー: Thank you! Yes, I understand your concern on a developer's (and user experience's) point of view.