NetSDS::Util::Translit(3) transliteration routines

SYNOPSIS


use NetSDS::Const;
use NetSDS::Util::Translit;
# Transliterate cyrillic string
$trans_string = trans_cyr_lat($cyr_string);
# Reverse transliteration to russian language
$rus_string = trans_lat_cyr("Vsem privet", LANG_RU);

DESCRIPTION

"NetSDS::Util::Translit" module contains routines for bidirectional cyrillic text transliteration. Now it supports russian and ukrainian languages processing.

EXPORTS

trans_cyr_lat($text[, $lang]) - transliterate string
Convert text from cyrillic to latin encoding.

Language may be set if not default one.

        $lat = trans_cyr_lat($string);
trans_lat_cyr($text[, $lang]) - reverse transliteration
This function transliterate string from latin encoding to cyrillic one.

Target language may be set if not default one.

        $cyr = trans_lat_cyr("Sam baran", "ru");

EXAMPLES

None yet

BUGS

Unknown yet

TODO

Implement examples and tests.

AUTHORS

Valentyn Solomko <[email protected]>