Lingua::EL::Unicode - Convert 8-bit Greek codes into Unicode, and vice versa.


NAME

Lingua::EL::Unicode - Convert 8-bit Greek codes into Unicode, and vice versa.


SYNOPSIS

 use Lingua::EL::Unicode;

 my $el = new Lingua::EL::Unicode;

 $el->to_utf8($greek_text, 'win'); # Windows-1253 to UTF-8
 $el->to_utf16($greek_text, 'win'); # Windows-1253 to UTF-16
 $el->to_utf8($greek_text, 'iso'); # ISO-8859-7 to UTF-8
 $el->to_utf16($greek_text, 'iso'); # ISO-8859-7 to UTF-16
 $el->to_win($unicode_text', utf8'); # UTF-8 to Windows-1253
 $el->to_win($unicode_text', utf16'); # NOT YET IMPLEMENTED
 $el->to_iso($unicode_text', utf8'); # NOT YET IMPLEMENTED
 $el->to_iso($unicode_text', utf16'); # NOT YET IMPLEMENTED


DESCRIPTION

Lingua::EL::Unicode privides the methods that convert traditional 8-bit Greek codes (Windows-1253/ISO-8859-7) into Unicode (UTF-8/UTF-16), and vice versa.

Some methods that convert unicode into 8-bit Greek codes are not yet implemented.

This module requires Perl 5.6 or later.


CONSTRUCTOR

new()


METHODS

to_utf8(TEXT, [CODE])
Takes a greek text and converts it into UTF-8. CODE should be 'win' (Windows-1253) or 'iso' (ISO-8859-7). If omitted, 'win' will be assumed.

to_utf16(TEXT, [CODE])
Takes a greek text and converts it into UTF-16. CODE should be 'win' (Windows-1253) or 'iso' (ISO-8859-7). If omitted, 'win' will be assumed.

to_win(TEXT, [CODE])
Takes a greek text and converts it into Windows-1253. CODE should be 'utf8' or 'utf16'. If omitted, 'utf8' will be assumed. The conversion from UTF-16 IS NOT YET IMPLEMENTED.

to_iso(TEXT, [CODE])
Takes a greek text and converts it into ISO-8859-7. CODE should be 'utf8' or 'utf16'. If omitted, 'utf8' will be assumed. (NOT YET IMPLEMENTED)


AUTHOR

Tsutomu Kuroda <tkrd@mail.com>


COPYRIGHT

Copyright (c) 2002 Tsutomu Kuroda <tkrd@mail.com> All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

 Lingua::EL::Unicode - Convert 8-bit Greek codes into Unicode, and vice versa.