Transliteration for Vietnamese #1837

Closed
dinhtrung opened this Issue Sep 29, 2012 · 1 comment

Projects

None yet

2 participants

@dinhtrung

In Vietnamese, I have to add the following lines to config/foreign_chars.php

--- a/system/cms/config/foreign_chars.php   Sat Sep 29 02:08:38 2012 +0700
+++ b/system/cms/config/foreign_chars.php   Sat Sep 29 15:15:44 2012 +0700
@@ -15,19 +15,25 @@
    '/Ü/' => 'Ue',
    '/Ö/' => 'Oe',
    '/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ|Α|Ά/' => 'A',
+   '/Ã|Ả|Ạ|Ầ|Ấ|Ẫ|Ẩ|Ậ|Ằ|Ắ|Ẵ|Ẳ|Ặ/' => 'A',
    '/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª|α|ά/' => 'a',
+   '/ã|ả|ạ|ầ|ấ|ẫ|ẩ|ậ|ằ|ắ|ẵ|ẳ|ặ/' => 'a',
    '/Ç|Ć|Ĉ|Ċ|Č/' => 'C',
    '/ç|ć|ĉ|ċ|č/' => 'c',
    '/Ð|Ď|Đ|Δ/' => 'D',
    '/ð|ď|đ|δ/' => 'd',
    '/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě|Ε|Έ/' => 'E',
+   '/Ẽ|Ẻ|Ẹ|Ề|Ế|Ễ|Ể|Ệ/' => 'E',
    '/è|é|ê|ë|ē|ĕ|ė|ę|ě|έ|ε/' => 'e',
+   '/ẽ|ẻ|ẹ|ề|ế|ễ|ể|ệ/' => 'e',
    '/Ĝ|Ğ|Ġ|Ģ|Γ/' => 'G',
    '/ĝ|ğ|ġ|ģ|γ/' => 'g',
    '/Ĥ|Ħ/' => 'H',
    '/ĥ|ħ/' => 'h',
    '/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ|Η|Ή|Ί|Ι|Ϊ/' => 'I',
+   '/Ĩ|Ỉ|Ị/'  =>  'I',
    '/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı|η|ή|ί|ι|ϊ/' => 'i',
+   '/ĩ|ỉ|ị/'  =>  'i',
    '/Ĵ/' => 'J',
    '/ĵ/' => 'j',
    '/Ķ|Κ/' => 'K',
@@ -37,6 +43,9 @@
    '/Ñ|Ń|Ņ|Ň|Ν/' => 'N',
    '/ñ|ń|ņ|ň|ʼn|ν/' => 'n',
    '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ/' => 'O',
+   '/Õ|Ỏ|Ọ|Ồ|Ố|Ỗ|Ổ|Ộ|Ờ|Ớ|Ỡ|Ở|Ợ/'  =>  'O',
+   '/õ|ỏ|ọ|ồ|ố|ỗ|ổ|ộ|ờ|ớ|ỡ|ở|ợ/'  =>  'o',
+   '/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ|Ο|Ό|Ω|Ώ/' => 'O',
    '/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º|ο|ό|ω|ώ/' => 'o',
    '/Ŕ|Ŗ|Ř|Ρ/' => 'R',
    '/ŕ|ŗ|ř|ρ/' => 'r',
@@ -45,9 +54,13 @@
    '/Ţ|Ť|ŦΤ/' => 'T',
    '/ţ|ť|ŧ|τ/' => 't',
    '/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U',
+   '/Ũ|Ủ|Ụ|Ừ|Ứ|Ữ|Ử|Ự/' => 'U',
    '/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ|υ|ύ|ϋ/' => 'u',
+   '/ũ|ủ|ụ|ừ|ứ|ữ|ử|ự/' => 'u',
    '/Ý|Ÿ|Ŷ|Υ|Ύ|Ϋ/' => 'Y',
+   '/Ỳ|Ỹ|Ỷ|Ỵ/' => 'Y',
    '/ý|ÿ|ŷ/' => 'y',
+   '/ỳ|ỹ|ỷ|ỵ/' => 'y',
    '/Ŵ/' => 'W',
    '/ŵ/' => 'w',
    '/Ź|Ż|Ž|Ζ/' => 'Z',
@@ -70,4 +83,4 @@
 );

Please add it into core.

@narfbg
Contributor
narfbg commented Oct 5, 2012
@narfbg narfbg closed this Oct 5, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment