Vocabulary dictionary

Kanji dictionary

Grammar dictionary

Sentence lookup

test
 

Forums - Option to allow Hiragana/Katakana input

Top > renshuu.org > Feature Requests/Improvements



avatar
jscraftsman
Level: 234

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');
    }
}


0
8 years ago
Report Content
avatar

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.

0
8 years ago
Report Content
avatar
マイコー
Level: 292

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!

0
8 years ago
Report Content
avatar
jscraftsman
Level: 234
@ドイツの: Actually it is easy to switch to a Japanese keyboard on android too, especially using a Samsung keyboard. User can just swipe on the space bar (assuming user has already installed the Japanese input). But for my case, I am using WRIO keyboard which does not support a Japanese text input. So I have to change the keyboard (if I want a japanese input) or just use Romaji, but I prefer a kana input rather than Romaji


@マイコー: Thank you! Yes, I understand your concern on a developer's (and user experience's) point of view.

0
8 years ago
Report Content
Getting the posts




Top > renshuu.org > Feature Requests/Improvements


Loading the list
Lv.

Sorry, there was an error on renshuu! If it's OK, please describe what you were doing. This will help us fix the issue.

Characters to show:





Use your mouse or finger to write characters in the box.
■ Katakana ■ Hiragana