Skip to content

jQuery plugin that adds kana (hiragana and katakana) to an input tag, to make it possible to write in Japanese without an IME.

License

Notifications You must be signed in to change notification settings

argelius/jquery-kana-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery kana plugin

This plugin adds kana (hiragana and katakana) functionality to an <input> tag.

Usage

To initialize the plugin use:

<input type="text"> 

<script>
    $(function() {
        $("input").kana({mode: "hiragana"});
    });
</script>

Available modes are: "hiragana", "katakana" and "romaji". The "romaji" doesn't really change anything but makes it possible to reset the element.

The default mode is "hiragana".

Changing mode

It's possible to re-initialize an element. The following code

$("input").kana({mode: "hiragana"})
$("input").kana({mode: "romaji"})

will result in a normal input tag.

See it in action

The plugin is used in my dictionary application. Please go there to try it out.

License

The source code is released under the MIT license. Please use it as you like.

If something breaks.

Please send bug reports and suggestions to andreas@argeli.us.

About

jQuery plugin that adds kana (hiragana and katakana) to an input tag, to make it possible to write in Japanese without an IME.

Resources

License

Stars

Watchers

Forks

Packages

No packages published