r104961 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104960‎ | r104961 | r104962 >
Date:09:49, 2 December 2011
Author:santhosh
Status:ok
Tags:
Comment:
Add Chhattisgarhi inscript keyboard.
Modified paths:
  • /trunk/extensions/Narayam/Narayam.i18n.php (modified) (history)
  • /trunk/extensions/Narayam/Narayam.php (modified) (history)
  • /trunk/extensions/Narayam/resources/ext.narayam.core.js (modified) (history)
  • /trunk/extensions/Narayam/resources/ext.narayam.rules.hne-inscript.js (added) (history)

Diff [purge]

Index: trunk/extensions/Narayam/resources/ext.narayam.rules.hne-inscript.js
@@ -0,0 +1,12 @@
 2+/**
 3+ * InScript regular expression rules table for Chhattisgarhi language
 4+ * Based on CDAC's "Enhanced InScript Keyboard Layout 5.2" for Hindi
 5+ * @author Santhosh Thottingal
 6+ * @date 2011-02-12
 7+ * License: GPLv3
 8+ */
 9+
 10+//copy the rules from hi_inscript.
 11+hne_inscript_scheme = $.narayam.getScheme( 'hi-inscript' );
 12+hne_inscript_scheme.namemsg ='narayam-hne-inscript';
 13+jQuery.narayam.addScheme( 'hne-inscript', hne_inscript_scheme );
Property changes on: trunk/extensions/Narayam/resources/ext.narayam.rules.hne-inscript.js
___________________________________________________________________
Added: svn:eol-style
114 + native
Index: trunk/extensions/Narayam/resources/ext.narayam.core.js
@@ -421,8 +421,16 @@
422422 schemes[name] = data;
423423 return true;
424424 };
425 -
 425+
426426 /**
 427+ * Get the transliteration rules for the given input method name.
 428+ * @param name String
 429+ */
 430+ this.getScheme = function( name ) {
 431+ return schemes[name];
 432+ }
 433+
 434+ /**
427435 * Change the current transliteration scheme
428436 * @param name String
429437 */
Index: trunk/extensions/Narayam/Narayam.i18n.php
@@ -64,6 +64,7 @@
6565 'narayam-gu-inscript' => 'Gujarati InScript',
6666 'narayam-ru-standard' => 'Russian Standard',
6767 'narayam-sah-standard' => 'Sakha Standard',
 68+ 'narayam-hne-inscript' => 'Chhattisgarhi InScript',
6869 );
6970
7071 /** Message documentation (Message documentation)
@@ -1317,6 +1318,7 @@
13181319 'narayam-gu-inscript' => 'ഗുജറാത്തി ഇൻസ്ക്രിപ്റ്റ്',
13191320 'narayam-ru-standard' => 'റഷ്യൻ മാനകരൂപം',
13201321 'narayam-sah-standard' => 'സാഖാ മാനകരൂപം',
 1322+ 'narayam-hne-inscript' => 'ഛത്തീസ്ഗാഢി ഇന്‍സ്ക്രിപ്റ്റ്',
13211323 );
13221324
13231325 /** Marathi (मराठी)
Index: trunk/extensions/Narayam/Narayam.php
@@ -64,6 +64,9 @@
6565 'brx' => array(
6666 'brx-inscript' => 'ext.narayam.rules.brx-inscript',
6767 ),
 68+ 'hne' => array(
 69+ 'hne-inscript' => 'ext.narayam.rules.hne-inscript',
 70+ ),
6871 'de' => array(
6972 'de' => 'ext.narayam.rules.de',
7073 ),
@@ -222,6 +225,7 @@
223226 'narayam-gu-inscript',
224227 'narayam-ru-standard',
225228 'narayam-sah-standard',
 229+ 'narayam-hne-inscript',
226230 ),
227231 'dependencies' => array(
228232 'mediawiki.util',
@@ -393,3 +397,7 @@
394398 'scripts' => 'resources/ext.narayam.rules.sah-standard.js',
395399 'dependencies' => 'ext.narayam.core',
396400 );
 401+$wgResourceModules['ext.narayam.rules.hne-inscript'] = $narayamTpl + array(
 402+ 'scripts' => 'resources/ext.narayam.rules.hne-inscript.js',
 403+ 'dependencies' => 'ext.narayam.rules.hi-inscript',
 404+);

Status & tagging log