Skip to content

Commit

Permalink
Add Turkmen alphabet (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
umbarov authored and florianeckerstorfer committed Sep 19, 2018
1 parent a7b4621 commit 19c961f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Resources/rules/turkmen.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"Ç" : "C",
"Ä" : "A",
"Ž" : "Z",
"Ň" : "N",
"Ö" : "O",
"Ş" : "S",
"Ü" : "U",
"Ý" : "Y",
"ç" : "c",
"ä" : "a",
"ž" : "z",
"ň" : "n",
"ö" : "o",
"ş" : "s",
"ü" : "u",
"ý" : "y"
}
19 changes: 19 additions & 0 deletions src/RuleProvider/DefaultRuleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8303,6 +8303,25 @@ class DefaultRuleProvider implements RuleProviderInterface
'ö' => 'o',
'ü' => 'u',
),
'turkmen' =>
array (
'Ç' => 'C',
'Ä' => 'A',
'Ž' => 'Z',
'Ň' => 'N',
'Ö' => 'O',
'Ş' => 'S',
'Ü' => 'U',
'Ý' => 'Y',
'ç' => 'c',
'ä' => 'a',
'ž' => 'z',
'ň' => 'n',
'ö' => 'o',
'ş' => 's',
'ü' => 'u',
'ý' => 'y',
),
'ukrainian' =>
array (
'Ґ' => 'G',
Expand Down
1 change: 1 addition & 0 deletions tests/SlugifyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public function customRulesProvider()
['hungarian', 'Á É Í Ó Ö Ő Ú Ü Ű á é í ó ö ő ú ü ű', 'a-e-i-o-o-o-u-u-u-a-e-i-o-o-o-u-u-u'],
['macedonian', 'Ѓезвето беше полно со црно кафе. ', 'gjezveto-beshe-polno-so-crno-kafe'],
['chinese', '活动日起', 'huodongriqi'],
['turkmen', 'Ç Ä Ž Ň Ö Ş Ü Ý ç ä ž ň ö ş ü ý', 'c-a-z-n-o-s-u-y-c-a-z-n-o-s-u-y'],
];
}

Expand Down

0 comments on commit 19c961f

Please sign in to comment.