Can Low Alphabet work with Vietnamese characters?
Hi Low!
I read this topic: https://getsatisfaction.com/low/topics/alphabet_greek_characters and get same question:
Our language have some (utf-8) character at the first of title as: Â, Ă, Đ, Ô, Ư...
and I know that: It is not possible!
But can Alphabet work with this situation?
I am using a function to replace Â, Ă = A; Đ = D; Ô = O, Ư = U as:
array (
"a" => "á|à|ạ|ả|ã|ă|ắ|ằ|ặ|ẳ|ẵ|â|ấ|ầ|ậ|ẩ|ẫ|Á|À|Ạ|Ả|Ã|Ă|Ắ|Ằ|Ặ|Ẳ|Ẵ|Â|Ấ|Ầ|Ậ|Ẩ|Ẫ",
"o" => "ó|ò|ọ|ỏ|õ|ô|ố|ồ|ộ|ổ|ỗ|ơ|ớ|ờ|ợ|ở|ỡ|Ó|Ò|Ọ|Ỏ|Õ|Ô|Ố|Ồ|Ộ|Ổ|Ỗ|Ơ|Ớ|Ờ|Ợ|Ở|Ỡ",
"e" => "é|è|ẹ|ẻ|ẽ|ê|ế|ề|ệ|ể|ễ|É|È|Ẹ|Ẻ|Ẽ|Ê|Ế|Ề|Ệ|Ể|Ễ",
"u" => "ú|ù|ụ|ủ|ũ|ư|ứ|ừ|ự|ử|ữ|Ú|Ù|Ụ|Ủ|Ũ|Ư|Ứ|Ừ|Ự|Ử|Ữ",
"i" => "í|ì|ị|ỉ|ĩ|Í|Ì|Ị|Ỉ|Ĩ",
"y" => "ý|ỳ|ỵ|ỷ|ỹ|Ý|Ỳ|Ỵ|Ỷ|Ỹ",
"d" => "đ|Đ",
);
And now can Alphabet work?
Thank for help!
Replies
Low 18 Apr 2013 09:21
Well, sort of. You can alter the array in /system/expressionengine/config/foreign_chars.php to account for the translation of diacritic-characters to the regular ones. Low Alphabet uses that array in its sorting algorithm.
ngoncom 24 Apr 2013 04:49
Thank Low for good info!
Nice to hear that!