r103958 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103957‎ | r103958 | r103959 >
Date:21:21, 22 November 2011
Author:robin
Status:ok
Tags:
Comment:
Narayam transliteration for Tifinagh script used by Berber languages (currently for Tachelhit and Tarifit)
Modified paths:
  • /trunk/extensions/Narayam/Narayam.i18n.php (modified) (history)
  • /trunk/extensions/Narayam/Narayam.php (modified) (history)
  • /trunk/extensions/Narayam/resources/ext.narayam.rules.ber-tfng.js (added) (history)

Diff [purge]

Index: trunk/extensions/Narayam/resources/ext.narayam.rules.ber-tfng.js
@@ -0,0 +1,51 @@
 2+/**
 3+ * Transliteration regular expression rules table for Tifinagh script
 4+ * Based on Moroccan keyboards: http://www.ircam.ma/fr/index.php?soc=telec&rd=2
 5+ * @date 2011-11-22
 6+ */
 7+
 8+var rules = [
 9+['a', '', 'ⴰ'],
 10+['b', '', 'ⴱ'],
 11+['c', '', 'ⵛ'],
 12+['d', '', 'ⴷ'],
 13+['D', '', 'ⴹ'],
 14+['e', '', 'ⴻ'],
 15+['f', '', 'ⴼ'],
 16+['F', '', 'ⴼⵯ'],
 17+['g', '', 'ⴳ'],
 18+['G', '', 'ⴳⵯ'],
 19+['h', '', 'ⵀ'],
 20+['i', '', 'ⵉ'],
 21+['j', '', 'ⵊ'],
 22+['k', '', 'ⴽ'],
 23+['K', '', 'ⴽⵯ'],
 24+['l', '', 'ⵍ'],
 25+['m', '', 'ⵎ'],
 26+['n', '', 'ⵏ'],
 27+['o', '', 'ⵄ'],
 28+['p', '', 'ⵃ'],
 29+['q', '', 'ⵇ'],
 30+['Q', '', 'ⵈ'],
 31+['r', '', 'ⵔ'],
 32+['R', '', 'ⵕ'],
 33+['s', '', 'ⵙ'],
 34+['S', '', 'ⵚ'],
 35+['t', '', 'ⵜ'],
 36+['T', '', 'ⵟ'],
 37+['v', '', 'ⵖ'],
 38+['u', '', 'ⵓ'],
 39+['w', '', 'ⵡ'],
 40+['y', '', 'ⵢ'],
 41+['x', '', 'ⵅ'],
 42+['z', '', 'ⵣ'],
 43+['Z', '', 'ⵥ'],
 44+];
 45+
 46+jQuery.narayam.addScheme( 'ber-tfng', {
 47+ 'namemsg': 'narayam-ber-tfng',
 48+ 'extended_keyboard': false,
 49+ 'lookbackLength': 0,
 50+ 'keyBufferLength': 0,
 51+ 'rules': rules
 52+} );
Property changes on: trunk/extensions/Narayam/resources/ext.narayam.rules.ber-tfng.js
___________________________________________________________________
Added: svn:eol-style
153 + native
Index: trunk/extensions/Narayam/Narayam.i18n.php
@@ -28,6 +28,7 @@
2929 'narayam-as-avro' => 'Assamese Avro',
3030 'narayam-as-bornona' => 'Assamese Bornona',
3131 'narayam-as-inscript' => 'Assamese InScript',
 32+ 'narayam-ber-tfng' => 'Tifinagh Transliteration',
3233 'narayam-brx-inscript' => 'Bodo InScript',
3334 'narayam-eo' => 'Esperanto',
3435 'narayam-hi' => 'Hindi Transliteration',
Index: trunk/extensions/Narayam/Narayam.php
@@ -99,10 +99,16 @@
100100 'pa-inscript' => 'ext.narayam.rules.pa-inscript',
101101 'pa-phonetic' => 'ext.narayam.rules.pa-phonetic',
102102 ),
 103+ 'rif' => array(
 104+ 'ber-tfng' => 'ext.narayam.rules.ber-tfng',
 105+ ),
103106 'sa' => array(
104107 'sa' => 'ext.narayam.rules.sa',
105108 'sa-inscript' => 'ext.narayam.rules.sa-inscript',
106109 ),
 110+ 'shi' => array(
 111+ 'ber-tfng' => 'ext.narayam.rules.ber-tfng',
 112+ ),
107113 'si' => array(
108114 'si-singlish' => 'ext.narayam.rules.si-singlish',
109115 'si-wijesekara' => 'ext.narayam.rules.si-wijesekara',
@@ -173,6 +179,7 @@
174180 'narayam-as-bornona',
175181 'narayam-as-inscript',
176182 'narayam-de',
 183+ 'narayam-ber-tfng',
177184 'narayam-brx-inscript',
178185 'narayam-eo',
179186 'narayam-hi',
@@ -232,6 +239,10 @@
233240 'scripts' => 'resources/ext.narayam.rules.as-inscript.js',
234241 'dependencies' => 'ext.narayam.core',
235242 );
 243+$wgResourceModules['ext.narayam.rules.ber-tfng'] = $narayamTpl + array(
 244+ 'scripts' => 'resources/ext.narayam.rules.ber-tfng.js',
 245+ 'dependencies' => 'ext.narayam.core',
 246+);
236247 $wgResourceModules['ext.narayam.rules.bn-avro'] = $narayamTpl + array(
237248 'scripts' => 'resources/ext.narayam.rules.bn-avro.js',
238249 'dependencies' => 'ext.narayam.core',

Status & tagging log