Lingua::KO::Munja - Korean letter conversion
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.)
This documents Lingua::KO::Munja version 0.07 corresponding to git commit 867075cabf61c54296f7dce2da81fab473c4d52b released on Wed Mar 1 18:15:26 2017 +0900.
Inputs and outputs are in Perl's Unicode formulation.
This is a companion of Lingua::JA::Moji.
my $hangul = roman2hangul ('munja');
Convert romanized Korean to hangul.
my $roman = hangul2roman ('문자');
Convert hangul to romanized Korean.
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 = 10; for my $kanji (@o[0..$max]) { my $entry = $k->{$kanji}; my $korean = $entry->{W}; if (! $korean) { next; } my @hangul = map {roman2hangul ($_)} @$korean; print "$kanji: @hangul\n"; }
亜: 아 唖: 아 娃: 왜 와 阿: 아 옥 哀: 애 愛: 애 挨: 애 姶: 압 逢: 봉 葵: 규 茜: 천
(This example is included as kanji2hanja.pl in the distribution.)
This converts Japanese kana into hangul.
This romanises Hangul.
Wikipedia article on the official form of Korean romanisation.
Nothing is exported by default. All the functions can be exported using the tag :all.
:all
use Lingua::KO::Munja ':all';
Convert::Moji is used for making the conversions between alphabets.
Ben Bullock, <bkb@cpan.org>
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.
To install Lingua::KO::Munja, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::KO::Munja
CPAN shell
perl -MCPAN -e shell install Lingua::KO::Munja
For more information on module installation, please visit the detailed CPAN module installation guide.