From d3cf024813f55003494b69f3ef0f34bef9221aff Mon Sep 17 00:00:00 2001 From: boolfalse Date: Mon, 7 Jan 2019 04:38:27 +0400 Subject: [PATCH 1/3] Create armenian.json --- Resources/rules/armenian.json | 79 +++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 Resources/rules/armenian.json diff --git a/Resources/rules/armenian.json b/Resources/rules/armenian.json new file mode 100644 index 00000000..08188e6b --- /dev/null +++ b/Resources/rules/armenian.json @@ -0,0 +1,79 @@ +{ + "Ա": "A", + "Բ": "B", + "Գ": "G", + "Դ": "D", + "Ե": "E", + "Զ": "Z", + "Է": "E", + "Ը": "Y", + "Թ": "Th", + "Ժ": "Zh", + "Ի": "I", + "Լ": "L", + "Խ": "Kh", + "Ծ": "Ts", + "Կ": "K", + "Հ": "H", + "Ձ": "Dz", + "Ղ": "Gh", + "Ճ": "Tch", + "Մ": "M", + "Յ": "Y", + "Ն": "N", + "Շ": "Sh", + "Ո": "Vo", + "Չ": "Ch", + "Պ": "P", + "Ջ": "J", + "Ռ": "R", + "Ս": "S", + "Վ": "V", + "Տ": "T", + "Ր": "R", + "Ց": "C", + "Ւ": "u", + "Փ": "Ph", + "Ք": "Q", + "և": "ev", + "Օ": "O", + "Ֆ": "F", + "ա": "a", + "բ": "b", + "գ": "g", + "դ": "d", + "ե": "e", + "զ": "z", + "է": "e", + "ը": "y", + "թ": "th", + "ժ": "zh", + "ի": "i", + "լ": "l", + "խ": "kh", + "ծ": "ts", + "կ": "k", + "հ": "h", + "ձ": "dz", + "ղ": "gh", + "ճ": "tch", + "մ": "m", + "յ": "y", + "ն": "n", + "շ": "sh", + "ո": "vo", + "չ": "ch", + "պ": "p", + "ջ": "j", + "ռ": "r", + "ս": "s", + "վ": "v", + "տ": "t", + "ր": "r", + "ց": "c", + "ւ": "u", + "փ": "ph", + "ք": "q", + "օ": "o", + "ֆ": "f" +} From 1694e2bbc21c0f62d799aa57162eba48d7c2c0f4 Mon Sep 17 00:00:00 2001 From: boolfalse Date: Mon, 7 Jan 2019 04:41:57 +0400 Subject: [PATCH 2/3] Update Slugify.php --- src/Slugify.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Slugify.php b/src/Slugify.php index b03f9e1b..62c2a554 100644 --- a/src/Slugify.php +++ b/src/Slugify.php @@ -53,6 +53,7 @@ class Slugify implements SlugifyInterface // Languages are preferred if they appear later, list is ordered by number of // websites in that language // https://en.wikipedia.org/wiki/Languages_used_on_the_Internet#Content_languages_for_websites + 'armenian', 'azerbaijani', 'burmese', 'hindi', From 522a61f06afaf413635b4915687d2c1541afa4b1 Mon Sep 17 00:00:00 2001 From: boolfalse Date: Mon, 7 Jan 2019 05:03:28 +0400 Subject: [PATCH 3/3] Update DefaultRuleProvider.php --- src/RuleProvider/DefaultRuleProvider.php | 80 ++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/src/RuleProvider/DefaultRuleProvider.php b/src/RuleProvider/DefaultRuleProvider.php index f90fecfb..f8f44e9e 100644 --- a/src/RuleProvider/DefaultRuleProvider.php +++ b/src/RuleProvider/DefaultRuleProvider.php @@ -59,6 +59,86 @@ class DefaultRuleProvider implements RuleProviderInterface 'و' => 'o', 'ي' => 'y', ), + 'armenian' => + array ( + 'Ա' => 'A', + 'Բ' => 'B', + 'Գ' => 'G', + 'Դ' => 'D', + 'Ե' => 'E', + 'Զ' => 'Z', + 'Է' => 'E', + 'Ը' => 'Y', + 'Թ' => 'Th', + 'Ժ' => 'Zh', + 'Ի' => 'I', + 'Լ' => 'L', + 'Խ' => 'Kh', + 'Ծ' => 'Ts', + 'Կ' => 'K', + 'Հ' => 'H', + 'Ձ' => 'Dz', + 'Ղ' => 'Gh', + 'Ճ' => 'Tch', + 'Մ' => 'M', + 'Յ' => 'Y', + 'Ն' => 'N', + 'Շ' => 'Sh', + 'Ո' => 'Vo', + 'Չ' => 'Ch', + 'Պ' => 'P', + 'Ջ' => 'J', + 'Ռ' => 'R', + 'Ս' => 'S', + 'Վ' => 'V', + 'Տ' => 'T', + 'Ր' => 'R', + 'Ց' => 'C', + 'Ւ' => 'u', + 'Փ' => 'Ph', + 'Ք' => 'Q', + 'և' => 'ev', + 'Օ' => 'O', + 'Ֆ' => 'F', + 'ա' => 'a', + 'բ' => 'b', + 'գ' => 'g', + 'դ' => 'd', + 'ե' => 'e', + 'զ' => 'z', + 'է' => 'e', + 'ը' => 'y', + 'թ' => 'th', + 'ժ' => 'zh', + 'ի' => 'i', + 'լ' => 'l', + 'խ' => 'kh', + 'ծ' => 'ts', + 'կ' => 'k', + 'հ' => 'h', + 'ձ' => 'dz', + 'ղ' => 'gh', + 'ճ' => 'tch', + 'մ' => 'm', + 'յ' => 'y', + 'ն' => 'n', + 'շ' => 'sh', + 'ո' => 'vo', + 'չ' => 'ch', + 'պ' => 'p', + 'ջ' => 'j', + 'ռ' => 'r', + 'ս' => 's', + 'վ' => 'v', + 'տ' => 't', + 'ր' => 'r', + 'ց' => 'c', + 'ւ' => 'u', + 'փ' => 'ph', + 'ք' => 'q', + 'օ' => 'o', + 'ֆ' => 'f', + ), 'austrian' => array ( 'Ä' => 'AE',