657 | | $chars['in'] = chr(128).chr(131).chr(138).chr(142).chr(154).chr(158) |
658 | | .chr(159).chr(162).chr(165).chr(181).chr(192).chr(193).chr(194) |
659 | | .chr(195).chr(196).chr(197).chr(199).chr(200).chr(201).chr(202) |
660 | | .chr(203).chr(204).chr(205).chr(206).chr(207).chr(209).chr(210) |
661 | | .chr(211).chr(212).chr(213).chr(214).chr(216).chr(217).chr(218) |
662 | | .chr(219).chr(220).chr(221).chr(224).chr(225).chr(226).chr(227) |
663 | | .chr(228).chr(229).chr(231).chr(232).chr(233).chr(234).chr(235) |
664 | | .chr(236).chr(237).chr(238).chr(239).chr(241).chr(242).chr(243) |
665 | | .chr(244).chr(245).chr(246).chr(248).chr(249).chr(250).chr(251) |
666 | | .chr(252).chr(253).chr(255); |
| 657 | $chars = array( |
| 658 | chr(128) => 'E', chr(131) => 'f', |
| 659 | chr(138) => 'S', chr(142) => 'Z', |
| 660 | chr(154) => 's', chr(158) => 'z', |
| 661 | chr(159) => 'Y', chr(162) => 'c', |
| 662 | chr(165) => 'Y', chr(181) => 'u', |
| 663 | chr(192) => 'A', chr(193) => 'A', |
| 664 | chr(194) => 'A', chr(195) => 'A', |
| 665 | chr(196) => 'A', chr(197) => 'A', |
| 666 | chr(199) => 'C', chr(200) => 'E', |
| 667 | chr(201) => 'E', chr(202) => 'E', |
| 668 | chr(203) => 'E', chr(204) => 'I', |
| 669 | chr(205) => 'I', chr(206) => 'I', |
| 670 | chr(207) => 'I', chr(209) => 'N', |
| 671 | chr(210) => 'O', chr(211) => 'O', |
| 672 | chr(212) => 'O', chr(213) => 'O', |
| 673 | chr(214) => 'O', chr(216) => 'O', |
| 674 | chr(217) => 'U', chr(218) => 'U', |
| 675 | chr(219) => 'U', chr(220) => 'U', |
| 676 | chr(221) => 'Y', chr(224) => 'a', |
| 677 | chr(225) => 'a', chr(226) => 'a', |
| 678 | chr(227) => 'a', chr(228) => 'a', |
| 679 | chr(229) => 'a', chr(231) => 'c', |
| 680 | chr(232) => 'e', chr(233) => 'e', |
| 681 | chr(234) => 'e', chr(235) => 'e', |
| 682 | chr(236) => 'i', chr(237) => 'i', |
| 683 | chr(238) => 'i', chr(239) => 'i', |
| 684 | chr(241) => 'n', chr(242) => 'o', |
| 685 | chr(243) => 'o', chr(244) => 'o', |
| 686 | chr(245) => 'o', chr(246) => 'o', |
| 687 | chr(248) => 'o', chr(249) => 'u', |
| 688 | chr(250) => 'u', chr(251) => 'u', |
| 689 | chr(252) => 'u', chr(253) => 'y', |
| 690 | chr(255) => 'y'); |
| 691 | $string = strtr($string, $chars); |
668 | | $chars['out'] = "EfSZszYcYuAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy"; |
669 | | |
670 | | $string = strtr($string, $chars['in'], $chars['out']); |
671 | | $double_chars['in'] = array(chr(140), chr(156), chr(198), chr(208), chr(222), chr(223), chr(230), chr(240), chr(254)); |
672 | | $double_chars['out'] = array('OE', 'oe', 'AE', 'DH', 'TH', 'ss', 'ae', 'dh', 'th'); |
673 | | $string = str_replace($double_chars['in'], $double_chars['out'], $string); |
| 693 | $double_chars = array( |
| 694 | chr(140) => 'OE', chr(156) => 'oe', |
| 695 | chr(198) => 'AE', chr(208) => 'DH', |
| 696 | chr(222) => 'TH', chr(223) => 'ss', |
| 697 | chr(230) => 'ae', chr(240) => 'dh', |
| 698 | chr(254) => 'th'); |
| 699 | $string = strtr($string, $double_chars); |