darwinel | d8bef8a | 2014-02-11 20:13:22 +0100 | [diff] [blame] | 1 | <?php |
darwinel | d8bef8a | 2014-02-11 20:13:22 +0100 | [diff] [blame] | 2 | defined('BASEPATH') OR exit('No direct script access allowed'); |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 3 | |
Derek Jones | daf9c01 | 2010-03-05 10:29:30 -0600 | [diff] [blame] | 4 | /* |
| 5 | | ------------------------------------------------------------------- |
| 6 | | Foreign Characters |
| 7 | | ------------------------------------------------------------------- |
| 8 | | This file contains an array of foreign characters for transliteration |
| 9 | | conversion used by the Text helper |
| 10 | | |
| 11 | */ |
Eric Barnes | 5e04480 | 2011-01-11 16:10:26 -0500 | [diff] [blame] | 12 | $foreign_characters = array( |
| 13 | '/ä|æ|ǽ/' => 'ae', |
| 14 | '/ö|œ/' => 'oe', |
| 15 | '/ü/' => 'ue', |
| 16 | '/Ä/' => 'Ae', |
| 17 | '/Ü/' => 'Ue', |
| 18 | '/Ö/' => 'Oe', |
Andrey | 30563ff | 2012-11-01 01:49:39 +0400 | [diff] [blame] | 19 | '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά|Ả|Ạ|Ầ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ|А/' => 'A', |
| 20 | '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ|а/' => 'a', |
| 21 | '/Б/' => 'B', |
| 22 | '/б/' => 'b', |
Eric Barnes | 5e04480 | 2011-01-11 16:10:26 -0500 | [diff] [blame] | 23 | '/Ç|Ć|Ĉ|Ċ|Č/' => 'C', |
| 24 | '/ç|ć|ĉ|ċ|č/' => 'c', |
Andrey | 30563ff | 2012-11-01 01:49:39 +0400 | [diff] [blame] | 25 | '/Д/' => 'D', |
| 26 | '/д/' => 'd', |
George Petsagourakis | 25ead35 | 2012-04-24 20:07:58 +0300 | [diff] [blame] | 27 | '/Ð|Ď|Đ|Δ/' => 'Dj', |
| 28 | '/ð|ď|đ|δ/' => 'dj', |
Sergey Noskov | cf524a6 | 2013-08-25 13:52:48 +0300 | [diff] [blame] | 29 | '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ|Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ|Е|Э/' => 'E', |
| 30 | '/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε|ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ|е|э/' => 'e', |
Andrey | 30563ff | 2012-11-01 01:49:39 +0400 | [diff] [blame] | 31 | '/Ф/' => 'F', |
| 32 | '/ф/' => 'f', |
Sergey Noskov | cf524a6 | 2013-08-25 13:52:48 +0300 | [diff] [blame] | 33 | '/Ĝ|Ğ|Ġ|Ģ|Γ|Г|Ґ/' => 'G', |
| 34 | '/ĝ|ğ|ġ|ģ|γ|г|ґ/' => 'g', |
Eric Barnes | 5e04480 | 2011-01-11 16:10:26 -0500 | [diff] [blame] | 35 | '/Ĥ|Ħ/' => 'H', |
| 36 | '/ĥ|ħ/' => 'h', |
Sergey Noskov | cf524a6 | 2013-08-25 13:52:48 +0300 | [diff] [blame] | 37 | '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ|Ỉ|Ị|И|Ы/' => 'I', |
| 38 | '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ|ỉ|ị|и|ы|ї/' => 'i', |
Eric Barnes | 5e04480 | 2011-01-11 16:10:26 -0500 | [diff] [blame] | 39 | '/Ĵ/' => 'J', |
| 40 | '/ĵ/' => 'j', |
Andrey | 30563ff | 2012-11-01 01:49:39 +0400 | [diff] [blame] | 41 | '/Ķ|Κ|К/' => 'K', |
| 42 | '/ķ|κ|к/' => 'k', |
| 43 | '/Ĺ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|ủ|ụ|ừ|ứ|ữ|ử|ự|у/' => 'u', |
Andrey Andreev | c495515 | 2017-10-02 10:50:21 +0300 | [diff] [blame] | 62 | '/Ƴ|Ɏ|Ỵ|Ẏ|Ӳ|Ӯ|Ў|Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ|Ỳ|Ỹ|Ỷ|Ỵ|Й/' => 'Y', |
| 63 | '/ẙ|ʏ|ƴ|ɏ|ỵ|ẏ|ӳ|ӯ|ў|ý|ÿ|ŷ|ỳ|ỹ|ỷ|ỵ|й/' => 'y', |
Andrey | 30563ff | 2012-11-01 01:49:39 +0400 | [diff] [blame] | 64 | '/В/' => 'V', |
| 65 | '/в/' => 'v', |
Eric Barnes | 5e04480 | 2011-01-11 16:10:26 -0500 | [diff] [blame] | 66 | '/Ŵ/' => 'W', |
| 67 | '/ŵ/' => 'w', |
Andrey | 30563ff | 2012-11-01 01:49:39 +0400 | [diff] [blame] | 68 | '/Ź|Ż|Ž|Ζ|З/' => 'Z', |
| 69 | '/ź|ż|ž|ζ|з/' => 'z', |
Eric Barnes | 5e04480 | 2011-01-11 16:10:26 -0500 | [diff] [blame] | 70 | '/Æ|Ǽ/' => 'AE', |
Sergey Noskov | cf524a6 | 2013-08-25 13:52:48 +0300 | [diff] [blame] | 71 | '/ß/' => 'ss', |
Eric Barnes | 5e04480 | 2011-01-11 16:10:26 -0500 | [diff] [blame] | 72 | '/IJ/' => 'IJ', |
| 73 | '/ij/' => 'ij', |
| 74 | '/Œ/' => 'OE', |
George Petsagourakis | 25ead35 | 2012-04-24 20:07:58 +0300 | [diff] [blame] | 75 | '/ƒ/' => 'f', |
| 76 | '/ξ/' => 'ks', |
| 77 | '/π/' => 'p', |
| 78 | '/β/' => 'v', |
| 79 | '/μ/' => 'm', |
| 80 | '/ψ/' => 'ps', |
Sergey Noskov | cf524a6 | 2013-08-25 13:52:48 +0300 | [diff] [blame] | 81 | '/Ё/' => 'Yo', |
| 82 | '/ё/' => 'yo', |
| 83 | '/Є/' => 'Ye', |
| 84 | '/є/' => 'ye', |
| 85 | '/Ї/' => 'Yi', |
| 86 | '/Ж/' => 'Zh', |
| 87 | '/ж/' => 'zh', |
| 88 | '/Х/' => 'Kh', |
| 89 | '/х/' => 'kh', |
| 90 | '/Ц/' => 'Ts', |
| 91 | '/ц/' => 'ts', |
| 92 | '/Ч/' => 'Ch', |
| 93 | '/ч/' => 'ch', |
| 94 | '/Ш/' => 'Sh', |
| 95 | '/ш/' => 'sh', |
| 96 | '/Щ/' => 'Shch', |
| 97 | '/щ/' => 'shch', |
| 98 | '/Ъ|ъ|Ь|ь/' => '', |
| 99 | '/Ю/' => 'Yu', |
| 100 | '/ю/' => 'yu', |
| 101 | '/Я/' => 'Ya', |
| 102 | '/я/' => 'ya' |
Eric Barnes | 5e04480 | 2011-01-11 16:10:26 -0500 | [diff] [blame] | 103 | ); |