<?
function rus($text)
{
$text = str_replace("ж","ж",$text);
$text = str_replace("ё","е",$text);
$text = str_replace("й","й",$text);
$text = str_replace("ю","ю",$text);
$text = str_replace("ь","ь",$text);
$text = str_replace("ч","ч",$text);
$text = str_replace("щ","щ",$text);
$text = str_replace("ц","ц",$text);
$text = str_replace("у","у",$text);
$text = str_replace("к","к",$text);
$text = str_replace("е","е",$text);
$text = str_replace("н","н",$text);
$text = str_replace("г","г",$text);
$text = str_replace("ш","ш",$text);
$text = str_replace("з","з",$text);
$text = str_replace("х","х",$text);
$text = str_replace("ъ","ъ",$text);
$text = str_replace("ф","ф",$text);
$text = str_replace("ы","ы",$text);
$text = str_replace("в","в",$text);
$text = str_replace("а","а",$text);
$text = str_replace("п","п",$text);
$text = str_replace("р","р",$text);
$text = str_replace("о","о",$text);
$text = str_replace("л","л",$text);
$text = str_replace("д","д",$text);
$text = str_replace("э","э",$text);
$text = str_replace("я","я",$text);
$text = str_replace("с","с",$text);
$text = str_replace("м","м",$text);
$text = str_replace("и","и",$text);
$text = str_replace("т","т",$text);
$text = str_replace("б","б",$text);
$text = str_replace("Ё","Е",$text);
$text = str_replace("Й","Й",$text);
$text = str_replace("Ю","Ю",$text);
$text = str_replace("Ч","Ч",$text);
$text = str_replace("Ь","Ь",$text);
$text = str_replace("Щ","Щ",$text);
$text = str_replace("Ц","Ц",$text);
$text = str_replace("У","У",$text);
$text = str_replace("К","К",$text);
$text = str_replace("Е","Е",$text);
$text = str_replace("Н","Н",$text);
$text = str_replace("Г","Г",$text);
$text = str_replace("Ш","Ш",$text);
$text = str_replace("З","З",$text);
$text = str_replace("Х","Х",$text);
$text = str_replace("Ъ","Ъ",$text);
$text = str_replace("Ф","Ф",$text);
$text = str_replace("Ы","Ы",$text);
$text = str_replace("В","В",$text);
$text = str_replace("А","А",$text);
$text = str_replace("П","П",$text);
$text = str_replace("Р","Р",$text);
$text = str_replace("О","О",$text);
$text = str_replace("Л","Л",$text);
$text = str_replace("Д","Д",$text);
$text = str_replace("Ж","Ж",$text);
$text = str_replace("Э","Э",$text);
$text = str_replace("Я","Я",$text);
$text = str_replace("С","С",$text);
$text = str_replace("М","М",$text);
$text = str_replace("И","И",$text);
$text = str_replace("Т","Т",$text);
$text = str_replace("Б","Б",$text);
return $text;
}
function trans($text)
{
$text = str_replace("ts","ц",$text);
$text = str_replace("ch","ч",$text);
$text = str_replace("sh'","щ",$text);
$text = str_replace("sh","ш",$text);
$text = str_replace("i'","ы",$text);
$text = str_replace("ya","я",$text);
$text = str_replace("yu","ю",$text);
$text = str_replace("yo","ё",$text);
$text = str_replace("e'","э",$text);
$text = str_replace("zh","ж",$text);
$text = str_replace("Yo","Ё",$text);
$text = str_replace("Zh","Ж",$text);
$text = str_replace("Ts","Ц",$text);
$text = str_replace("Ch","Ч",$text);
$text = str_replace("Sh'","Щ",$text);
$text = str_replace("Sh","Ш",$text);
$text = str_replace("I'","Ы",$text);
$text = str_replace("E'","Э",$text);
$text = str_replace("Yu","Ю",$text);
$text = str_replace("Ya","Я",$text);
$text = str_replace("a","а",$text);
$text = str_replace("b","б",$text);
$text = str_replace("v","в",$text);
$text = str_replace("g","г",$text);
$text = str_replace("d","д",$text);
$text = str_replace("e","е",$text);
$text = str_replace("z","з",$text);
$text = str_replace("i","и",$text);
$text = str_replace("k","к",$text);
$text = str_replace("l","л",$text);
$text = str_replace("m","м",$text);
$text = str_replace("n","н",$text);
$text = str_replace("o","о",$text);
$text = str_replace("p","п",$text);
$text = str_replace("r","р",$text);
$text = str_replace("s","с",$text);
$text = str_replace("t","т",$text);
$text = str_replace("u","у",$text);
$text = str_replace("f","ф",$text);
$text = str_replace("h","х",$text);
$text = str_replace("_","ъ",$text);
$text = str_replace("'","ь",$text);
$text = str_replace("y","й",$text);
$text = str_replace("A","А",$text);
$text = str_replace("B","Б",$text);
$text = str_replace("V","В",$text);
$text = str_replace("G","Г",$text);
$text = str_replace("D","Д",$text);
$text = str_replace("E","Е",$text);
$text = str_replace("Z","З",$text);
$text = str_replace("I","И",$text);
$text = str_replace("Y","Й",$text);
$text = str_replace("K","К",$text);
$text = str_replace("L","Л",$text);
$text = str_replace("M","М",$text);
$text = str_replace("N","Н",$text);
$text = str_replace("O","О",$text);
$text = str_replace("P","П",$text);
$text = str_replace("R","Р",$text);
$text = str_replace("S","С",$text);
$text = str_replace("T","Т",$text);
$text = str_replace("U","У",$text);
$text = str_replace("F","Ф",$text);
$text = str_replace("H","Х",$text);
$text = str_replace("_","Ъ",$text);
$text = str_replace("'","Ь",$text);
return $text;
}
function trans2($text)
{
$text = str_replace("ts","ц",$text);
$text = str_replace("ch","ч",$text);
$text = str_replace("sh'","щ",$text);
$text = str_replace("sh","ш",$text);
$text = str_replace("i'","ы",$text);
$text = str_replace("ya",".",$text);
$text = str_replace("ja","я",$text);
$text = str_replace("yu","ю",$text);
$text = str_replace("yo","ё",$text);
$text = str_replace("e'","э",$text);
$text = str_replace("zh","ж",$text);
$text = str_replace("Yo","Ё",$text);
$text = str_replace("Zh","Ж",$text);
$text = str_replace("Ts","Ц",$text);
$text = str_replace("Ch","Ч",$text);
$text = str_replace("Sh'","Щ",$text);
$text = str_replace("Sh","Ш",$text);
$text = str_replace("I'","Ы",$text);
$text = str_replace("E'","Э",$text);
$text = str_replace("Yu","Ю",$text);
$text = str_replace("Ya","Я",$text);
$text = str_replace("a","а",$text);
$text = str_replace("b","б",$text);
$text = str_replace("v","в",$text);
$text = str_replace("g","г",$text);
$text = str_replace("1d","д",$text);
$text = str_replace("1e","е",$text);
$text = str_replace("z","з",$text);
$text = str_replace("i","и",$text);
$text = str_replace("k","к",$text);
$text = str_replace("l","л",$text);
$text = str_replace("m","м",$text);
$text = str_replace("n","н",$text);
$text = str_replace("o","о",$text);
$text = str_replace("p","п",$text);
$text = str_replace("r","р",$text);
$text = str_replace("s","с",$text);
$text = str_replace("t","т",$text);
$text = str_replace("u","у",$text);
$text = str_replace("f'","ф",$text);
$text = str_replace("h","х",$text);
$text = str_replace("_","ъ",$text);
$text = str_replace("'","ь",$text);
$text = str_replace("y","й",$text);
$text = str_replace("A","А",$text);
$text = str_replace("B","Б",$text);
$text = str_replace("V","В",$text);
$text = str_replace("G","Г",$text);
$text = str_replace("D","Д",$text);
$text = str_replace("E","Е",$text);
$text = str_replace("Z","З",$text);
$text = str_replace("I","И",$text);
$text = str_replace("Y","Й",$text);
$text = str_replace("K","К",$text);
$text = str_replace("L","Л",$text);
$text = str_replace("M","М",$text);
$text = str_replace("N","Н",$text);
$text = str_replace("O","О",$text);
$text = str_replace("P","П",$text);
$text = str_replace("R","Р",$text);
$text = str_replace("S","С",$text);
$text = str_replace("T","Т",$text);
$text = str_replace("U","У",$text);
$text = str_replace("F","Ф",$text);
$text = str_replace("H","Х",$text);
$text = str_replace("_","Ъ",$text);
$text = str_replace("'","Ь",$text);
return $text;
}
?>