foreign_chars.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. '/Θ/' => 'TH',
  41. '/θ/' => 'th',
  42. '/Ķ|Κ|К/' => 'K',
  43. '/ķ|κ|к/' => 'k',
  44. '/Ĺ|Ļ|Ľ|Ŀ|Ł|Λ|Л/' => 'L',
  45. '/ĺ|ļ|ľ|ŀ|ł|λ|л/' => 'l',
  46. '/М/' => 'M',
  47. '/м/' => 'm',
  48. '/Ñ|Ń|Ņ|Ň|Ν|Н/' => 'N',
  49. '/ñ|ń|ņ|ň|ʼn|ν|н/' => 'n',
  50. '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ|О/' => 'O',
  51. '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ|о/' => 'o',
  52. '/П/' => 'P',
  53. '/п/' => 'p',
  54. '/Ŕ|Ŗ|Ř|Ρ|Р/' => 'R',
  55. '/ŕ|ŗ|ř|ρ|р/' => 'r',
  56. '/Ś|Ŝ|Ş|Ș|Š|Σ|С/' => 'S',
  57. '/ś|ŝ|ş|ș|š|ſ|σ|ς|с/' => 's',
  58. '/Ț|Ţ|Ť|Ŧ|Τ|Т/' => 'T',
  59. '/ț|ţ|ť|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'/ж/' => 'zh',
  98. '/Х/' => 'Kh',
  99. '/х/' => 'kh',
  100. '/Ц/' => 'Ts',
  101. '/ц/' => 'ts',
  102. '/Ч/' => 'Ch',
  103. '/ч/' => 'ch',
  104. '/Ш/' => 'Sh',
  105. '/ш/' => 'sh',
  106. '/Щ/' => 'Shch',
  107. '/щ/' => 'shch',
  108. '/Ъ|ъ|Ь|ь/' => '',
  109. '/Ю/' => 'Yu',
  110. '/ю/' => 'yu',
  111. '/Я/' => 'Ya',
  112. '/я/' => 'ya'
  113. );