Index: trunk/extensions/Narayam/resources/ext.narayam.rules.gu.js |
— | — | @@ -1,49 +1,49 @@ |
2 | 2 | /** |
3 | | - * Transliteration regular expression rules table for Gujarathi |
| 3 | + * Transliteration regular expression rules table for Gujarati |
4 | 4 | * @author Jaldeep R Vasavada ([[user:JaldeepVasavada]]) |
5 | 5 | * @date 2011-11-19 |
6 | 6 | * License: GPLv3, CC-BY-SA 3.0 |
7 | 7 | */ |
8 | 8 | |
9 | | - // Normal rules |
| 9 | +// Normal rules |
10 | 10 | var rules = [ |
11 | 11 | ['ક્h', 'c', 'ચ'], |
12 | 12 | ['\\\\([A-Za-z\\>_~\\.0-9])', '\\\\', '$1'], |
13 | 13 | |
14 | | -['([ક-હ]़?)્a', '', '$1'], |
15 | | -['([ક-હ]़?)્A', '', '$1ા'], |
16 | | -['([ક-હ]़?)a', '', '$1ા'], |
17 | | -['([ક-હ]़?)્i', '', '$1િ'], |
18 | | -['([ક-હ]़?)(્I|િi|ॆe)', '', '$1ી'], |
19 | | -['([ક-હ]़?)્u', '', '$1ુ'], |
20 | | -['([ક-હ]़?)(ુu|્U|ોo)', '', '$1ૂ'], |
21 | | -['([ક-હ]़?)્R', '', '$1ृ'], |
22 | | -['([ક-હ]़?)ृR', '', '$1ॄ'], |
23 | | -['([ક-હ]़?)્ળl', '', '$1ॢ'], |
24 | | -['([ક-હ]़?)ॢl', '', '$1ॣ'], |
25 | | -['([ક-હ]़?)ॆ\\^', '', '$1ॅ'], |
26 | | -['([ક-હ]़?)્e', '', '$1ॆ'], |
27 | | -['([ક-હ]़?)્E', '', '$1ૅ'], |
28 | | -['([ક-હ]़?)ો\\^', '', '$1ૉ'], |
29 | | -['([ક-હ]़?)i', '', '$1ૈ'], |
30 | | -['([ક-હ]़?)્o', '', '$1ો'], |
31 | | -['([ક-હ]़?)્O', '', '$1ો'], |
32 | | -['([ક-હ]़?)u', '', '$1ૌ'], |
| 14 | +['([ક-હ]઼?)્a', '', '$1'], |
| 15 | +['([ક-હ]઼?)્A', '', '$1ા'], |
| 16 | +['([ક-હ]઼?)a', '', '$1ા'], |
| 17 | +['([ક-હ]઼?)્i', '', '$1િ'], |
| 18 | +['([ક-હ]઼?)(્I|િi|ેe)', '', '$1ી'], |
| 19 | +['([ક-હ]઼?)્u', '', '$1ુ'], |
| 20 | +['([ક-હ]઼?)(ુu|્U|ોo)', '', '$1ૂ'], |
| 21 | +['([ક-હ]઼?)્R', '', '$1ૃ'], |
| 22 | +['([ક-હ]઼?)ૃR', '', '$1ૄ'], |
| 23 | +// ['([ક-હ]઼?)્ળl', '', '$1ॢ'], |
| 24 | +// ['([ક-હ]઼?)ॢl', '', '$1ॣ'], |
| 25 | +['([ક-હ]઼?)ે\\^', '', '$1ૅ'], |
| 26 | +['([ક-હ]઼?)્e', '', '$1ે'], |
| 27 | +['([ક-હ]઼?)્E', '', '$1ૅ'], |
| 28 | +['([ક-હ]઼?)ો\\^', '', '$1ૉ'], |
| 29 | +['([ક-હ]઼?)i', '', '$1ૈ'], |
| 30 | +['([ક-હ]઼?)્o', '', '$1ો'], |
| 31 | +['([ક-હ]઼?)્O', '', '$1ો'], |
| 32 | +['([ક-હ]઼?)u', '', '$1ૌ'], |
33 | 33 | |
34 | | -['([ક-હ]़?)ृa', '', '$1્ऱ'], |
35 | | -['([ક-હ]़?)ृA', '', '$1્ऱા'], |
36 | | -['([ક-હ]़?)ृi', '', '$1્ऱિ'], |
37 | | -['([ક-હ]़?)ृI', '', '$1્ऱી'], |
38 | | -['([ક-હ]़?)ृu', '', '$1્ऱુ'], |
39 | | -['([ક-હ]़?)ृU', '', '$1્ऱૂ'], |
40 | | -['([ક-હ]़?)ृ\\^', '', '$1્ऱॅ'], |
41 | | -['([ક-હ]़?)ृe', '', '$1્ऱॆ'], |
42 | | -['([ક-હ]़?)ृE', '', '$1્ऱૅ'], |
43 | | -['([ક-હ]़?)ृo', '', '$1્ऱો'], |
44 | | -['([ક-હ]़?)ृO', '', '$1્ऱો'], |
45 | | -['([ક-હ]़?)ृ\\~', '', '$1્ऱ્'], |
| 34 | +['([ક-હ]઼?)ૃa', '', '$1્ર'], |
| 35 | +['([ક-હ]઼?)ૃA', '', '$1્રા'], |
| 36 | +['([ક-હ]઼?)ૃi', '', '$1્રિ'], |
| 37 | +['([ક-હ]઼?)ૃI', '', '$1્રી'], |
| 38 | +['([ક-હ]઼?)ૃu', '', '$1્રુ'], |
| 39 | +['([ક-હ]઼?)ૃU', '', '$1્રૂ'], |
| 40 | +['([ક-હ]઼?)ૃ\\^', '', '$1્રૅ'], |
| 41 | +['([ક-હ]઼?)ૃe', '', '$1્રે'], |
| 42 | +['([ક-હ]઼?)ૃE', '', '$1્રૅ'], |
| 43 | +['([ક-હ]઼?)ૃo', '', '$1્રો'], |
| 44 | +['([ક-હ]઼?)ૃO', '', '$1્રો'], |
| 45 | +['([ક-હ]઼?)ૃ\\~', '', '$1્ર્'], |
46 | 46 | |
47 | | -['([ક-હ])્\\`', '', '$1़્'], |
| 47 | +['([ક-હ])્\\`', '', '$1઼્'], |
48 | 48 | |
49 | 49 | ['અa', '', 'આ'], |
50 | 50 | ['(ઑo|ઉu)', '', 'ઊ'], |
— | — | @@ -55,42 +55,42 @@ |
56 | 56 | ['અu', '', 'ઔ'], |
57 | 57 | ['ઋR', '', 'ૠ'], |
58 | 58 | ['ળl', '', 'ઌ'], |
59 | | -['ઌl', '', 'ૡ'],//problem |
60 | | -['ं\\^', '', 'ँ'], |
61 | | -['ंm', '', 'ँ'], |
| 59 | +['ઌl', '', 'ૡ'], //problem |
| 60 | +['ં\\^', '', 'ઁ'], |
| 61 | +['ંm', '', 'ઁ'], |
62 | 62 | ['ઓM', '', 'ૐ'], |
63 | 63 | |
64 | | -['રY', '', 'ऱ્ય'], |
| 64 | +['રY', '', 'ર્ય'], |
65 | 65 | |
66 | 66 | ['ક્h', '', 'ખ'],//kh |
67 | | -['ગh', '', 'ઘ'], |
| 67 | +['ગ્h', '', 'ઘ'], |
68 | 68 | ['નg', '', 'ઙ'], |
69 | | -['ચh', '', 'છ'], |
70 | | -['જh', '', 'ઝ'], |
| 69 | +['ચ્h', '', 'છ'], |
| 70 | +['જ્h', '', 'ઝ'], |
71 | 71 | ['નj', '', 'ઞ'], |
72 | | -['ટh', '', 'ઠ'], |
73 | | -['ડh', '', 'ઢ'], |
74 | | -['તh', '', 'થ'], |
75 | | -['દh', '', 'ધ'], |
76 | | -['પh', '', 'ફ'], |
77 | | -['બh', '', 'ભ'], |
| 72 | +['ટ્h', '', 'ઠ'], |
| 73 | +['ડ્h', '', 'ઢ'], |
| 74 | +['ત્h', '', 'થ'], |
| 75 | +['દ્h', '', 'ધ'], |
| 76 | +['પ્h', '', 'ફ'], |
| 77 | +['બ્h', '', 'ભ'], |
78 | 78 | |
79 | | -['ઋa', '', 'ऱ'], |
80 | | -['ઋA', '', 'ऱા'], |
81 | | -['ઋi', '', 'ऱિ'], |
82 | | -['ઋI', '', 'ऱી'], |
83 | | -['ઋu', '', 'ऱુ'], |
84 | | -['ઋU', '', 'ऱૂ'], |
85 | | -['ઋ\\^', '', 'ऱॅ'], |
86 | | -['ઋe', '', 'ऱॆ'], |
87 | | -['ઋE', '', 'ऱૅ'], |
88 | | -['ઋo', '', 'ऱો'], |
89 | | -['ઋO', '', 'ऱો'], |
90 | | -['ઋ\\~', '', 'ऱ્'], |
| 79 | +['ઋa', '', 'ર'], |
| 80 | +['ઋA', '', 'રા'], |
| 81 | +['ઋi', '', 'રિ'], |
| 82 | +['ઋI', '', 'રી'], |
| 83 | +['ઋu', '', 'રુ'], |
| 84 | +['ઋU', '', 'રૂ'], |
| 85 | +['ઋ\\^', '', 'રૅ'], |
| 86 | +['ઋe', '', 'રે'], |
| 87 | +['ઋE', '', 'રૅ'], |
| 88 | +['ઋo', '', 'રો'], |
| 89 | +['ઋO', '', 'રો'], |
| 90 | +['ઋ\\~', '', 'ર્'], |
91 | 91 | |
92 | | -['સh', '', 'ષ'], |
93 | | -['ક़્h', '', 'ખ'], |
94 | | -['જh', '', 'ऴ્'], |
| 92 | +['સ્h', '', 'ષ'], |
| 93 | +['ક઼્h', '', 'ખ'], |
| 94 | +['જ્h', '', 'ऴ્'], |
95 | 95 | ['।\\.', '', '॥'], |
96 | 96 | |
97 | 97 | ['a', '', 'અ'], |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | ['n', '', 'ન્'], |
111 | 111 | ['o', '', 'ઑ'], |
112 | 112 | ['p', '', 'પ્'], |
113 | | -//['q', '', 'ક़્'], // XXX? |
| 113 | +//['q', '', 'ક઼્'], // XXX? |
114 | 114 | ['r', '', 'ર્'], |
115 | 115 | ['s', '', 'સ્'], |
116 | 116 | ['t', '', 'ત્'], |
— | — | @@ -125,12 +125,12 @@ |
126 | 126 | ['E', '', 'એ'], |
127 | 127 | ['F', '', 'ફ્'], |
128 | 128 | ['G', '', 'ગ'],//double |
129 | | -['H', '', 'ः'], |
| 129 | +['H', '', 'ઃ'], |
130 | 130 | ['I', '', 'ઈ'], |
131 | 131 | ['J', '', 'જ'],//double |
132 | 132 | // ['K', '', 'ક્ક્'], |
133 | 133 | ['L', '', 'ળ'], |
134 | | -['M', '', 'ं'], |
| 134 | +['M', '', 'ં'], |
135 | 135 | ['N', '', 'ણ'], |
136 | 136 | ['O', '', 'ઓ'], |
137 | 137 | ['P', '', 'પ'],//double |
— | — | @@ -155,8 +155,8 @@ |
156 | 156 | ['9', '', '૯'], |
157 | 157 | ['~', '', '્'], |
158 | 158 | ['\\.', '', '।'], |
159 | | -['//', '', 'ऽ'], |
160 | | -['\\`', '', '़'], |
| 159 | +['//', '', 'ઽ'], |
| 160 | +['\\`', '', '઼'], |
161 | 161 | ['(\u200C)*_', '', '\u200c'] |
162 | 162 | ]; |
163 | 163 | |