VERSION
This documents Lingua::KO::Munja version 0.06 corresponding to git commit acb7edc16338ca334f75e1d6493ec7f4564f6513 released on Sun Jan 29 15:36:50 2017 +0900.
NAME
Lingua::KO::Munja - Korean letter conversion
SYNOPSIS
use utf8;
use Lingua::KO::Munja qw/roman2hangul hangul2roman/;
my $roman = hangul2roman ('유사쿠');
my $hangul = roman2hangul ('yusaku');
print "$roman $hangul\n";
produces output
yusaku 유사쿠
(This example is included as synopsis.pl in the distribution.)
DESCRIPTION
Inputs and outputs are in Perl's Unicode formulation.
This is a companion of Lingua::JA::Moji.
FUNCTIONS
roman2hangul
my $hangul = roman2hangul ('munja');
Convert romanized Korean to hangul.
hangul2roman
my $roman = hangul2roman ('문자');
Convert hangul to romanized Korean.
EXTENDED EXAMPLES
use Data::Kanji::Kanjidic ':all';
use Lingua::KO::Munja ':all';
my $k = parse_kanjidic ('/home/ben/data/edrdg/kanjidic');
my @o = kanjidic_order ($k);
my $max = 100;
for my $kanji (@o[0..$max]) {
my $entry = $k->{$kanji};
my $korean = $entry->{W};
if (! $korean) {
next;
}
for my $w (@$korean) {
my $hangul = roman2hangul ($w);
print "$kanji $hangul\n";
}
}
produces output
亜 아
唖 아
娃 왜
娃 와
阿 아
阿 옥
哀 애
愛 애
挨 애
姶 압
逢 봉
葵 규
茜 천
穐 추
悪 악
悪 오
握 악
渥 악
旭 욱
葦 위
芦 호
鯵 소
梓 재
梓 자
圧 압
斡 아l
斡 간
扱 급
扱 삽
宛 완
宛 언
姐 저
虻 맹
飴 이
飴 사
絢 현
綾 릉
鮎 점
或 혹
粟 속
袷 겁
袷 겹
安 안
庵 암
按 안
按 아l
暗 암
案 안
闇 암
鞍 안
杏 행
以 이
伊 이
位 위
依 에의
偉 위
囲 위
夷 이
委 위
威 위
尉 위
尉 우l
惟 유
意 에의
慰 위
易 역
易 이
椅 에의
為 위
畏 외
異 이
移 이
維 유
緯 위
胃 위
萎 위
衣 에의
謂 위
違 위
遺 유
医 예
医 에의
井 정
亥 해
域 역
育 육
郁 욱
磯 기
一 이l
壱 이l
溢 이l
逸 이l
稲 도
茨 자
芋 우
芋 후
鰯 약
允 윤
印 인
咽 인
咽 여l
員 언
因 인
姻 인
引 인
飲 음
淫 음
胤 윤
蔭 음
院 언
陰 음
隠 은
韻 운
吋 촌
吋 두
右 우
宇 우
(This example is included as kanji2hanja.pl in the distribution.)
SEE ALSO
About Korean romanisation
- Revised Romanization of Korean
-
Wikipedia article on the official form of Korean romanisation.
AUTHOR
Ben Bullock, <bkb@cpan.org>
COPYRIGHT AND LICENCE
Portions of this are taken from Lingua::KO::Romanize::Hangul, version 0.20, by Yusuke Kawasaki, Copyright (c) 1998-2008 Yusuke Kawasaki.
The rest is by Ben Bullock.
This program may be copied, used, modified and redistributed under the same terms as Perl itself.