Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Armenian Language #221

Merged
merged 3 commits into from
Jan 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 79 additions & 0 deletions Resources/rules/armenian.json
Original file line number Diff line number Diff line change
@@ -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"
}
80 changes: 80 additions & 0 deletions src/RuleProvider/DefaultRuleProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions src/Slugify.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down