r107912 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107911‎ | r107912 | r107913 >
Date:18:02, 3 January 2012
Author:amire80
Status:ok
Tags:
Comment:
Added a simplified Hebrew layout and moved Gujarati alphabetically.
Modified paths:
  • /trunk/extensions/Narayam/Narayam.i18n.php (modified) (history)
  • /trunk/extensions/Narayam/Narayam.php (modified) (history)
  • /trunk/extensions/Narayam/resources/ext.narayam.rules.he-standard-2011-extonly.js (added) (history)

Diff [purge]

Index: trunk/extensions/Narayam/resources/ext.narayam.rules.he-standard-2011-extonly.js
@@ -0,0 +1,74 @@
 2+/**
 3+ * Transliteration rules table for the Hebrew keyboard
 4+ * according to Israeli Standard 1452 for users who already use
 5+ * a Hebrew layout on their system. This layout only includes
 6+ * characters added in the new draft of the standard:
 7+ * http://www.lingnu.com/he/howto/78-si1452.html
 8+ * @author Amir E. Aharoni (אָמִיר אֱלִישָׁע אַהֲרוֹנִי, [[User:Amire80]])
 9+ * @date 2012-01-03
 10+ * License: GPLv3
 11+ */
 12+
 13+ // Normal rules
 14+var rules = [
 15+ // Empty, because the assumption is that the user is using a Hebrew keyboard already
 16+];
 17+
 18+// Your text editor may show the resulting characters in
 19+// the next lines as empty. These are diacritics.
 20+var rules_x = [
 21+['\u05E9', '', 'ְ'], // Sheva, ש
 22+
 23+['\u05E7', '', 'ָ'], // Qamats, ק
 24+['\u05E8', '', 'ֳ'], // Hataf qamats, ר
 25+['\u05E4', '', 'ַ'], // Patah, פ
 26+['\\]', '', 'ֲ'], // Hataf patah, ]
 27+
 28+['\u05E6', '', 'ֵ'], // Tsere, צ
 29+['\u05E1', '', 'ֶ'], // Segol, ס
 30+['\u05D1', '', 'ֱ'], // Hataf segol, ב
 31+
 32+['\u05D7', '', 'ִ'], // Hiriq, ח
 33+
 34+['\u05D5', '', 'ֹ'], // Holam, ו
 35+
 36+['\\\\', '', 'ֻ'], // Qubuts, \
 37+
 38+['\u05D3', '', 'ּ'], // Dagesh, ד
 39+
 40+['/', '', 'ׂ'], // Sin dot
 41+['\'', '', 'ׁ'], // Shin dot
 42+
 43+['-', '', '\u05BE'], // Maqaf
 44+['=', '', '–'], // Qav mafrid - en dash
 45+['\\[', '', 'ֿ'], // Rafe
 46+['1', '', 'ֽ'], // Meteg
 47+['3', '', '€'], // Euro sign
 48+['4', '', '₪'], // Sheqel sign
 49+['5', '', '°'], // Degree
 50+['6', '', '֫'], // Ole
 51+['8', '', '×'], // Multiplication
 52+['\\.', '', '÷'], // Division
 53+
 54+['\u05D8', '', 'װ'], // Double vav, ט
 55+['\u05D9', '', 'ײ'], // Double yod, י
 56+['\u05E2', '', 'ױ'], // Vav-yod, ע
 57+
 58+// Simply writing ';' and ',' breaks some source code editors
 59+// because of auto-directionality.
 60+['\u003B', '', '׳'], // Geresh, ;
 61+['\u002C', '', '״'], // Gershayim, ,
 62+['\u05E3', '', '„'], // Opening double quote, ף
 63+['\u05DA', '', '”'], // Closing double quote, ך
 64+['\u05E5', '', '‚'], // Opening single quote, ץ
 65+['\u05EA', '', '’'] // Closing single quote, ת
 66+];
 67+
 68+jQuery.narayam.addScheme( 'he-standard-2011-extonly', {
 69+ 'namemsg': 'narayam-he-standard-2011-extonly',
 70+ 'extended_keyboard': true,
 71+ 'lookbackLength': 0,
 72+ 'keyBufferLength': 0,
 73+ 'rules': rules,
 74+ 'rules_x': rules_x
 75+} );
