Skip to content

Commit 2b151ba

Browse files
authored
Merge pull request #161 from Xoshbin/patch-1
Added Kurdish character map
2 parents f2eb740 + 1279dc9 commit 2b151ba

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Util.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,14 @@ public static function slug($str)
140140
'' => 'o', '' => 'O', '' => 'u', '' => 'U', 'ũ' => 'u', 'Ũ' => 'U', '' => 'u', '' => 'U',
141141
'ư' => 'u', 'Ư' => 'U', '' => 'u', '' => 'U', '' => 'u', '' => 'U', '' => 'u', '' => 'U',
142142
'' => 'u', '' => 'U', '' => 'u', '' => 'U', '' => 'y', '' => 'Y', '' => 'y', '' => 'Y',
143-
'' => 'y', '' => 'Y', '' => 'y', '' => 'Y'
143+
'' => 'y', '' => 'Y', '' => 'y', '' => 'Y',
144+
145+
//Kurdish
146+
'ا' => 'a', 'ب' => 'b', 'ج' => 'c', 'د' => 'd', 'ێ' => 'ee', 'ف' => 'f', 'گ' => 'g',
147+
'ژ' => 'j', 'ک' => 'k', 'ل' => 'l', 'م' => 'm', 'ن' => 'n', 'ۆ' => 'o',
148+
'پ' => 'p', 'ق' => 'q', 'ر' => 'r', 'س' => 's', 'ت' => 't', 'ڤ' => 'v', 'و' => 'w',
149+
'خ' => 'x', 'ی' => 'y', 'ز' => 'z', 'ڕ' => 'rr', 'ە' => 'e', 'ح' => 'hh', 'ع' => 'a', 'ش' => 'sh', 'غ' => 'gh', 'ك' => 'k',
150+
'ڵ' => 'll', 'چ' => 'ch', 'ھ' => 'h', "ئ" => ''
144151
);
145152

146153
// Make custom replacements

0 commit comments

Comments
 (0)