ワナカナ <-> WanaKana <-> わなかな
Javascript library that provides utilities for detecting and transliterating Hiragana <--> Katakana <--> Romaji.
View demo site to see WanaKana in action.
Build using Grunt
- Clone repository.
- Install all dependencies from
package.json
using npm install
. - Run grunt.
- General development
grunt default
or just grunt
- Open test suite (Mac only)
grunt test
- Deploy
grunt deploy
- Demo
grunt demo
- runs a deploy
then copies html and opens a browser window - Full list of tasks
grunt --help
Usage
HTML
<textarea id="ime"></textarea>
Javascript
var input = document.getElementById('ime');
wanakana.bind(input);
Documentation
wanakana.bind(element);
wanakana.unbind(element);
wanakana.isHiragana(string);
wanakana.isKana(string);
wanakana.isKatakana(string);
wanakana.toHiragana(string [, options]);
wanakana.toKana(string [, options]);
wanakana.toKatakana(string [, options]);
wanakana.toRomaji(string [, options]);
{
useObsoleteKana: false,
IMEMode: false
}
Credits
Project sponsored by Tofugu & WaniKani
Contributors
Ports
The following are ports created by the community: