You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
2.9 KiB

7 years ago
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3. /*
  4. | -------------------------------------------------------------------
  5. | Foreign Characters
  6. | -------------------------------------------------------------------
  7. | This file contains an array of foreign characters for transliteration
  8. | conversion used by the Text helper
  9. |
  10. */
  11. $foreign_characters = array(
  12. '/ä|æ|ǽ/' => 'ae',
  13. '/ö|œ/' => 'oe',
  14. '/ü/' => 'ue',
  15. '/Ä/' => 'Ae',
  16. '/Ü/' => 'Ue',
  17. '/Ö/' => 'Oe',
  18. '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A',
  19. '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a',
  20. '/Б/' => 'B',
  21. '/б/' => 'b',
  22. '/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
  23. '/ç|ć|ĉ|ċ|č/' => 'c',
  24. '/Д/' => 'D',
  25. '/д/' => 'd',
  26. '/Ð|Ď|Đ|Δ/' => 'Dj',
  27. '/ð|ď|đ|δ/' => 'dj',
  28. '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E',
  29. '/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e',
  30. '/Ф/' => 'F',
  31. '/ф/' => 'f',
  32. '/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G',
  33. '/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g',
  34. '/Ĥ|Ħ/' => 'H',
  35. '/ĥ|ħ/' => 'h',
  36. '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I',
  37. '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i',
  38. '/Ĵ/' => 'J',
  39. '/ĵ/' => 'j',
  40. '/Ķ|Κ|К/' => 'K',
  41. '/ķ|κ|к/' => 'k',
  42. '/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L',
  43. '/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l',
  44. '/М/' => 'M',
  45. '/м/' => 'm',
  46. '/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N',
  47. '/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n',
  48. '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O',
  49. '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o',
  50. '/П/' => 'P',
  51. '/п/' => 'p',
  52. '/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R',
  53. '/ŕ|ŗ|ř|ρ|р/' => 'r',
  54. '/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S',
  55. '/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
  56. '/Ț|Ţ|Ť|Ŧ|τ|Т/' => 'T',
  57. '/ț|ţ|ť|ŧ|т/' => 't',
  58. '/Þ|þ/' => 'th',
  59. '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ|Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự|У/' => 'U',
  60. '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u',
  61. '/Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y',
  62. '/ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y',
  63. '/В/' => 'V',
  64. '/в/' => 'v',
  65. '/Ŵ/' => 'W',
  66. '/ŵ/' => 'w',
  67. '/Ź|Ż|Ž|Ζ|З/' => 'Z',
  68. '/ź|ż|ž|ζ|з/' => 'z',
  69. '/Æ|Ǽ/' => 'AE',
  70. '/ß/' => 'ss',
  71. '/IJ/' => 'IJ',
  72. '/ij/' => 'ij',
  73. '/Œ/' => 'OE',
  74. '/ƒ/' => 'f',
  75. '/ξ/' => 'ks',
  76. '/π/' => 'p',
  77. '/β/' => 'v',
  78. '/μ/' => 'm',
  79. '/ψ/' => 'ps',
  80. '/Ё/' => 'Yo',
  81. '/ё/' => 'yo',
  82. '/Є/' => 'Ye',
  83. '/є/' => 'ye',
  84. '/Ї/' => 'Yi',
  85. '/Ж/' => 'Zh',
  86. '/ж/' => 'zh',
  87. '/Х/' => 'Kh',
  88. '/х/' => 'kh',
  89. '/Ц/' => 'Ts',
  90. '/ц/' => 'ts',
  91. '/Ч/' => 'Ch',
  92. '/ч/' => 'ch',
  93. '/Ш/' => 'Sh',
  94. '/ш/' => 'sh',
  95. '/Щ/' => 'Shch',
  96. '/щ/' => 'shch',
  97. '/Ъ|ъ|Ь|ь/' => '',
  98. '/Ю/' => 'Yu',
  99. '/ю/' => 'yu',
  100. '/Я/' => 'Ya',
  101. '/я/' => 'ya'
  102. );