r103664 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103663‎ | r103664 | r103665 >
Date:11:44, 19 November 2011
Author:junaidpv
Status:ok
Tags:
Comment:
Narayam: Changes suggested by Marathi wikipedians at Hackathon.
Modified paths:
  • /trunk/extensions/Narayam/js/ext.narayam.rules.mr.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Narayam/js/ext.narayam.rules.mr.js
@@ -8,56 +8,51 @@
99
1010 // Normal rules
1111 var rules = [
12 -['क्h','c','च्'],
 12+['च्h','c','च्'], // ch
 13+['च्h', 'ch','छ्'], // chh
 14+
1315 ['\\\\([A-Za-z\\>_~\\.0-9])','\\\\','$1'],
1416
15 -
1617 ['([क-ह]़?)्a', '','$1'],
1718 ['([क-ह]़?)्A', '','$1ा'],
1819 ['([क-ह]़?)a', '','$1ा'],
1920 ['([क-ह]़?)्i', '','$1ि'],
20 -['([क-ह]़?)(्I|िi|ॆe)', '','$1ी'],
 21+['([क-ह]़?)(्I|िi|ेe)', '','$1ी'],
2122 ['([क-ह]़?)्u', '','$1ु'],
22 -['([क-ह]़?)(ुu|्U|ॊo)', '','$1ू'],
 23+['([क-ह]़?)(ुu|्U|ोo)', '','$1ू'],
2324 ['([क-ह]़?)्R', '','$1ृ'],
2425 ['([क-ह]़?)ृR', '','$1ॄ'],
2526 ['([क-ह]़?)्ळ्l', '','$1ॢ'],
2627 ['([क-ह]़?)ॢl', '','$1ॣ'],
27 -['([क-ह]़?)ॆ\\^', '','$1ॅ'],
28 -['([क-ह]़?)्e', '','$1ॆ'],
29 -['([क-ह]़?)्E', '','$1े'],
30 -['([क-ह]़?)ॊ\\^', '','$1ॉ'],
 28+['([क-ह]़?)े\\^', '','$1ॅ'],
 29+['([क-ह]़?)्e', '','$1े'],
 30+['([क-ह]़?)्E', '','$1ॅ'],
 31+['([क-ह]़?)ो\\^', '','$1ॉ'],
3132 ['([क-ह]़?)i', '','$1ै'],
32 -['([क-ह]़?)्o', '','$1ॊ'],
33 -['([क-ह]़?)्O', '','$1ो'],
 33+['([क-ह]़?)्o', '','$1ो'],
 34+['([क-ह]़?)्O', '','$1ॉ'],
3435 ['([क-ह]़?)u', '','$1ौ'],
35 -['([क-ह]़?)ृa', '','$1्ऱ'],
36 -['([क-ह]़?)ृA', '','$1्ऱा'],
37 -['([क-ह]़?)ृi', '','$1्ऱि'],
38 -['([क-ह]़?)ृI', '','$1्ऱी'],
39 -['([क-ह]़?)ृu', '','$1्ऱु'],
40 -['([क-ह]़?)ृU', '','$1्ऱू'],
41 -['([क-ह]़?)ृ\\^', '','$1्ऱॅ'],
42 -['([क-ह]़?)ृe', '','$1्ऱॆ'],
43 -['([क-ह]़?)ृE', '','$1्ऱे'],
44 -['([क-ह]़?)ृo', '','$1्ऱॊ'],
45 -['([क-ह]़?)ृO', '','$1्ऱो'],
46 -['([क-ह]़?)ृ\\~', '','$1्ऱ्'],
4736 ['([क-ह])्\\`', '','$1़्'],
4837
 38+['आऊm', '', 'ॐ'], // AUm
 39+
 40+['(ग्ग्y|ज्ज्n)', '', 'ज्ञ्'], // Gy or Jy
 41+
 42+['र्र्y', '', 'ऱ्य्'], // rry
 43+['र्र्h', '', 'ऱ्ह्'], // rry
 44+
4945 ['अa', '','आ'],
5046 ['(ऒo|उu)', '','ऊ'],
51 -['ऎ\\^', '','ऍ'],
 47+['ए\\^', '','ऍ'],
5248 ['अi', '','ऐ'],
53 -['अ\\^', '','ॲ'],
54 -['(इi|ऎe)', '','ई'],
 49+['(अ\\^|E)', '','ॲ'],
 50+['(इi|एe)', '','ई'],
5551 ['ऒ\\^', '','ऑ'],
5652 ['अu', '','औ'],
5753 ['ऋR', '','ॠ'],
5854 ['ळ्l', '','ऌ'],
5955 ['ऌl', '','ॡ'],
60 -['ं\\^', '','ँ'],
61 -['ंm', '','ँ'],
 56+['ंM', '','ँ'],
6257 ['ओM', '','ॐ'],
6358
6459 ['र्Y', '','ऱ्य्'],
@@ -65,39 +60,28 @@
6661 ['क्h', '','ख्'],//kh
6762 ['ग्h', '','घ्'],
6863 ['न्g', '','ङ्'],
69 -['च्h', '','छ्'],
7064 ['ज्h', '','झ्'],
7165 ['न्j', '','ञ्'],
7266 ['ट्h', '','ठ्'],
7367 ['ड्h', '','ढ्'],
7468 ['त्h', '','थ्'],
7569 ['द्h', '','ध्'],
76 -['प्h', '','फ्'],
 70+['(f|प्h)', '','फ्'],
7771 ['ब्h', '','भ्'],
78 -['ऋa', '','ऱ'],
79 -['ऋA', '','ऱा'],
80 -['ऋi', '','ऱि'],
81 -['ऋI', '','ऱी'],
82 -['ऋu', '','ऱु'],
83 -['ऋU', '','ऱू'],
84 -['ऋ\\^', '','ऱॅ'],
85 -['ऋe', '','ऱॆ'],
86 -['ऋE', '','ऱे'],
87 -['ऋo', '','ऱॊ'],
88 -['ऋO', '','ऱो'],
89 -['ऋ\\~', '','ऱ्'],
 72+['ऋi', '', 'ॠ'], // Ri
 73+['ऋl', '', 'ॡ'], // Rl
9074
91 -['स्h', '','ष्'],
 75+['स्h', '','श्'],
 76+['श्h', '', 'ष्'],
9277 ['क़्h', '','ख़्'],
9378 ['ज़्h', '','ऴ्'],
94 -['।\\.', '','॥'],
 79+['।\\\\', '','॥'],
9580
9681 ['a', '','अ'],
9782 ['b', '','ब्'],
98 -['c', '','क्'],
 83+['c', '','च्'],
9984 ['d', '','द्'],
100 -['e', '','ऎ'],
101 -['(f|F)', '','फ़्'],
 85+['e', '','ए'],
10286 ['g', '','ग्'],
10387 ['h', '','ह्'],
10488 ['i', '','इ'],
@@ -106,7 +90,7 @@
10791 ['l', '','ल्'],
10892 ['m', '','म्'],
10993 ['n', '','न्'],
110 -['o', '','ऒ'],
 94+['o', '','ओ'],
11195 ['p', '','प्'],
11296 ['q', '','क़्'],
11397 ['r', '','र्'],
@@ -116,12 +100,11 @@
117101 ['(v|w)', '','व्'],
118102 ['x', '','क्ष्'],
119103 ['y', '','य्'],
120 -['(z|Z)', '','ज़्'],
 104+['(z|Z)', '','झ्'],
121105 ['A', '','आ'],
122106 ['B', '','ब्ब्'],
123107 ['C', '','क्क्'],
124108 ['D', '','ड्'],
125 -['E', '','ए'],
126109 //'F', '','फ्'],
127110 ['G', '','ग्ग्'],
128111 ['H', '','ः'],
@@ -131,7 +114,7 @@
132115 ['L', '','ळ्'],
133116 ['M', '','ं'],
134117 ['N', '','ण्'],
135 -['O', '','ओ'],
 118+['O', '','ऑ'],
136119 ['P', '','प्प्'],
137120 //'Q', '','अ'],
138121 ['R', '','ऋ'],
@@ -153,7 +136,7 @@
154137 ['8', '','८'],
155138 ['9', '','९'],
156139 ['~', '','्'],
157 -['\\.', '','।'],
 140+['.\\\\', '','।'],
158141 ['//', '','ऽ'],
159142 ['\\`', '','़'],
160143 ['(\u200C)*_', '', '\u200c']

Status & tagging log