UniGreek - This module converts between an ascii-representation of polytonic Greek (i.e. old Greek) and the utf8-representation. The ascii-representation is taken from typegreek.com (http://www.typegreek.com), a web-based application, made by Randy Hoyt, that converts Roman lettercombination to Greek in utf8-format.
use strict; use utf8; use feature qw(:5.10); use UniGreek qw(from_unigreek to_unigreek); binmode STDOUT,":utf8"; my $unigreek = "Mh=nin a)/eide qea/"; #result: Μῆνιν ἄειδε θεά say UniGreek::from_unigreek($unigreek); my $utf8 = "Μῆνιν ἄειδε θεά"; #result: Mh=nin a)/eide qea/ say UniGreek::to_unigreek($utf8);
Converts from the ascii-representation to the real Greek letters in utf8.
Converts from the Greek letters in utf8 to the ascii-representation
http://www.typegreek.com http://unigreek.phildow.net/ http://www.mythfolklore.net/bibgreek/resources/typing.htm
To install UniGreek, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UniGreek
CPAN shell
perl -MCPAN -e shell install UniGreek
For more information on module installation, please visit the detailed CPAN module installation guide.