kata2hira: Conversion form Katakana to Hiragana

Description Usage Arguments Details Value Note Author(s) Examples

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)

Example output

Loading required package: stringr
[1] "\343\202\272" "\343\202\273" "\343\202\274" "\343\202\275" "\343\202\276"
[1] "\343\202\272" "\343\202\273" "\343\202\274" "\343\202\275" "\343\202\276"
[1] "\343\201\225" "\343\201\226" "\343\201\227" "\343\201\230" "\343\201\231"
[1] "\343\201\225" "\343\201\226" "\343\201\227" "\343\201\230" "\343\201\231"

Nippon documentation built on May 2, 2019, 1:03 p.m.