Skip to content

Commit df19907

Browse files
committed
fixed slug method for slovak specific characters
the slugs were not generated properly for slovak words (leaving some characters untranslated) added missing slovak-specific special characters into $char_map
1 parent b36e893 commit df19907

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Conner/Tagging/TaggingUtil.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ public static function slug($str) {
106106
'č' => 'c', 'ď' => 'd', 'ě' => 'e', 'ň' => 'n', 'ř' => 'r', 'š' => 's', 'ť' => 't', 'ů' => 'u',
107107
'ž' => 'z',
108108

109+
// Slovak
110+
'Ľ' => 'L', 'Ĺ' => 'L', 'Ô' => 'O', 'Ŕ' => 'R',
111+
'ľ' => 'l', 'ĺ' => 'l', 'ô' => 'o', 'ŕ' => 'r',
112+
109113
// Polish
110114
'Ą' => 'A', 'Ć' => 'C', 'Ę' => 'e', 'Ł' => 'L', 'Ń' => 'N', 'Ó' => 'o', 'Ś' => 'S', 'Ź' => 'Z',
111115
'Ż' => 'Z',

0 commit comments

Comments
 (0)