Skip to content

Commit 5d32b30

Browse files
authored
Fix for ascii equivalent for greek letter theta
This is a fix for the Greek letter Theta (https://en.wikipedia.org/wiki/Theta) which is now replaced by O which is completely irrelevant. I believe this was a mistake in the original code due to the cyrilic ө (https://en.wiktionary.org/wiki/%D3%A8) which is correctly replaced by ο (it is left untouched in my proposal). I have also created a PR to the original source danielstjules/Stringy#193 but the project seems abandonded. However my changes were copied on a better mantained fork https://github.com/voku/Stringy P.S. I am a Greek native speaker
1 parent a23e0b4 commit 5d32b30

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Str.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ protected static function charsArray()
632632
'l' => ['ł', 'ľ', 'ĺ', 'ļ', 'ŀ', 'л', 'λ', 'ل', '', '', ''],
633633
'm' => ['м', 'μ', 'م', '', '', ''],
634634
'n' => ['ñ', 'ń', 'ň', 'ņ', 'ʼn', 'ŋ', 'ν', 'н', 'ن', '', '', ''],
635-
'o' => ['ó', 'ò', '', 'õ', '', 'ô', '', '', '', '', '', 'ơ', '', '', '', '', '', 'ø', 'ō', 'ő', 'ŏ', 'ο', '', '', '', '', '', '', '', 'ό', 'о', 'و', 'θ', 'ို', 'ǒ', 'ǿ', 'º', '', '', '', 'ö'],
635+
'o' => ['ó', 'ò', '', 'õ', '', 'ô', '', '', '', '', '', 'ơ', '', '', '', '', '', 'ø', 'ō', 'ő', 'ŏ', 'ο', '', '', '', '', '', '', '', 'ό', 'о', 'و', 'ို', 'ǒ', 'ǿ', 'º', '', '', '', 'ö'],
636636
'p' => ['п', 'π', '', '', 'پ', ''],
637637
'q' => ['', ''],
638638
'r' => ['ŕ', 'ř', 'ŗ', 'р', 'ρ', 'ر', '', ''],
@@ -665,7 +665,7 @@ protected static function charsArray()
665665
'shch' => ['щ'],
666666
'ss' => ['ß'],
667667
'sx' => ['ŝ'],
668-
'th' => ['þ', 'ϑ', 'ث', 'ذ', 'ظ'],
668+
'th' => ['þ', 'ϑ', 'θ', 'ث', 'ذ', 'ظ'],
669669
'ts' => ['ц', '', ''],
670670
'ue' => ['ü'],
671671
'uu' => [''],
@@ -687,7 +687,7 @@ protected static function charsArray()
687687
'L' => ['Ĺ', 'Ł', 'Л', 'Λ', 'Ļ', 'Ľ', 'Ŀ', '', ''],
688688
'M' => ['М', 'Μ', ''],
689689
'N' => ['Ń', 'Ñ', 'Ň', 'Ņ', 'Ŋ', 'Н', 'Ν', ''],
690-
'O' => ['Ó', 'Ò', '', 'Õ', '', 'Ô', '', '', '', '', '', 'Ơ', '', '', '', '', '', 'Ø', 'Ō', 'Ő', 'Ŏ', 'Ο', 'Ό', '', '', '', '', '', '', '', 'Ό', 'О', 'Θ', 'Ө', 'Ǒ', 'Ǿ', '', 'Ö'],
690+
'O' => ['Ó', 'Ò', '', 'Õ', '', 'Ô', '', '', '', '', '', 'Ơ', '', '', '', '', '', 'Ø', 'Ō', 'Ő', 'Ŏ', 'Ο', 'Ό', '', '', '', '', '', '', '', 'Ό', 'О', 'Ө', 'Ǒ', 'Ǿ', '', 'Ö'],
691691
'P' => ['П', 'Π', ''],
692692
'Q' => [''],
693693
'R' => ['Ř', 'Ŕ', 'Р', 'Ρ', 'Ŗ', ''],
@@ -715,7 +715,7 @@ protected static function charsArray()
715715
'Sh' => ['Ш'],
716716
'Shch' => ['Щ'],
717717
'Ss' => [''],
718-
'Th' => ['Þ'],
718+
'Th' => ['Þ', 'Θ'],
719719
'Ts' => ['Ц'],
720720
'Ya' => ['Я'],
721721
'Yu' => ['Ю'],

0 commit comments

Comments
 (0)