Skip to content

Commit

Permalink
Added characters for Arabic, Serbian and Azerbaijani
Browse files Browse the repository at this point in the history
jbroadway committed Mar 17, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c775798 commit c9ada9d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions URLify.php
Original file line number Diff line number Diff line change
@@ -101,6 +101,20 @@ class URLify {
'ú' => 'u', 'ù' => 'u', '' => 'u', 'ũ' => 'u', '' => 'u', 'ư' => 'u', '' => 'u', '' => 'u', '' => 'u', '' => 'u', '' => 'u',
'Ý' => 'Y', '' => 'Y', '' => 'Y', '' => 'Y', '' => 'Y', 'ý' => 'y', '' => 'y', '' => 'y', '' => 'y', '' => 'y',
'Đ' => 'D', 'đ' => 'd'
),
'ar' => array ( /* Arabic */
'أ' => 'a', 'ب' => 'b', 'ت' => 't', 'ث' => 'th', 'ج' => 'g', 'ح' => 'h', 'خ' => 'kh', 'د' => 'd',
'ذ' => 'th', 'ر' => 'r', 'ز' => 'z', 'س' => 's', 'ش' => 'sh', 'ص' => 's', 'ض' => 'd', 'ط' => 't',
'ظ' => 'th', 'ع' => 'aa', 'غ' => 'gh', 'ف' => 'f', 'ق' => 'k', 'ك' => 'k', 'ل' => 'l', 'م' => 'm',
'ن' => 'n', 'ه' => 'h', 'و' => 'o', 'ي' => 'y'
),
'sr' => array ( /* Serbian */
'ђ' => 'dj', 'ј' => 'j', 'љ' => 'lj', 'њ' => 'nj', 'ћ' => 'c', 'џ' => 'dz', 'đ' => 'dj',
'Ђ' => 'Dj', 'Ј' => 'j', 'Љ' => 'Lj', 'Њ' => 'Nj', 'Ћ' => 'C', 'Џ' => 'Dz', 'Đ' => 'Dj'
),
'az' => array ( /* Azerbaijani */
'ç' => 'c', 'ə' => 'e', 'ğ' => 'g', 'ı' => 'i', 'ö' => 'o', 'ş' => 's', 'ü' => 'u',
'Ç' => 'C', 'Ə' => 'E', 'Ğ' => 'G', 'İ' => 'I', 'Ö' => 'O', 'Ş' => 'S', 'Ü' => 'U'
)
);

0 comments on commit c9ada9d

Please sign in to comment.