Property changes on: trunk/extensions/Narayam/resources/ext.narayam.rules.he-standard-2011-extonly.js
___________________________________________________________________
Added: svn:eol-style
176 + native
Index: trunk/extensions/Narayam/Narayam.i18n.php
@@ -69,7 +69,10 @@
7070 'narayam-mai-inscript' => 'Maithili InScript',
7171 'narayam-gom-deva' => 'Goan Konkani-Devanagari Transliteration',
7272 'narayam-gom-deva-inscript' => 'Goan Konkani-Devanagari InScript',
73 - 'narayam-he-standard-2011' => 'Hebrew Standard 2011',
 73+
 74+ // extonly should be the default, hence the short name
 75+ 'narayam-he-standard-2011-extonly' => 'Hebrew Standard 2011',
 76+ 'narayam-he-standard-2011' => 'Hebrew Standard 2011 (English keyboard)',
7477 );
7578
7679 /** Message documentation (Message documentation)
@@ -1144,7 +1147,8 @@
11451148 'narayam-mai-inscript' => 'מייתילי InScript',
11461149 'narayam-gom-deva' => 'קונקנית של גואה – דוונגרי תעתיק',
11471150 'narayam-gom-deva-inscript' => 'קונקנית של גואה – דוונגרי InScript',
1148 - 'narayam-he-standard-2011' => 'עברית עם ניקוד',
 1151+ 'narayam-he-standard-2011-extonly' => 'עברית עם ניקוד',
 1152+ 'narayam-he-standard-2011' => 'עברית עם ניקוד (עם מקלדת אנגלית)',
11491153 );
11501154
11511155 /** Hindi (हिन्दी)
Index: trunk/extensions/Narayam/Narayam.php
@@ -80,7 +80,12 @@
8181 'gom-deva' => array( 'ext.narayam.rules.gom-deva', 'beta' ),
8282 'gom-deva-inscript' => array( 'ext.narayam.rules.gom-deva-inscript', 'beta' ),
8383 ),
 84+ 'gu' => array(
 85+ 'gu' => array( 'ext.narayam.rules.gu', 'beta' ),
 86+ 'gu-inscript' => array( 'ext.narayam.rules.gu-inscript', 'beta' ),
 87+ ),
8488 'he' => array(
 89+ 'he-standard-2011-extonly' => array( 'ext.narayam.rules.he-standard-2011-extonly', 'beta' ),
8590 'he-standard-2011' => array( 'ext.narayam.rules.he-standard-2011', 'beta' ),
8691 ),
8792 'hi' => array(
@@ -144,10 +149,6 @@
145150 'ur' => array(
146151 'ur' => array( 'ext.narayam.rules.ur', 'beta' ),
147152 ),
148 - 'gu' => array(
149 - 'gu' => array( 'ext.narayam.rules.gu', 'beta' ),
150 - 'gu-inscript' => array( 'ext.narayam.rules.gu-inscript', 'beta' ),
151 - ),
152153 'ru' => array(
153154 'ru-standard' => array( 'ext.narayam.rules.ru-standard', 'beta' ),
154155 ),
@@ -215,6 +216,7 @@
216217 'narayam-gom-deva-inscript',
217218 'narayam-gu',
218219 'narayam-gu-inscript',
 220+ 'narayam-he-standard-2011-extonly',
219221 'narayam-he-standard-2011',
220222 'narayam-hi',
221223 'narayam-hi-inscript',
@@ -301,6 +303,10 @@
302304 'scripts' => 'resources/ext.narayam.rules.eo.js',
303305 'dependencies' => 'ext.narayam.core',
304306 );
 307+$wgResourceModules['ext.narayam.rules.he-standard-2011-extonly'] = $narayamTpl + array(
 308+ 'scripts' => 'resources/ext.narayam.rules.he-standard-2011-extonly.js',
 309+ 'dependencies' => 'ext.narayam.core',
 310+);
305311 $wgResourceModules['ext.narayam.rules.he-standard-2011'] = $narayamTpl + array(
306312 'scripts' => 'resources/ext.narayam.rules.he-standard-2011.js',
307313 'dependencies' => 'ext.narayam.core',

Sign-offs

UserFlagDate
Nikerabbitinspected07:08, 4 January 2012

Status & tagging log