From 25fa7340edfeecceec1fb8ef0a1657b4f5b5456d Mon Sep 17 00:00:00 2001 From: MaximAL Date: Sun, 16 Feb 2014 18:50:29 +0300 Subject: [PATCH 1/2] =?UTF-8?q?Hard=20sign=20in=20Russian=20is=20not=20equ?= =?UTF-8?q?ivalent=20to=20`a`,=20it=E2=80=99s=20rather=20`'`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apostrophe is also most common transliteration character for soft sign (ь). --- src/Stringy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Stringy.php b/src/Stringy.php index cc962c9..801fff2 100644 --- a/src/Stringy.php +++ b/src/Stringy.php @@ -399,7 +399,7 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess 'a' => array('à', 'á', 'â', 'ã', 'ā', 'ą', 'ă', 'å', 'α', 'ά', 'ἀ', 'ἁ', 'ἂ', 'ἃ', 'ἄ', 'ἅ', 'ἆ', 'ἇ', 'ᾀ', 'ᾁ', 'ᾂ', 'ᾃ', 'ᾄ', 'ᾅ', 'ᾆ', 'ᾇ', 'ὰ', 'ά', 'ᾰ', 'ᾱ', 'ᾲ', 'ᾳ', 'ᾴ', - 'ᾶ', 'ᾷ', 'а', 'ъ'), + 'ᾶ', 'ᾷ', 'а'), 'b' => array('б', 'β'), 'c' => array('ç', 'ć', 'č', 'ĉ', 'ċ'), 'd' => array('ď', 'ð', 'đ', 'ƌ', 'ȡ', 'ɖ', 'ɗ', 'ᵭ', 'ᶁ', 'ᶑ', 'д'), @@ -438,7 +438,7 @@ class Stringy implements \Countable, \IteratorAggregate, \ArrayAccess 'zh' => array('ж'), 'A' => array('Á', 'Â', 'Ã', 'Å', 'Ā', 'Ą', 'Ă', 'Α', 'Ά', 'Ἀ', 'Ἁ', 'Ἂ', 'Ἃ', 'Ἄ', 'Ἅ', 'Ἆ', 'Ἇ', 'ᾈ', 'ᾉ', 'ᾊ', 'ᾋ', 'ᾌ', - 'ᾍ', 'ᾎ', 'ᾏ', 'Ᾰ', 'Ᾱ', 'Ὰ', 'Ά', 'ᾼ', 'А', 'Ъ'), + 'ᾍ', 'ᾎ', 'ᾏ', 'Ᾰ', 'Ᾱ', 'Ὰ', 'Ά', 'ᾼ', 'А'), 'B' => array('Б'), 'C' => array('Ć', 'Č', 'Ĉ', 'Ċ'), 'D' => array('Ď', 'Ð', 'Đ', 'Ɖ', 'Ɗ', 'Ƌ', 'ᴅ', 'ᴆ', 'Д'), From cd41723b12db2109b782dc8e70f24d0fdeea7b9a Mon Sep 17 00:00:00 2001 From: MaximAL Date: Wed, 19 Feb 2014 10:43:06 +0300 Subject: [PATCH 2/2] Update CommonTest.php --- tests/CommonTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/CommonTest.php b/tests/CommonTest.php index 21399ea..a34d28e 100644 --- a/tests/CommonTest.php +++ b/tests/CommonTest.php @@ -340,7 +340,9 @@ abstract class CommonTest extends PHPUnit_Framework_TestCase array('numbers-1234', 'numbers 1234'), array('perevirka-ryadka', 'перевірка рядка'), array('bukvar-s-bukvoy-y', 'букварь с буквой ы'), - array('barzi-i-yarostni', 'бързи и яростни'), + // Conflicts between Russian or Bulgarian + //array('barzi-i-yarostni', 'бързи и яростни'), + array('podekhal-k-podezdu-moego-doma', 'подъехал к подъезду моего дома'), array('foo:bar:baz', 'Foo bar baz', ':'), array('a_string_with_underscores', 'A_string with_underscores', '_') );