Index: trunk/extensions/Narayam/ext.narayam.rules.kn-inscript.js |
— | — | @@ -0,0 +1,115 @@ |
| 2 | +/** |
| 3 | + * InScript regular expression rules table for Kannada script |
| 4 | + * According to CDAC's "Enhanced InScript Keyboard Layout 5.2" |
| 5 | + * @author Junaid P V ([[user:Junaidpv]]) |
| 6 | + * @date 2011-02-27 |
| 7 | + * License: GPLv3, CC-BY-SA 3.0 |
| 8 | + */ |
| 9 | + // Normal |
| 10 | + var rules = [ |
| 11 | +['x', '', '\u0C82'], |
| 12 | +['_', '', '\u0C83'], |
| 13 | +['D', '', '\u0C85'], |
| 14 | +['E', '', '\u0C86'], |
| 15 | +['F', '', '\u0C87'], |
| 16 | +['R', '', '\u0C88'], |
| 17 | +['G', '', '\u0C89'], |
| 18 | +['T', '', '\u0C8A'], |
| 19 | +['\\+', '', '\u0C8B'], |
| 20 | +['Z', '', '\u0C8E'], |
| 21 | +['S', '', '\u0C8F'], |
| 22 | +['W', '', '\u0C90'], |
| 23 | +['~', '', '\u0C92'], |
| 24 | +['A', '', '\u0C93'], |
| 25 | +['Q', '', '\u0C94'], |
| 26 | +['k', '', '\u0C95'], |
| 27 | +['K', '', '\u0C96'], |
| 28 | +['i', '', '\u0C97'], |
| 29 | +['I', '', '\u0C98'], |
| 30 | +['U', '', '\u0C99'], |
| 31 | +[';', '', '\u0C9A'], |
| 32 | +['\\:', '', '\u0C9B'], |
| 33 | +['p', '', '\u0C9C'], |
| 34 | +['P', '', '\u0C9D'], |
| 35 | +['\\}', '', '\u0C9E'], |
| 36 | +["'", '', '\u0C9F'], |
| 37 | +['"', '', '\u0CA0'], |
| 38 | +['\\[', '', '\u0CA1'], |
| 39 | +['\\{', '', '\u0CA2'], |
| 40 | +['C', '', '\u0CA3'], |
| 41 | +['l', '', '\u0CA4'], |
| 42 | +['L', '', '\u0CA5'], |
| 43 | +['o', '', '\u0CA6'], |
| 44 | +['O', '', '\u0CA7'], |
| 45 | +['v', '', '\u0CA8'], |
| 46 | +['h', '', '\u0CAA'], |
| 47 | +['H', '', '\u0CAB'], |
| 48 | +['y', '', '\u0CAC'], |
| 49 | +['Y', '', '\u0CAD'], |
| 50 | +['c', '', '\u0CAE'], |
| 51 | +['/', '', '\u0CAF'], |
| 52 | +['j', '', '\u0CB0'], |
| 53 | +['J', '', '\u0CB1'], |
| 54 | +['n', '', '\u0CB2'], |
| 55 | +['N', '', '\u0CB3'], |
| 56 | +['b', '', '\u0CB5'], |
| 57 | +['M', '', '\u0CB6'], |
| 58 | +[',', '', '\u0CB7'], |
| 59 | +['m', '', '\u0CB8'], |
| 60 | +['u', '', '\u0CB9'], |
| 61 | +['\\]', '', '\u0CBC'], |
| 62 | +['e', '', '\u0CBE'], |
| 63 | +['f', '', '\u0CBF'], |
| 64 | +['r', '', '\u0CC0'], |
| 65 | +['g', '', '\u0CC1'], |
| 66 | +['t', '', '\u0CC2'], |
| 67 | +['\\=', '', '\u0CC3'], |
| 68 | +['z', '', '\u0CC6'], |
| 69 | +['s', '', '\u0CC7'], |
| 70 | +['w', '', '\u0CC8'], |
| 71 | +['`', '', '\u0CCA'], |
| 72 | +['a', '', '\u0CCB'], |
| 73 | +['q', '', '\u0CCC'], |
| 74 | +['d', '', '\u0CCD'], |
| 75 | +['t', '', '\u0CC2'], |
| 76 | +['0', '', '\u0CE6'], |
| 77 | +['1', '', '\u0CE7'], |
| 78 | +['2', '', '\u0CE8'], |
| 79 | +['3', '', '\u0CE9'], |
| 80 | +['4', '', '\u0CEA'], |
| 81 | +['5', '', '\u0CEB'], |
| 82 | +['6', '', '\u0CEC'], |
| 83 | +['7', '', '\u0CED'], |
| 84 | +['8', '', '\u0CEE'], |
| 85 | +['9', '', '\u0CEF'], |
| 86 | +['\\#', '', '\u0CCD\u0CB0'], |
| 87 | +['\\%', '', '\u0C9C\u0CCD\u0C9E'], |
| 88 | +['\\^', '', '\u0CA4\u0CCD\u0CB0'], |
| 89 | +['\\&', '', '\u0C95\u0CCD\u0CB0'], |
| 90 | +['\\(', '', '\u200D'], |
| 91 | +['\\)', '', '\u200C'] |
| 92 | +]; |
| 93 | +// Extended |
| 94 | +var rules_x = [ |
| 95 | +['F', '', '\uC88C'], |
| 96 | +['\\>', '', '\u0CBD'], |
| 97 | +['\\=', '', '\u0CC4'], |
| 98 | +['H', '', '\u0CDE'], |
| 99 | +['\\+', '', '\u0CE0'], |
| 100 | +['R', '', '\u0CE1'], |
| 101 | +['f', '', '\u0CE2'], |
| 102 | +['r', '', '\u0CE3'], |
| 103 | +['\\>', '', '\u0CE4'], |
| 104 | +['\\.', '', '\u0CE5'], |
| 105 | +['u', '', '\u0CF1'], |
| 106 | +['j', '', '\u0CF2'], |
| 107 | +['\\$', '', '\u20B9'] |
| 108 | +]; |
| 109 | + |
| 110 | +jQuery.narayam.addScheme( 'kn-inscript', { |
| 111 | + 'namemsg': 'narayam-kn-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.kn-inscript.js |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 117 | + native |
Index: trunk/extensions/Narayam/Narayam.i18n.php |
— | — | @@ -19,6 +19,8 @@ |
20 | 20 | 'narayam-help-page' => 'Help:Typing', |
21 | 21 | 'narayam-checkbox-tooltip' => 'To toggle input method on and off', // FIXME: better message |
22 | 22 | 'narayam-hi-inscript' => 'Hindi InScript', |
| 23 | + 'narayam-kn' => 'Kannada Transliteration', |
| 24 | + 'narayam-kn-inscript' => 'Kannada InScript', |
23 | 25 | 'narayam-ml' => 'Malayalam Transliteration', |
24 | 26 | 'narayam-ml-inscript' => 'Malayalam InScript', |
25 | 27 | 'narayam-sa' => 'Sanskrit Transliteration', |
Index: trunk/extensions/Narayam/ext.narayam.rules.kn.js |
— | — | @@ -0,0 +1,148 @@ |
| 2 | +/** |
| 3 | + * Trasliteration regular expression rules table for Kannada |
| 4 | + * @author M G Harish [[user:M G Harish]] |
| 5 | + * Modified by User:HPNadig (User:HPN on en) |
| 6 | + * @date 2010-12-25 |
| 7 | + * License: GPLv3, CC-BY-SA 3.0 |
| 8 | + */ |
| 9 | + var rules = [ |
| 10 | +['ಕ್h','c','ಚ್'], |
| 11 | +['\\\\([A-Za-z\\>_~\\.0-9])','\\\\','$1'], |
| 12 | +// For users accustomed to Baraha |
| 13 | +['ಜ್್j', '','ಜ್ಞ್'], |
| 14 | +['([ಕ-ಹೞ]಼?)್a', '','$1'], |
| 15 | +['([ಕ-ಹೞ]಼?)್A', '','$1ಾ'], |
| 16 | +['([ಕ-ಹೞ]಼?)a', '','$1ಾ'], |
| 17 | +['([ಕ-ಹೞ]಼?)್i', '','$1ಿ'], |
| 18 | +['([ಕ-ಹೞ]಼?)(್I|ಿi|ೆe)', '','$1ೀ'], |
| 19 | +['([ಕ-ಹೞ]಼?)್u', '','$1ು'], |
| 20 | +['([ಕ-ಹೞ]಼?)(ುu|್U|ೊo)', '','$1ೂ'], |
| 21 | +['([ಕ-ಹೞ]಼?)್R', '','$1ೃ'], |
| 22 | +['([ಕ-ಹೞ]಼?)ೃR', '','$1ೄ'], |
| 23 | +['([ಕ-ಹೞ]಼?)್e', '','$1ೆ'], |
| 24 | +['([ಕ-ಹೞ]಼?)್E', '','$1ೇ'], |
| 25 | +['([ಕ-ಹೞ]಼?)i', '','$1ೈ'], |
| 26 | +['([ಕ-ಹೞ]಼?)್o', '','$1ೊ'], |
| 27 | +['([ಕ-ಹೞ]಼?)್O', '','$1ೋ'], |
| 28 | +['([ಕ-ಹೞ]಼?)u', '','$1ೌ'], |
| 29 | +['([ಕ-ಹೞ])್\\`', '','$1़್'], |
| 30 | + |
| 31 | +['ಅa', '','ಆ'], |
| 32 | +['(ಒo|ಉu)', '','ಊ'], |
| 33 | +['ಅi', '','ಐ'], |
| 34 | +['(ಇi|ಎe)', '','ಈ'], |
| 35 | +['ಅu', '','ಔ'], |
| 36 | +['ಋR', '','ೠ'], |
| 37 | +['ಓ~M', '','ॐ'], |
| 38 | + |
| 39 | +['~l', '','ೞ್'], |
| 40 | +['~r', '','ಱ್'], |
| 41 | +['q', '','ೞ್'], |
| 42 | +['Q', '','ಱ್'], |
| 43 | +['ಕ್h', '','ಖ್'], |
| 44 | +['ಗ್h', '','ಘ್'], |
| 45 | +['~g', '','ಙ್'], |
| 46 | +['~N', '','ಙ್'], |
| 47 | +['ಚ್h', '','ಛ್'], |
| 48 | +['ಜ್h', '','ಝ್'], |
| 49 | +['~j', '','ಞ್'], |
| 50 | +['~n', '','ಞ್'], |
| 51 | +['ಟ್h', '','ಠ್'], |
| 52 | +['ಡ್h', '','ಢ್'], |
| 53 | +['ತ್h', '','ಥ್'], |
| 54 | +['ದ್h', '','ಧ್'], |
| 55 | +['ಪ್h', '','ಫ್'], |
| 56 | +['ಬ್h', '','ಭ್'], |
| 57 | +['ಸ್h', '','ಶ್'], |
| 58 | +['ಶ್h', '','ಷ್'], |
| 59 | + |
| 60 | + |
| 61 | +['ಋa', '','ರ'], |
| 62 | +['ಋA', '','ರಾ'], |
| 63 | +['ಋi', '','ರಿ'], |
| 64 | +['ಋI', '','ರೀ'], |
| 65 | +['ಋu', '','ರು'], |
| 66 | +['ಋU', '','ರೂ'], |
| 67 | +['ಋe', '','ರೆ'], |
| 68 | +['ಋE', '','ರೇ'], |
| 69 | + |
| 70 | +['X', '',''], // 0x200C Zero width non-joiner |
| 71 | +['x', '',''], // 0x200D Zero width joiner |
| 72 | + |
| 73 | +['([ಕ-ಹೞ]಼?)ೃa', '','$1್ರ'], |
| 74 | +['([ಕ-ಹೞ]಼?)ೃA', '','$1್ರಾ'], |
| 75 | +['([ಕ-ಹೞ]಼?)ೃi', '','$1್ರಿ'], |
| 76 | +['([ಕ-ಹೞ]಼?)ೃI', '','$1್ರೀ'], |
| 77 | +['([ಕ-ಹೞ]಼?)ೃu', '','$1್ರು'], |
| 78 | +['([ಕ-ಹೞ]಼?)ೃU', '','$1್ರೂ'], |
| 79 | +['([ಕ-ಹೞ]಼?)ೃe', '','$1್ರೆ'], |
| 80 | +['([ಕ-ಹೞ]಼?)ೃE', '','$1್ರೇ'], |
| 81 | +['([ಕ-ಹೞ]಼?)ೃo', '','$1್ರೊ'], |
| 82 | +['([ಕ-ಹೞ]಼?)ೃO', '','$1್ರೋ'], |
| 83 | +['([ಕ-ಹೞ]಼?)ೃ\\~', '','$1್ರ್'], |
| 84 | + |
| 85 | +['।\\.', '','॥'], |
| 86 | + |
| 87 | +['a', '','ಅ'], |
| 88 | +['b', '','ಬ್'], |
| 89 | +['c', '','ಚ್'], |
| 90 | +['d', '','ದ್'], |
| 91 | +['e', '','ಎ'], |
| 92 | +['g', '','ಗ್'], |
| 93 | +['h', '','ಹ್'], |
| 94 | +['i', '','ಇ'], |
| 95 | +['j', '','ಜ್'], |
| 96 | +['k', '','ಕ್'], |
| 97 | +['l', '','ಲ್'], |
| 98 | +['m', '','ಮ್'], |
| 99 | +['n', '','ನ್'], |
| 100 | +['o', '','ಒ'], |
| 101 | +['p', '','ಪ್'], |
| 102 | +['r', '','ರ್'], |
| 103 | +['s', '','ಸ್'], |
| 104 | +['t', '','ತ್'], |
| 105 | +['u', '','ಉ'], |
| 106 | +['(v|w)', '','ವ್'], |
| 107 | +['y', '','ಯ್'], |
| 108 | +['A', '','ಆ'], |
| 109 | +['B', '','ಭ್'], |
| 110 | +['C', '','ಛ್'], |
| 111 | +['D', '','ಡ್'], |
| 112 | +['E', '','ಏ'], |
| 113 | +['G', '','ಘ್'], |
| 114 | +['H', '','ಃ'], |
| 115 | +['I', '','ಈ'], |
| 116 | +['J', '','ಝ್'], |
| 117 | +['K', '','ಖ್'], |
| 118 | +['L', '','ಳ್'], |
| 119 | +['M', '','ಂ'], |
| 120 | +['N', '','ಣ್'], |
| 121 | +['O', '','ಓ'], |
| 122 | +['P', '','ಫ್'], |
| 123 | +['R', '','ಋ'], |
| 124 | +['S', '','ಶ್'], |
| 125 | +['T', '','ಟ್'], |
| 126 | +['U', '','ಊ'], |
| 127 | +['(V|W)', '','ವ್'], |
| 128 | +['Y', '','ಯ್'], |
| 129 | +['(z|Z)', '','ಜ಼್'], |
| 130 | +['(f|F)', '','ಫ಼್'], |
| 131 | +['0', '','೦'], |
| 132 | +['1', '','೧'], |
| 133 | +['2', '','೨'], |
| 134 | +['3', '','೩'], |
| 135 | +['4', '','೪'], |
| 136 | +['5', '','೫'], |
| 137 | +['6', '','೬'], |
| 138 | +['7', '','೭'], |
| 139 | +['8', '','೮'], |
| 140 | +['9', '','೯'], |
| 141 | +['//', '','ಽ'] |
| 142 | +]; |
| 143 | + |
| 144 | +jQuery.narayam.addScheme( 'kn', { |
| 145 | + 'namemsg': 'narayam-kn', |
| 146 | + 'extended_keyboard': false, |
| 147 | + 'lookbackLength': 3, |
| 148 | + 'rules': rules |
| 149 | +} ); |
\ No newline at end of file |
Property changes on: trunk/extensions/Narayam/ext.narayam.rules.kn.js |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 150 | + native |
Index: trunk/extensions/Narayam/Narayam.php |
— | — | @@ -53,6 +53,10 @@ |
54 | 54 | 'hi' => array( |
55 | 55 | 'hi-inscript' => 'ext.narayam.rules.hi-inscript', |
56 | 56 | ), |
| 57 | + 'kn' => array( |
| 58 | + 'kn' => 'ext.narayam.rules.kn', |
| 59 | + 'kn-inscript' => 'ext.narayam.rules.kn-inscript', |
| 60 | + ), |
57 | 61 | 'ml' => array( |
58 | 62 | 'ml' => 'ext.narayam.rules.ml', |
59 | 63 | 'ml-inscript' => 'ext.narayam.rules.ml-inscript', |
— | — | @@ -133,6 +137,16 @@ |
134 | 138 | 'messages' => array( 'narayam-hi-inscript' ), |
135 | 139 | 'dependencies' => 'ext.narayam.core', |
136 | 140 | ); |
| 141 | +$wgResourceModules['ext.narayam.rules.kn'] = $narayamTpl + array( |
| 142 | + 'scripts' => 'ext.narayam.rules.kn.js', |
| 143 | + 'messages' => array( 'narayam-kn' ), |
| 144 | + 'dependencies' => 'ext.narayam.core', |
| 145 | +); |
| 146 | +$wgResourceModules['ext.narayam.rules.kn-inscript'] = $narayamTpl + array( |
| 147 | + 'scripts' => 'ext.narayam.rules.kn-inscript.js', |
| 148 | + 'messages' => array( 'narayam-kn-inscript' ), |
| 149 | + 'dependencies' => 'ext.narayam.core', |
| 150 | +); |
137 | 151 | $wgResourceModules['ext.narayam.rules.ml-inscript'] = $narayamTpl + array( |
138 | 152 | 'scripts' => 'ext.narayam.rules.ml-inscript.js', |
139 | 153 | 'messages' => array( 'narayam-ml-inscript' ), |