Conversion form Katakana to Hiragana

Share:

Description

Functions to convert from Katakana to Hiragana, vise versa.

Usage

1
2
3
4
5
6

Arguments

x

A character vector including Japanese Hiragana or Katakana

Details

kata2hira and ya.kata2hira converts from Katakana to Hiragana. hira2kata and ya.hira2kata converts from Hiragana to Katakana. hiragana and katakana generate Hiragana and Katakana, respectively, from the UTF-8 code table. It may be useful when users need Kana characters where no Kana input method is available.

Value

A character vector

Note

The difference between kata2hira and ya.kata2hira or between hira2kata and ya.hira2kata is in the algorithm, causing difference cacluatiion cost and output results.

Author(s)

Susumu Tanimura aruminat@gmail.com

Examples

1
2
3
4
5
	library(Nippon)
	(kata <- katakana()[26:30])
	kata2hira(kata)
	(hira <- hiragana()[21:25])
	hira2kata(hira)