Skip to content

Commit

Permalink
Merge pull request #88 from cocur/hindi
Browse files Browse the repository at this point in the history
Add rules for Hindi
  • Loading branch information
Florian Eckerstorfer committed Nov 7, 2015
2 parents 2b4ec40 + 01a719e commit adae727
Show file tree
Hide file tree
Showing 5 changed files with 910 additions and 758 deletions.
66 changes: 66 additions & 0 deletions Resources/rules/hindi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"अ": "a",
"आ": "aa",
"ए": "e",
"ई": "ii",
"ऍ": "ei",
"ऎ": "",
"ऐ": "ai",
"इ": "i",
"ओ": "o",
"ऑ": "oi",
"ऒ": "oii",
"ऊ": "uu",
"औ": "ou",
"उ": "u",
"ब": "B",
"भ": "Bha",
"च": "Ca",
"छ": "Chha",
"ड": "Da",
"ढ": "Dha",
"फ": "Fa",
"फ़": "Fi",
"ग": "Ga",
"घ": "Gha",
"ग़": "Ghi",
"ह": "Ha",
"ज": "Ja",
"झ": "Jha",
"क": "Ka",
"ख": "Kha",
"ख़": "Khi",
"ल": "L",
"ळ": "Li",
"ऌ": "Li",
"ऴ": "Lii",
"ॡ": "Lii",
"म": "Ma",
"न": "Na",
"ङ": "Na",
"ञ": "Nia",
"ण": "Nae",
"ऩ": "Ni",
"ॐ": "oms",
"प": "Pa",
"क़": "Qi",
"र": "Ra",
"ऋ": "Ri",
"ॠ": "Ri",
"ऱ": "Ri",
"स": "Sa",
"श": "Sha",
"ष": "Shha",
"ट": "Ta",
"त": "Ta",
"ठ": "Tha",
"द": "Tha",
"थ": "Tha",
"ध": "Thha",
"ड़": "ugDha",
"ढ़": "ugDhha",
"व": "Va",
"य": "Ya",
"य़": "Yi",
"ज़": "Za"
}
2 changes: 1 addition & 1 deletion bin/generate-default.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function insertRules($fileName, array $rules = [])

$content = file_get_contents($fileName);
$content = preg_replace(
$regexp = sprintf('#%s(.*)%s#', quotemeta($startTag), quotemeta($endTag)),
$regexp = sprintf('#%s(.*)%s#s', quotemeta($startTag), quotemeta($endTag)),
$startTag.var_export($rules, true).$endTag,
$content
);
Expand Down
Loading

0 comments on commit adae727

Please sign in to comment.