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 |
1 | 76 | + native |
Index: trunk/extensions/Narayam/Narayam.i18n.php |
— | — | @@ -69,7 +69,10 @@ |
70 | 70 | 'narayam-mai-inscript' => 'Maithili InScript', |
71 | 71 | 'narayam-gom-deva' => 'Goan Konkani-Devanagari Transliteration', |
72 | 72 | '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)', |
74 | 77 | ); |
75 | 78 | |
76 | 79 | /** Message documentation (Message documentation) |
— | — | @@ -1144,7 +1147,8 @@ |
1145 | 1148 | 'narayam-mai-inscript' => 'מייתילי InScript', |
1146 | 1149 | 'narayam-gom-deva' => 'קונקנית של גואה – דוונגרי תעתיק', |
1147 | 1150 | 'narayam-gom-deva-inscript' => 'קונקנית של גואה – דוונגרי InScript', |
1148 | | - 'narayam-he-standard-2011' => 'עברית עם ניקוד', |
| 1151 | + 'narayam-he-standard-2011-extonly' => 'עברית עם ניקוד', |
| 1152 | + 'narayam-he-standard-2011' => 'עברית עם ניקוד (עם מקלדת אנגלית)', |
1149 | 1153 | ); |
1150 | 1154 | |
1151 | 1155 | /** Hindi (हिन्दी) |
Index: trunk/extensions/Narayam/Narayam.php |
— | — | @@ -80,7 +80,12 @@ |
81 | 81 | 'gom-deva' => array( 'ext.narayam.rules.gom-deva', 'beta' ), |
82 | 82 | 'gom-deva-inscript' => array( 'ext.narayam.rules.gom-deva-inscript', 'beta' ), |
83 | 83 | ), |
| 84 | + 'gu' => array( |
| 85 | + 'gu' => array( 'ext.narayam.rules.gu', 'beta' ), |
| 86 | + 'gu-inscript' => array( 'ext.narayam.rules.gu-inscript', 'beta' ), |
| 87 | + ), |
84 | 88 | 'he' => array( |
| 89 | + 'he-standard-2011-extonly' => array( 'ext.narayam.rules.he-standard-2011-extonly', 'beta' ), |
85 | 90 | 'he-standard-2011' => array( 'ext.narayam.rules.he-standard-2011', 'beta' ), |
86 | 91 | ), |
87 | 92 | 'hi' => array( |
— | — | @@ -144,10 +149,6 @@ |
145 | 150 | 'ur' => array( |
146 | 151 | 'ur' => array( 'ext.narayam.rules.ur', 'beta' ), |
147 | 152 | ), |
148 | | - 'gu' => array( |
149 | | - 'gu' => array( 'ext.narayam.rules.gu', 'beta' ), |
150 | | - 'gu-inscript' => array( 'ext.narayam.rules.gu-inscript', 'beta' ), |
151 | | - ), |
152 | 153 | 'ru' => array( |
153 | 154 | 'ru-standard' => array( 'ext.narayam.rules.ru-standard', 'beta' ), |
154 | 155 | ), |
— | — | @@ -215,6 +216,7 @@ |
216 | 217 | 'narayam-gom-deva-inscript', |
217 | 218 | 'narayam-gu', |
218 | 219 | 'narayam-gu-inscript', |
| 220 | + 'narayam-he-standard-2011-extonly', |
219 | 221 | 'narayam-he-standard-2011', |
220 | 222 | 'narayam-hi', |
221 | 223 | 'narayam-hi-inscript', |
— | — | @@ -301,6 +303,10 @@ |
302 | 304 | 'scripts' => 'resources/ext.narayam.rules.eo.js', |
303 | 305 | 'dependencies' => 'ext.narayam.core', |
304 | 306 | ); |
| 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 | +); |
305 | 311 | $wgResourceModules['ext.narayam.rules.he-standard-2011'] = $narayamTpl + array( |
306 | 312 | 'scripts' => 'resources/ext.narayam.rules.he-standard-2011.js', |
307 | 313 | 'dependencies' => 'ext.narayam.core', |