ethanmassie / romaji-to-kana-ng

Angular pipe that converts romaji to kana

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RomajiToKanaNg

Provides an angular pipe for converting roman characters to kana.

Developer Usage

Installation npm install --save romaji-to-kana-ng

Import the module

import { RomajiToKanaModule } from 'romaji-to-kana-ng';

@ngModule(
    ...
    imports: [
        ...
        RomajiToKanaModule
    ]
)

Usage with ngModel

<input [ngModel]="value | romajiToKana" (ngModelChange)="value=$event" type="text"/>

Enduser Usage

Input your romaji phonetically. Capitals will be converted to katakana whereas lowercase is converted to hiragana. Mixed case will be ignored. '-' hyphens will be converted to katakana long vowels. Example: ka -> か gyo -> ぎょ gga -> っが.

About

Angular pipe that converts romaji to kana

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 89.8%Language:JavaScript 10.2%