r111068 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111067‎ | r111068 | r111069 >
Date:19:08, 9 February 2012
Author:amire80
Status:resolved (Comments)
Tags:miscextensions 
Comment:
Adding a Narayam mapping for Bhojpuri (bho).
Modified paths:
  • /trunk/extensions/Narayam/Narayam.i18n.php (modified) (history)
  • /trunk/extensions/Narayam/Narayam.php (modified) (history)
  • /trunk/extensions/Narayam/resources/ext.narayam.rules.bho-inscript.js (added) (history)
  • /trunk/extensions/Narayam/resources/ext.narayam.rules.bho.js (added) (history)

Diff [purge]

Index: trunk/extensions/Narayam/resources/ext.narayam.rules.bho-inscript.js
@@ -0,0 +1,13 @@
 2+/**
 3+ * InScript regular expression rules table for the Bhojpuri language
 4+ * Based on CDAC's "Enhanced InScript Keyboard Layout 5.2" for Hindi
 5+ * @author Santhosh Thottingal, Amir E. Aharoni
 6+ * @date 2012-02-09
 7+ * License: GPLv3
 8+ */
 9+
 10+// copy the rules from hi_inscript.
 11+bho_inscript_scheme = $.narayam.getScheme( 'hi-inscript' );
 12+bho_inscript_scheme.namemsg = 'narayam-bho-inscript';
 13+jQuery.narayam.addScheme( 'bho-inscript', bho_inscript_scheme );
 14+
Property changes on: trunk/extensions/Narayam/resources/ext.narayam.rules.bho-inscript.js
___________________________________________________________________
Added: svn:eol-style
115 + native
Index: trunk/extensions/Narayam/resources/ext.narayam.rules.bho.js
@@ -0,0 +1,13 @@
 2+/**
 3+ * Transliteration regular expression rules table for the Bhojpuri language
 4+ * Based on CDAC's "Enhanced InScript Keyboard Layout 5.2" for Hindi
 5+ * @author Santhosh Thottingal, Amir E. Aharoni
 6+ * @date 2012-02-09
 7+ * License: GPLv3
 8+ */
 9+
 10+// copy the rules from hi.
 11+bho_scheme = $.narayam.getScheme( 'hi' );
 12+bho_scheme.namemsg = 'narayam-bho';
 13+jQuery.narayam.addScheme( 'bho', bho_scheme );
 14+
Property changes on: trunk/extensions/Narayam/resources/ext.narayam.rules.bho.js
___________________________________________________________________
Added: svn:eol-style
115 + native
Index: trunk/extensions/Narayam/Narayam.i18n.php
@@ -57,6 +57,8 @@
5858 'narayam-tcy' => 'Tulu Transliteration',
5959 'narayam-te' => 'Telugu Transliteration',
6060 'narayam-te-inscript' => 'Telugu InScript',
 61+ 'narayam-bho' => 'Bhojpuri transliteration',
 62+ 'narayam-bho-inscript' => 'Bhojpuri InScript',
6163 'narayam-bn-avro' => 'Bengali Avro',
6264 'narayam-bn-inscript' => 'Bengali InScript',
6365 'narayam-bn-nkb' => 'Bengali NKB',
Index: trunk/extensions/Narayam/Narayam.php
@@ -59,6 +59,10 @@
6060 'as-bornona' => 'ext.narayam.rules.as-bornona',
6161 'as-inscript' => 'ext.narayam.rules.as-inscript',
6262 ),
 63+ 'bho' => array(
 64+ 'bho' => array( 'ext.narayam.rules.bho', 'beta' ),
 65+ 'bho-inscript' => array( 'ext.narayam.rules.bho-inscript', 'beta' ),
 66+ ),
6367 'bn' => array(
6468 'bn-avro' => 'ext.narayam.rules.bn-avro',
6569 'bn-inscript' => 'ext.narayam.rules.bn-inscript',
@@ -207,6 +211,8 @@
208212 'narayam-as-avro',
209213 'narayam-as-bornona',
210214 'narayam-as-inscript',
 215+ 'narayam-bho',
 216+ 'narayam-bho-inscript',
211217 'narayam-bn-avro',
212218 'narayam-bn-inscript',
213219 'narayam-bn-nkb',
@@ -282,6 +288,14 @@
283289 'scripts' => 'resources/ext.narayam.rules.ber-tfng.js',
284290 'dependencies' => 'ext.narayam.core',
285291 );
 292+$wgResourceModules['ext.narayam.rules.bho'] = $narayamTpl + array(
 293+ 'scripts' => 'resources/ext.narayam.rules.bho.js',
 294+ 'dependencies' => 'ext.narayam.rules.hi',
 295+);
 296+$wgResourceModules['ext.narayam.rules.bho-inscript'] = $narayamTpl + array(
 297+ 'scripts' => 'resources/ext.narayam.rules.bho-inscript.js',
 298+ 'dependencies' => 'ext.narayam.rules.hi-inscript',
 299+);
286300 $wgResourceModules['ext.narayam.rules.bn-avro'] = $narayamTpl + array(
287301 'scripts' => 'resources/ext.narayam.rules.bn-avro.js',
288302 'dependencies' => 'ext.narayam.core',

Follow-up revisions

RevisionCommit summaryAuthorDate
r111147Follow up to r111068, corrected the header.amire8006:02, 10 February 2012

Comments

#Comment by Santhosh.thottingal (talk | contribs)   02:39, 10 February 2012

The file header for ext.narayam.rules.bho.js need correction. It is not based on Inscript.

Status & tagging log