Index: trunk/extensions/Narayam/ext.narayam.rules.sa-inscript.js |
— | — | @@ -0,0 +1,115 @@ |
| 2 | +/** |
| 3 | + * InScript regular expression rules table for Sanskrit script |
| 4 | + * According to CDAC's "Enhanced InScript Keyboard Layout 5.2" |
| 5 | + * @author Junaid P V ([[user:Junaidpv]]) |
| 6 | + * @date 2010-12-26 |
| 7 | + * License: GPLv3, CC-BY-SA 3.0 |
| 8 | + */ |
| 9 | +var rules = [ |
| 10 | +['X', '', 'ँ'], |
| 11 | +['x', '', 'ं'], |
| 12 | +['_', '', 'ः'], |
| 13 | +['D', '', 'अ'], |
| 14 | +['E', '', 'आ'], |
| 15 | +['F', '', 'इ'], |
| 16 | +['R', '', 'ई'], |
| 17 | +['G', '', 'उ'], |
| 18 | +['T', '', 'ऊ'], |
| 19 | +['\\+', '', 'ृ'], |
| 20 | +['S', '', 'ए'], |
| 21 | +['W', '', 'ऐ'], |
| 22 | +['A', '', 'ओ'], |
| 23 | +['Q', '', 'औ'], |
| 24 | +['k', '', 'क'], |
| 25 | +['K', '', 'ख'], |
| 26 | +['i', '', 'ग'], |
| 27 | +['I', '', 'घ'], |
| 28 | +['U', '', 'ङ'], |
| 29 | +['\\;', '', 'च'], |
| 30 | +['\\:', '', 'छ'], |
| 31 | +['p', '', 'ज'], |
| 32 | +['P', '', 'झ'], |
| 33 | +['\\}', '', 'ञ'], |
| 34 | +["'", '', 'ट'], |
| 35 | +['"', '', 'ठ'], |
| 36 | +['\\[', '','ड'], |
| 37 | +['\\{', '','ढ'], |
| 38 | +['C', '', 'ण'], |
| 39 | +['l', '', 'त'], |
| 40 | +['L', '', 'थ'], |
| 41 | +['o', '', 'द'], |
| 42 | +['O', '', 'ध'], |
| 43 | +['v', '', 'न'], |
| 44 | +['h', '', 'प'], |
| 45 | +['H', '', 'फ'], |
| 46 | +['y', '', 'ब'], |
| 47 | +['Y', '', 'भ'], |
| 48 | +['c', '', 'म'], |
| 49 | +['\\?', '','य'], |
| 50 | +['j', '', 'र'], |
| 51 | +['n', '', 'ल'], |
| 52 | +['N', '', 'ळ'], |
| 53 | +['b', '', 'व'], |
| 54 | +['M', '', 'श'], |
| 55 | +['\\<', '','ष'], |
| 56 | +['m', '', 'स'], |
| 57 | +['u', '', 'ह'], |
| 58 | +['\\]', '','़'], |
| 59 | +['e', '', 'ा'], |
| 60 | +['f', '', 'ि'], |
| 61 | +['r', '', 'ी'], |
| 62 | +['g', '', 'ु'], |
| 63 | +['t', '', 'ू'], |
| 64 | +['\\=', '','ृ'], |
| 65 | +['\\\\', '', 'ॄ'], |
| 66 | +['s', '', 'े'], |
| 67 | +['w', '', 'ै'], |
| 68 | +['a', '', 'ो'], |
| 69 | +['q', '', 'ौ'], |
| 70 | +['d', '', '्'], |
| 71 | +['\\|', '', 'ॠ'], |
| 72 | +['/', '', 'य'], |
| 73 | +['\\>', '', '।'], |
| 74 | +['0', '','०'], |
| 75 | +['1', '','१'], |
| 76 | +['2', '', '२'], |
| 77 | +['3', '', '३'], |
| 78 | +['4', '', '४'], |
| 79 | +['5', '', '५'], |
| 80 | +['6', '', '६'], |
| 81 | +['7', '', '७'], |
| 82 | +['8', '', '८'], |
| 83 | +['9', '', '९'], |
| 84 | +['\\@', '', 'ॅ'], |
| 85 | +['\\#', '','्र'], |
| 86 | +['\\$', '','र्'], |
| 87 | +['\\%', '','ज्ञ'], |
| 88 | +['\\^', '','त्र'], |
| 89 | +['\\&', '', 'क्ष'], |
| 90 | +['\\*', '', 'श्र'], |
| 91 | +['\\(', '', '\u200D'], |
| 92 | +['\\)', '', '\u200C'] |
| 93 | +]; |
| 94 | + |
| 95 | +// Extended layout for InScript. Works in Firefox only |
| 96 | +var rules_x = [ |
| 97 | +['F', '', 'ऌ'], |
| 98 | +['\\>', '','ऽ'], |
| 99 | +['X', '', 'ॐ'], |
| 100 | +['e', '', '\0951'], |
| 101 | +['d', '', '\u0952'], |
| 102 | +['R', '', 'ॡ'], |
| 103 | +['f', '', 'ॢ'], |
| 104 | +['r', '', 'ॣ'], |
| 105 | +['\\.', '', '॥'], |
| 106 | +['\\@', '','ॅ'], |
| 107 | +['4', '', '₹'] |
| 108 | +]; |
| 109 | + |
| 110 | +jQuery.narayam.addScheme( 'sa-inscript', { |
| 111 | + 'namemsg': 'narayam-sa-inscript', |
| 112 | + 'extended_keyboard': true, |
| 113 | + 'lookbackLength': 0, |
| 114 | + 'rules': rules, |
| 115 | + 'rules_x': rules_x |
| 116 | +} ); |
\ No newline at end of file |
Property changes on: trunk/extensions/Narayam/ext.narayam.rules.sa-inscript.js |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 117 | + native |
Index: trunk/extensions/Narayam/Narayam.i18n.php |
— | — | @@ -21,6 +21,7 @@ |
22 | 22 | 'narayam-ml' => 'Malayalam Transliteration', |
23 | 23 | 'narayam-ml-inscript' => 'Malayalam InScript', |
24 | 24 | 'narayam-sa' => 'Sanskrit Transliteration', |
| 25 | + 'narayam-sa-inscript' => 'Sanskrit InScript', |
25 | 26 | 'narayam-ta99' => 'Tamil99', |
26 | 27 | 'narayam-ta' => 'Tamil Transliteration', |
27 | 28 | 'narayam-bn-avro' => 'Bengali Avro', |
Index: trunk/extensions/Narayam/Narayam.php |
— | — | @@ -56,6 +56,7 @@ |
57 | 57 | ), |
58 | 58 | 'sa' => array( |
59 | 59 | 'sa' => 'ext.narayam.rules.sa', |
| 60 | + 'sa-inscript' => 'ext.narayam.rules.sa-inscript', |
60 | 61 | ), |
61 | 62 | 'ta' => array( |
62 | 63 | 'ta' => 'ext.narayam.rules.ta', |
— | — | @@ -139,6 +140,11 @@ |
140 | 141 | 'messages' => array( 'narayam-sa' ), |
141 | 142 | 'dependencies' => 'ext.narayam.core', |
142 | 143 | ); |
| 144 | +$wgResourceModules['ext.narayam.rules.sa-inscript'] = $narayamTpl + array( |
| 145 | + 'scripts' => 'ext.narayam.rules.sa-inscript.js', |
| 146 | + 'messages' => array( 'narayam-sa-inscript' ), |
| 147 | + 'dependencies' => 'ext.narayam.core', |
| 148 | +); |
143 | 149 | $wgResourceModules['ext.narayam.rules.ta99'] = $narayamTpl + array( |
144 | 150 | 'scripts' => 'ext.narayam.rules.ta99.js', |
145 | 151 | 'messages' => array( 'narayam-ta99' ), |