r104269 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104268‎ | r104269 | r104270 >
Date:10:30, 26 November 2011
Author:amire80
Status:ok
Tags:
Comment:
Correcting more Gujarati vowels.
Modified paths:
  • /trunk/extensions/Narayam/resources/ext.narayam.rules.gu.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Narayam/resources/ext.narayam.rules.gu.js
@@ -1,49 +1,49 @@
22 /**
3 - * Transliteration regular expression rules table for Gujarathi
 3+ * Transliteration regular expression rules table for Gujarati
44 * @author Jaldeep R Vasavada ([[user:JaldeepVasavada]])
55 * @date 2011-11-19
66 * License: GPLv3, CC-BY-SA 3.0
77 */
88
9 - // Normal rules
 9+// Normal rules
1010 var rules = [
1111 ['ક્h', 'c', 'ચ'],
1212 ['\\\\([A-Za-z\\>_~\\.0-9])', '\\\\', '$1'],
1313
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ૌ'],
3333
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્ર્'],
4646
47 -['([ક-હ])્\\`', '', '$1़્'],
 47+['([ક-હ])્\\`', '', '$1઼્'],
4848
4949 ['અa', '', 'આ'],
5050 ['(ઑo|ઉu)', '', 'ઊ'],
@@ -55,42 +55,42 @@
5656 ['અu', '', 'ઔ'],
5757 ['ઋR', '', 'ૠ'],
5858 ['ળl', '', 'ઌ'],
59 -['ઌl', '', 'ૡ'],//problem
60 -['ं\\^', '', 'ँ'],
61 -['ंm', '', 'ँ'],
 59+['ઌl', '', 'ૡ'], //problem
 60+['ં\\^', '', 'ઁ'],
 61+['ંm', '', 'ઁ'],
6262 ['ઓM', '', 'ૐ'],
6363
64 -['રY', '', 'ऱ્ય'],
 64+['રY', '', 'ર્ય'],
6565
6666 ['ક્h', '', 'ખ'],//kh
67 -['ગh', '', 'ઘ'],
 67+['ગ્h', '', 'ઘ'],
6868 ['નg', '', 'ઙ'],
69 -['ચh', '', 'છ'],
70 -['જh', '', 'ઝ'],
 69+['ચ્h', '', 'છ'],
 70+['જ્h', '', 'ઝ'],
7171 ['ન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', '', 'ભ'],
7878
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+['ઋ\\~', '', 'ર્'],
9191
92 -['સh', '', 'ષ'],
93 -['ક़્h', '', 'ખ'],
94 -['જh', '', 'ऴ્'],
 92+['સ્h', '', 'ષ'],
 93+['ક઼્h', '', 'ખ'],
 94+['જ્h', '', 'ऴ્'],
9595 ['।\\.', '', '॥'],
9696
9797 ['a', '', 'અ'],
@@ -109,7 +109,7 @@
110110 ['n', '', 'ન્'],
111111 ['o', '', 'ઑ'],
112112 ['p', '', 'પ્'],
113 -//['q', '', 'ક़્'], // XXX?
 113+//['q', '', 'ક઼્'], // XXX?
114114 ['r', '', 'ર્'],
115115 ['s', '', 'સ્'],
116116 ['t', '', 'ત્'],
@@ -125,12 +125,12 @@
126126 ['E', '', 'એ'],
127127 ['F', '', 'ફ્'],
128128 ['G', '', 'ગ'],//double
129 -['H', '', 'ः'],
 129+['H', '', 'ઃ'],
130130 ['I', '', 'ઈ'],
131131 ['J', '', 'જ'],//double
132132 // ['K', '', 'ક્ક્'],
133133 ['L', '', 'ળ'],
134 -['M', '', 'ं'],
 134+['M', '', 'ં'],
135135 ['N', '', 'ણ'],
136136 ['O', '', 'ઓ'],
137137 ['P', '', 'પ'],//double
@@ -155,8 +155,8 @@
156156 ['9', '', '૯'],
157157 ['~', '', '્'],
158158 ['\\.', '', '।'],
159 -['//', '', 'ऽ'],
160 -['\\`', '', '़'],
 159+['//', '', 'ઽ'],
 160+['\\`', '', '઼'],
161161 ['(\u200C)*_', '', '\u200c']
162162 ];
163163

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r104266Replacing the halant.amire8008:11, 26 November 2011

Status & tagging log