r111275 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111274‎ | r111275 | r111276 >
Date:05:35, 12 February 2012
Author:amire80
Status:ok
Tags:i18nreview 
Comment:
Cleaned up and removed unneeded characters.
Modified paths:
  • /trunk/extensions/Narayam/resources/ext.narayam.rules.pa.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Narayam/resources/ext.narayam.rules.pa.js
@@ -2,7 +2,7 @@
33 * Transliteration regular expression rules table for Gurmukhi script for Punjabi
44 * @author Amir E. Aharoni
55 * Semi-automatically created from the Hindi transliteration mapping using
6 - * the Perl substitution:
 6+ * the following Perl substitution:
77 * s{(?<deva_letter>[ऀ-ॿ])}{chr(ord($+{deva_letter}) + 0x100)}xmsge;
88 * @date 2012-02-11
99 * License: GPLv3
@@ -48,18 +48,13 @@
4949
5050 ['ਅa', '', 'ਆ'],
5151 ['(਒o|ਉu)', '', 'ਊ'],
52 -['਎\\^', '', '਍'],
5352 ['ਅi', '', 'ਐ'],
5453 ['ਅ\\^', '', 'ੲ'],
5554 ['(ਇi|਎e)', '', 'ਈ'],
56 -['਒\\^', '', '਑'],
5755 ['ਅu', '', 'ਔ'],
58 -['਋R', '', '੠'],
59 -['ਲ਼੍l', '', '਌'],
60 -['਌l', '', '੡'],
61 -['ਂ\\^', '', 'ਁ'],
62 -['ਂm', '', 'ਁ'],
63 -['ਂM', '', 'ਁ'],
 56+['ਂ\\^', '', 'ਁ'], // Adak bindi
 57+['ਂm', '', 'ਁ'], // Adak bindi
 58+['ਂM', '', 'ਁ'], // Adak bindi
6459 ['ਓM', '', '੐'],
6560
6661 ['ਕ੍h', '', 'ਖ੍'],
@@ -74,21 +69,8 @@
7570 ['ਦ੍h', '', 'ਧ੍'],
7671 ['ਪ੍h', '', 'ਫ੍'],
7772 ['ਬ੍h', '', 'ਭ੍'],
78 -['਋a', '', '਱'],
79 -['਋A', '', '਱ਾ'],
80 -['਋i', '', '਱ਿ'],
81 -['਋I', '', '਱ੀ'],
82 -['਋u', '', '਱ੁ'],
83 -['਋U', '', '਱ੂ'],
84 -['਋\\^', '', '਱੅'],
85 -['਋e', '', '਱ੇ'],
86 -['਋E', '', '਱ੇ'],
87 -['਋o', '', '਱ੋ'],
88 -['਋O', '', '਱ੋ'],
89 -['਋\\~', '', '਱੍'],
9073
9174 ['ਸ੍h', '', 'ਸ਼੍'],
92 -['ਸ਼੍h', '', '਷੍'],
9375 ['ਕ਼੍h', '', 'ਖ਼੍'],
9476 ['ਜ਼੍h', '', '਴੍'],
9577 ['੤\\.', '', '੥'],
@@ -111,13 +93,12 @@
11294 ['n', '', 'ਨ੍'],
11395 ['o', '', 'ਓ'],
11496 ['p', '', 'ਪ੍'],
115 -['q', '', '\u0A51'],
 97+['q', '', 'ੑ'], // Udaat
11698 ['r', '', 'ਰ੍'],
11799 ['s', '', 'ਸ੍'],
118100 ['t', '', 'ਤ੍'],
119101 ['u', '', 'ਉ'],
120102 ['(v|w)', '', 'ਵ੍'],
121 -['x', '', 'ਕ੍਷੍'],
122103 ['y', '', 'ਯ੍'],
123104 ['(z|Z)', '', '.'],
124105 ['A', '', 'ਆ'],
@@ -125,26 +106,21 @@
126107 ['C', '', 'ਕ੍ਕ੍'],
127108 ['D', '', 'ਡ੍'],
128109 ['E', '', '਍'],
129 -//'F', '', 'ਫ੍'],
130110 ['G', '', 'ਗ੍ਗ੍'],
131 -['H', '', 'ਃ'],
 111+['H', '', 'ਃ'], // Visarga
132112 ['I', '', 'ਈ'],
133113 ['J', '', 'ਜ੍ਜ੍'],
134114 ['K', '', 'ਕ੍ਕ੍'],
135115 ['L', '', 'ਲ਼੍'],
136 -['M', '', 'ਂ'],
 116+['M', '', 'ਂ'], // Bindi
137117 ['N', '', 'ਣ੍'],
138118 ['O', '', 'ਓ'],
139119 ['P', '', 'ਪ੍ਪ੍'],
140 -//'Q', '', 'ਅ'],
141 -['R', '', '਋'],
142120 ['S', '', 'ਸ਼੍'],
143121 ['T', '', 'ਟ੍'],
144122 ['U', '', 'ਊ'],
145123 ['(V|W)', '', 'ਵ੍ਵ੍'],
146 -['X', '', 'ਕ੍਷੍'],
147124 ['Y', '', 'ਞ੍'],
148 -//'z', '', 'ਅ'
149125 ['0', '', '੦'],
150126 ['1', '', '੧'],
151127 ['2', '', '੨'],
@@ -156,8 +132,6 @@
157133 ['8', '', '੮'],
158134 ['9', '', '੯'],
159135 ['~', '', '੍'],
160 -['\\.', '', '੤'],
161 -['//', '', '਽'],
162136 ['\\`', '', '਼']
163137 ];
164138

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r111230Adding the first draft of Punjabi transliteration layout. Semi-automatically ...amire8012:12, 11 February 2012

Status & tagging log