Index: trunk/extensions/Narayam/Narayam.i18n.php |
— | — | @@ -22,6 +22,10 @@ |
23 | 23 | 'narayam-help-page' => 'Help:Typing', |
24 | 24 | 'narayam-checkbox-tooltip' => 'To toggle input method on and off', // FIXME: better message |
25 | 25 | 'narayam-disable-preference' => 'Disable Narayam Input Method Editor (IME)', |
| 26 | + 'narayam-as' => 'Assamese Transliteration', |
| 27 | + 'narayam-as-avro' => 'Assamese Avro', |
| 28 | + 'narayam-as-bornona' => 'Assamese Bornona', |
| 29 | + 'narayam-as-inscript' => 'Assamese InScript', |
26 | 30 | 'narayam-eo' => 'Esperanto', |
27 | 31 | 'narayam-hi-inscript' => 'Hindi InScript', |
28 | 32 | 'narayam-kn' => 'Kannada Transliteration', |
Index: trunk/extensions/Narayam/js/ext.narayam.rules.as-inscript.js |
— | — | @@ -0,0 +1,126 @@ |
| 2 | +/** |
| 3 | + * InScript regular expression rules table for Assamese script |
| 4 | + * According to CDAC's "Enhanced InScript Keyboard Layout 5.2" |
| 5 | + * @author Junaid P V ([[user:Junaidpv]]) |
| 6 | + * @date 2010-12-12 (updated: 2010-12-22) |
| 7 | + * License: GPLv3, CC-BY-SA 3.0 |
| 8 | + */ |
| 9 | + |
| 10 | +var rules = [ |
| 11 | +['X', '', 'ঁ'], |
| 12 | +['x', '', 'ং'], |
| 13 | +['_', '', 'ঃ'], |
| 14 | +['D', '', 'অ'], |
| 15 | +['E', '', 'আ'], |
| 16 | +['F', '', 'ই'], |
| 17 | +['R', '', 'ঈ'], |
| 18 | +['G', '', 'উ'], |
| 19 | +['T', '', 'ঊ'], |
| 20 | +['\\+', '', 'ঋ'], |
| 21 | +['S', '', 'এ'], |
| 22 | +['W', '', 'ঐ'], |
| 23 | +['A', '', 'ও'], |
| 24 | +['Q', '', 'ঔ'], |
| 25 | +['k', '', 'ক'], |
| 26 | +['K', '', 'খ'], |
| 27 | +['i', '', 'গ'], |
| 28 | +['I', '', 'ঘ'], |
| 29 | +['U', '', 'ঙ'], |
| 30 | +[';', '', 'চ'], |
| 31 | +['\\:', '', 'ছ'], |
| 32 | +['p', '', 'জ'], |
| 33 | +['P', '', 'ঝ'], |
| 34 | +['\\}', '', 'ঞ'], |
| 35 | +["'", '', 'ট'], |
| 36 | +['"', '', 'ঠ'], |
| 37 | +['\\[', '', 'ড'], |
| 38 | +['\\{', '', 'ঢ'], |
| 39 | +['C', '', 'ণ'], |
| 40 | +['l', '', 'ত'], |
| 41 | +['L', '', 'থ'], |
| 42 | +['o', '', 'দ'], |
| 43 | +['O', '', 'ধ'], |
| 44 | +['v', '', 'ন'], |
| 45 | +['h', '', 'প'], |
| 46 | +['H', '', 'ফ'], |
| 47 | +['y', '', 'ব'], |
| 48 | +['Y', '', 'ভ'], |
| 49 | +['c', '', 'ম'], |
| 50 | +['\\?', '', 'য'], |
| 51 | +['j', '', '\u09F0'], |
| 52 | +['J', '', 'ৎ'], |
| 53 | +['n', '', 'ল'], |
| 54 | +['M', '', 'শ'], |
| 55 | +['\\<', '', 'ষ'], |
| 56 | +['m', '', 'স'], |
| 57 | +['u', '', 'হ'], |
| 58 | +['\\]', '', '়'], |
| 59 | +['e', '', 'া'], |
| 60 | +['f', '', 'ি'], |
| 61 | +['r', '', 'ী'], |
| 62 | +['g', '', 'ু'], |
| 63 | +['t', '', 'ূ'], |
| 64 | +['\\=', '', 'ৃ'], |
| 65 | +['s', '', 'ে'], |
| 66 | +['w', '', 'ৈ'], |
| 67 | +['a', '', 'ো'], |
| 68 | +['q', '', 'ৌ'], |
| 69 | +['d', '', '্'], |
| 70 | +['/', '', 'য়'], |
| 71 | +['\\>', '', ''], |
| 72 | +['0', '', '০'], |
| 73 | +['1', '', '১'], |
| 74 | +['2', '', '২'], |
| 75 | +['3', '', '৩'], |
| 76 | +['4', '', '৪'], |
| 77 | +['5', '', '৫'], |
| 78 | +['6', '', '৬'], |
| 79 | +['7', '', '৭'], |
| 80 | +['8', '', '৮'], |
| 81 | +['9', '', '৯'], |
| 82 | +['z', '', 'ʼ'], |
| 83 | +['\\!', '', 'অ্যা'], |
| 84 | +['\\#', '', '্\u09F0'], |
| 85 | +['\\$', '', '\u09F0্'], |
| 86 | +['\\%', '', 'জ্ঞ'], |
| 87 | +['\\^', '', 'ত্র'], |
| 88 | +['\\&', '', 'ক্ষ'], |
| 89 | +['\\*', '', 'শ্র'], |
| 90 | +['\\(', '', '\u200D'], |
| 91 | +['\\)', '', '\u200C'] |
| 92 | +]; |
| 93 | + |
| 94 | +// Extended layout for InScript. Works in Firefox only |
| 95 | +var rules_x = [ |
| 96 | +['F', '', 'ঌ'], |
| 97 | +['\\>', '', 'ঽ'], |
| 98 | +['\\=', '', 'ৠ'], |
| 99 | +['l', '', 'ৎ'], |
| 100 | +['\\[', '', 'ড়'], |
| 101 | +['\\{', '', 'ঢ়'], |
| 102 | +['\\+', '', 'ৠ'], |
| 103 | +['R', '', 'ৡ'], |
| 104 | +['f', '', 'ৢ'], |
| 105 | +['r', '', 'ৣ'], |
| 106 | +['\\.', '', ''], |
| 107 | +['x', '', '৺'], |
| 108 | +['\\<', '', '৲'], |
| 109 | +[',', '', '৳'], |
| 110 | +['\\!', '', '৴'], |
| 111 | +['\\@', '', '৵'], |
| 112 | +['\\#', '', '৶'], |
| 113 | +['\\$', '', '৷'], |
| 114 | +['\\%', '', '৸'], |
| 115 | +['\\^', '', '৹'], |
| 116 | +['\\?', '', '৻'], |
| 117 | +['4', '', '₹'] |
| 118 | +]; |
| 119 | + |
| 120 | +jQuery.narayam.addScheme( 'as-inscript', { |
| 121 | + 'namemsg': 'narayam-as-inscript', |
| 122 | + 'extended_keyboard': true, |
| 123 | + 'lookbackLength': 0, |
| 124 | + 'keyBufferLength': 0, |
| 125 | + 'rules': rules, |
| 126 | + 'rules_x': rules_x |
| 127 | +} ); |
\ No newline at end of file |
Index: trunk/extensions/Narayam/js/ext.narayam.rules.as-bornona.js |
— | — | @@ -0,0 +1,82 @@ |
| 2 | +/** |
| 3 | + * Regular expression rules table for Bornona layout for Assamese script |
| 4 | + * @author Junaid P V ([[user:Junaidpv]]) |
| 5 | + * @date 2010-12-22 |
| 6 | + * License: GPLv3, CC-BY-SA 3.0 |
| 7 | + */ |
| 8 | + |
| 9 | +var rules = [ |
| 10 | +['q', '', 'ং'], |
| 11 | +['Q', '', 'ঙ'], |
| 12 | +['w', '', 'ঢ'], |
| 13 | +['W', '', 'ঠ'], |
| 14 | +['e', '', 'ে'], |
| 15 | +['E', '', 'ৈ'], |
| 16 | +['r', '', 'ৰ'], |
| 17 | +['R', '', 'ৃ'], |
| 18 | +['t', '', 'ত'], |
| 19 | +['T', '', 'ট'], |
| 20 | +['y', '', 'ধ'], |
| 21 | +['Y', '', 'থ'], |
| 22 | +['u', '', 'ু'], |
| 23 | +['U', '', 'ূ'], |
| 24 | +['i', '', 'ি'], |
| 25 | +['I', '', 'ী'], |
| 26 | +['o', '', 'ো'], |
| 27 | +['O', '', 'ৌ'], |
| 28 | +['p', '', 'প'], |
| 29 | +['P', '', '্ৰ'], |
| 30 | +['\\|', '', 'র'], |
| 31 | +['\\\\', '', 'ৱ'], |
| 32 | +['a', '', 'া'], |
| 33 | +['A', '', 'অ'], |
| 34 | +['s', '', 'স'], |
| 35 | +['S', '', 'শ'], |
| 36 | +['d', '', 'দ'], |
| 37 | +['D', '', 'ড'], |
| 38 | +['f', '', 'ফ'], |
| 39 | +['F', '', 'ৰ্ফ'], |
| 40 | +['g', '', 'গ'], |
| 41 | +['G', '', 'ঘ'], |
| 42 | +['h', '', '্'], |
| 43 | +['H', '', 'হ'], |
| 44 | +['j', '', 'জ'], |
| 45 | +['J', '', 'ঝ'], |
| 46 | +['k', '', 'ক'], |
| 47 | +['K', '', 'খ'], |
| 48 | +['l', '', 'ল'], |
| 49 | +['L', '', '।'], |
| 50 | +['z', '', 'য'], |
| 51 | +['Z', '', 'ড়'], |
| 52 | +['x', '', 'ষ'], |
| 53 | +['X', '', 'ঢ়'], |
| 54 | +['c', '', 'চ'], |
| 55 | +['C', '', 'ছ'], |
| 56 | +['v', '', 'ভ'], |
| 57 | +['V', '', '্য'], |
| 58 | +['b', '', 'ব'], |
| 59 | +['B', '', 'য়'], |
| 60 | +['n', '', 'ন'], |
| 61 | +['N', '', 'ণ'], |
| 62 | +['m', '', 'ম'], |
| 63 | +['M', '', 'ঞ'], |
| 64 | +['0', '', '০'], |
| 65 | +['1', '', '১'], |
| 66 | +['2', '', '২'], |
| 67 | +['3', '', '৩'], |
| 68 | +['4', '', '৪'], |
| 69 | +['5', '', '৫'], |
| 70 | +['6', '', '৬'], |
| 71 | +['7', '', '৭'], |
| 72 | +['8', '', '৮'], |
| 73 | +['9', '', '৯'], |
| 74 | +['\\`', '', '\u200C'] |
| 75 | +]; |
| 76 | + |
| 77 | +jQuery.narayam.addScheme( 'as-bornona', { |
| 78 | + 'namemsg': 'narayam-as-bornona', |
| 79 | + 'extended_keyboard': false, |
| 80 | + 'lookbackLength': 0, |
| 81 | + 'keyBufferLength': 0, |
| 82 | + 'rules': rules |
| 83 | +} ); |
\ No newline at end of file |
Index: trunk/extensions/Narayam/js/ext.narayam.rules.as.js |
— | — | @@ -0,0 +1,136 @@ |
| 2 | +/** |
| 3 | + * Trasliteration regular expression rules table for Assamese script |
| 4 | + * @author Junaid P V ([[user:Junaidpv]]) |
| 5 | + * @date 2010-12-01 |
| 6 | + * @credits Derived from Bengali transiliteration scheme developed with help from |
| 7 | + * Belayet Hossain, Jayanta Nath and Ragib Hasan |
| 8 | + * Changes for Assamese suggested by W Chaipau and Prabhakar Sarma Neog |
| 9 | + * License: GPLv3, CC-BY-SA 3.0 |
| 10 | + */ |
| 11 | + |
| 12 | +var rules = [ |
| 13 | +['ক্h','c','চ্'], |
| 14 | + |
| 15 | +['([ক-হ])্a','', '$1'], |
| 16 | +['([ক-হ])(a|্A)','', '$1া'], |
| 17 | +['([ক-হ])্i','', '$1ি'], |
| 18 | +['([ক-হ])(িi|্I|েe|েE)','', '$1ী'], |
| 19 | +['([ক-হ])্u','', '$1ু'], |
| 20 | +['([ক-হ])(ুu|্U|োo|োO)','', '$1ূ'], |
| 21 | +['([ক-হ])্R','', '$1ৃ'], |
| 22 | +['([ক-হ])ৃR','', '$1ৄ'], |
| 23 | +['([ক-হ])্L','', '$1ৢ'], |
| 24 | +['([ক-হ])ৢL','', '$1ৣ'], |
| 25 | +['([ক-হ])্(e|E)','', '$1ে'], |
| 26 | +['([ক-হ])i','', '$1ে'], |
| 27 | +['([ক-হ])্(o|O)','', '$1ো'], |
| 28 | +['([ক-হ])u','', '$1ৌ'], |
| 29 | +['([ক-হ])([া-ৌৗ])?m','', '$1$1ং'], |
| 30 | + |
| 31 | +['ং~','', 'ম্'], |
| 32 | +['ংa','', 'ম'], |
| 33 | +['ংA','', 'মা'], |
| 34 | +['ংi','', 'মি'], |
| 35 | +['ংI','', 'মী'], |
| 36 | +['ংu','', 'মু'], |
| 37 | +['ংU','', 'মূ'], |
| 38 | +['ংR','', 'মৃ'], |
| 39 | +['ং(e|E)','', 'মে'], |
| 40 | +['ং(o|O)','', 'মো'], |
| 41 | + |
| 42 | +['অa','', 'আ'], |
| 43 | +['ইi','', 'ঈ'], |
| 44 | +['এ(e|E)','', 'ঈ'], |
| 45 | +['অi','', 'ঐ'], |
| 46 | +['উu','', 'ঊ'], |
| 47 | +['ও(o|O)','', 'ঊ'], |
| 48 | +['অu','', 'ঔ'], |
| 49 | +['ঋR','', 'ৠ'], |
| 50 | +['ঌL','', 'ৡ'], |
| 51 | + |
| 52 | +['ক্h','', 'খ্'], |
| 53 | +['গ্h','', 'ঘ্'], |
| 54 | +['ন্g','', 'ঙ্'], |
| 55 | +['চ্h','', 'ছ্'], |
| 56 | +['জ্h','', 'ঝ্'], |
| 57 | +['ন্j','', 'ঞ্'], |
| 58 | +['ট্h','', 'ঠ্'], |
| 59 | +['ড্h','', 'ঢ্'], |
| 60 | +['ত্h','', 'থ্'], |
| 61 | +['দ্h','', 'ধ্'], |
| 62 | +['প্h','', 'ফ্'], |
| 63 | +['ব্h','', 'ভ্'], |
| 64 | +['স্h','', 'ষ্'], |
| 65 | + |
| 66 | + |
| 67 | +['a','', 'অ'], |
| 68 | +['b','', 'ব্'], |
| 69 | +['c','', 'ক্'], |
| 70 | +['d','', 'দ্'], |
| 71 | +['(e|E)','', 'এ'], |
| 72 | +//['f','', 'অ'], |
| 73 | +['g','', 'গ্'], |
| 74 | +['h','', 'স্'], |
| 75 | +['i','', 'ই'], |
| 76 | +['j','', 'জ্'], |
| 77 | +['k','', 'ক্'], |
| 78 | +['l','', 'ল্'], |
| 79 | +['m','', 'ম্'], |
| 80 | +['n','', 'ন্'], |
| 81 | +['(o|O)','', 'ও'], |
| 82 | +['p','', 'প্'], |
| 83 | +//['q','', 'অ'], |
| 84 | +['r','', 'র্'], |
| 85 | +['s','', 'স্'], |
| 86 | +['t','', 'ত্'], |
| 87 | +['u','', 'উ'], |
| 88 | +//['v','', 'অ'], |
| 89 | +//['w','', 'অ'], |
| 90 | +//['x','', 'অ'], |
| 91 | +['y','', 'য্'], |
| 92 | +//['z','', 'অ'], |
| 93 | +['A','', 'আ'], |
| 94 | +['B','', 'ব্ব্'], |
| 95 | +['C','', 'ক্ক্'], |
| 96 | +['D','', 'ড্'], |
| 97 | +//['F','', 'অ'], |
| 98 | +['G','', 'গ্গ্'], |
| 99 | +['H','', 'ঃ'], |
| 100 | +['I','', 'ঈ'], |
| 101 | +['J','', 'জ্জ্'], |
| 102 | +['K','', 'ক্ক্'], |
| 103 | +['L','', 'ঌ'], |
| 104 | +['M','', 'ম্ম্'], |
| 105 | +['N','', 'ণ্'], |
| 106 | +['P','', 'প্প্'], |
| 107 | +//['Q','', 'অ'], |
| 108 | +['R','', 'ঋ'], |
| 109 | +['S','', 'শ্'], |
| 110 | +['T','', 'ট্'], |
| 111 | +['U','', 'ঊ'], |
| 112 | +//['V','', 'অ'], |
| 113 | +//['W','', 'অ'], |
| 114 | +//['X','', 'অ'], |
| 115 | +['Y','', 'য্য্'], |
| 116 | +//['Z','', 'অ'], |
| 117 | +['0','', '০'], |
| 118 | +['1','', '১'], |
| 119 | +['2','', '২'], |
| 120 | +['3','', '৩'], |
| 121 | +['4','', '৪'], |
| 122 | +['5','', '৫'], |
| 123 | +['6','', '৬'], |
| 124 | +['7','', '৭'], |
| 125 | +['8','', '৮'], |
| 126 | +['9','', '৯'], |
| 127 | + |
| 128 | +['//','', 'ঽ'] |
| 129 | +]; |
| 130 | + |
| 131 | +jQuery.narayam.addScheme( 'as', { |
| 132 | + 'namemsg': 'narayam-as', |
| 133 | + 'extended_keyboard': false, |
| 134 | + 'lookbackLength': 3, |
| 135 | + 'keyBufferLength': 2, |
| 136 | + 'rules': rules |
| 137 | +} ); |
\ No newline at end of file |
Index: trunk/extensions/Narayam/js/ext.narayam.rules.as-avro.js |
— | — | @@ -0,0 +1,168 @@ |
| 2 | +/** |
| 3 | + * Avro layout regular expression rules table for Assamese script |
| 4 | + * @author Junaid P V ([[user:Junaidpv]]) |
| 5 | + * @date 2010-12-05 |
| 6 | + * @credits Derived from Bengali Avro layout by changing the characters for Assamese |
| 7 | + * License: GPLv3, CC-BY-SA 3.0 |
| 8 | + */ |
| 9 | + |
| 10 | +var rules = [ |
| 11 | +['([ক-হড়ঢ়য়ৰ])্?ৰৰi','[^o`]', '$1ৃ'], |
| 12 | +['ৰৰi','[^o`]', 'ঋ'], |
| 13 | + |
| 14 | +['(([ক-হড়ঢ়য়ৰ])|য়)o','[^o`]', '$1'], // য় cannot be included in the range, why? everywhere else it is OK! |
| 15 | +['([ক-হড়ঢ়য়ৰ])a','[^o`]', '$1া'], |
| 16 | +['([ক-হড়ঢ়য়ৰ])i','[^o`]', '$1ি'], |
| 17 | +['([ক-হড়ঢ়য়ৰ])I','[^o`]', '$1ী'], |
| 18 | +['([ক-হড়ঢ়য়ৰ])u','[^o`]', '$1ু'], |
| 19 | +['([ক-হড়ঢ়য়ৰ])U','[^o`]', '$1ূ'], |
| 20 | +['([ক-হড়ঢ়য়ৰ])o','[o`]', '$1ু'], |
| 21 | +['([ক-হড়ঢ়য়ৰ])e','[^o`]', '$1ে'], |
| 22 | +['([ক-হড়ঢ়য়ৰ])োI','[^o`]', '$1ৈ'], |
| 23 | +['([ক-হড়ঢ়য়ৰ])O','[^o`]', '$1ো'], |
| 24 | +['([ক-হড়ঢ়য়ৰ])োU','[^o`]', '$1ৌ'], |
| 25 | + |
| 26 | +//'চচh','[^o`]', 'চ্চ'], |
| 27 | + |
| 28 | +['([কঙলষস])(k|K)','[^o`]','$1্ক'], |
| 29 | +['([ঙদল])(g|G)','[^o`]','$1্গ'], |
| 30 | +['গg','[^o`]','জ্ঞ'], |
| 31 | +['([চশ])c','[^o`]','$1্চ'], |
| 32 | +['([জঞব])j','[^o`]','$1্জ'], |
| 33 | +['নj','[^o`]','ঞ্জ'], |
| 34 | +['([কটণনপলষস])T','[^o`]','$1্ট'], |
| 35 | +['([ডণনল])D','[^o`]','$1্ড'], |
| 36 | +['([গষহ])N','[^o`]','$1্ণ'], |
| 37 | +['([কতনপশসহ])t','[^o`]','$1্ত'], |
| 38 | +['([দনব])d','[^o`]','$1্দ'], |
| 39 | +['([গঘণতধনপমশসহ])n','[^o`]','$1্ন'], |
| 40 | +['([পমলস])p','[^o`]','$1্প'], |
| 41 | +['([বমল])b','[^o`]','$1্ব'], |
| 42 | +['([দম])(v|V)','[^o`]','$1্ভ'], |
| 43 | +['([কগঙটণতদধনমলশষসহ])m','[^o`]','$1্ম'], |
| 44 | +['([ক-ঘচ-ঝট-যলশ-হড়ঢ়য়])r','[^o`]','$1্ৰ'], |
| 45 | +['([কগপ-বমলশসহ])l','[^o`]','$1্ল'], |
| 46 | +['([কনপ])s','[^o`]','$1্স'], |
| 47 | +['([ক-হড়ঢ়য়ৰ])w','[^o`]','$1্ব'], |
| 48 | +['([ক-হড়ঢ়য়ৰ])y','[^o`]','$1্য'], |
| 49 | +['নc','[^o`]','ঞ্চ'], |
| 50 | + |
| 51 | +['ত`','`' ,'ৎ'], |
| 52 | + |
| 53 | +['ক্ক(h|H)','[^o`]','ক্ষ'], |
| 54 | +['কশ(h|H)','[^o`]','ক্ষ'], |
| 55 | +//'([অ-ঔা-ৌ])ৰৰk','[^o]','$1র্ক'], |
| 56 | + |
| 57 | +['ৰৰk','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ক'], |
| 58 | +['ৰৰg','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্গ'], |
| 59 | +['ৰৰc','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্চ'], |
| 60 | +['ৰৰj','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্জ'], |
| 61 | +['ৰৰT','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ট'], |
| 62 | +['ৰৰD','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ড'], |
| 63 | +['ৰৰN','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ণ'], |
| 64 | +['ৰৰt','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ত'], |
| 65 | +['ৰৰd','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্দ'], |
| 66 | +['ৰৰn','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ন'], |
| 67 | +['ৰৰp','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্প'], |
| 68 | +['ৰৰf','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ফ'], |
| 69 | +['ৰৰb','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ব'], |
| 70 | +['ৰৰv','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ভ'], |
| 71 | +['ৰৰm','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ম'], |
| 72 | +['ৰৰz','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্য'], |
| 73 | +['ৰৰl','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ল'], |
| 74 | +['ৰৰS','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্শ'], |
| 75 | +['ৰৰs','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্স'], |
| 76 | +['ৰৰh','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্হ'], |
| 77 | +['ৰৰR','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্ড়'], |
| 78 | +['ৰৰ(y|Y)','(o|a|i|I|u|U|e|O|OI|OU|rri)rr','র্য়'], |
| 79 | + |
| 80 | +['শ(h|H)','S', 'ষ'], |
| 81 | + |
| 82 | +['অo','[^`]', 'উ'], |
| 83 | +['এe','[^o`]', 'ঈ'], |
| 84 | + |
| 85 | +['কh','[^o`]', 'খ'], |
| 86 | +['গh','[^o`]', 'ঘ'], |
| 87 | +['ণg','[^o`]', 'ঙ'], |
| 88 | +['চh','[^o`]', 'ছ'], |
| 89 | +['জh','[^o`]', 'ঝ'], |
| 90 | +['ণG','[^o`]', 'ঞ'], |
| 91 | +['টh','[^o`]', 'ঠ'], |
| 92 | +['ডh','[^o`]', 'ঢ'], |
| 93 | +['তh','[^o`]', 'থ'], |
| 94 | +['দh','[^o`]', 'ধ'], |
| 95 | +['পh','[^o`]', 'ফ'], |
| 96 | +['বh','[^o`]', 'ভ'], |
| 97 | +['(সh)','[^o`]', 'শ'], |
| 98 | +['ড়h','[^o`]', 'ঢ়'], |
| 99 | +['ত্`','[^o`]', 'ৎ'], |
| 100 | +['নg','[^o`]', 'ং'], |
| 101 | +['ঃ`','[^o`]', ':'], |
| 102 | +['ৰৰi','[^o`]', 'ঋ'], |
| 103 | +['ওI','[^o`]', 'ঐ'], |
| 104 | +['ওU','[^o`]', 'ঔ'], |
| 105 | + |
| 106 | +['(k|K)','' ,'ক'], |
| 107 | +['(g|G)','' ,'গ'], |
| 108 | +['(c|C)','' ,'চ'], |
| 109 | +['j','' ,'জ'], |
| 110 | +['T','' ,'ট'], |
| 111 | +['D','' ,'ড'], |
| 112 | +['N','' ,'ণ'], |
| 113 | +['t','' ,'ত'], |
| 114 | +['d','' ,'দ'], |
| 115 | +['n','' ,'ন'], |
| 116 | +['(p|P)','' ,'প'], |
| 117 | +['f','' ,'ফ'], |
| 118 | +['(b|B)','' ,'ব'], |
| 119 | +['(v|V)','' ,'ভ'], |
| 120 | +['(m|M)','' ,'ম'], |
| 121 | +['z','' ,'য'], |
| 122 | +['r','' ,'ৰ'], |
| 123 | +['(l|L)','' ,'ল'], |
| 124 | +['S','' ,'শ'], |
| 125 | +['s','' ,'স'], |
| 126 | +['(h|H)','' ,'হ'], |
| 127 | +['R','' ,'ড়'], |
| 128 | +['(y|Y)','' ,'য়'], |
| 129 | + |
| 130 | +['Z','' ,'্য'], |
| 131 | + |
| 132 | +['o','' ,'অ'], |
| 133 | +['(a|A)','' ,'আ'], |
| 134 | +['i','' ,'ই'], |
| 135 | +['I','' ,'ঈ'], |
| 136 | +['u','' ,'উ'], |
| 137 | +['U','' ,'ঊ'], |
| 138 | +['e','' ,'এ'], |
| 139 | +['O','' ,'ও'], |
| 140 | + |
| 141 | +['0','' ,'০'], |
| 142 | +['1','' ,'১'], |
| 143 | +['2','' ,'২'], |
| 144 | +['3','' ,'৩'], |
| 145 | +['4','' ,'৪'], |
| 146 | +['5','' ,'৫'], |
| 147 | +['6','' ,'৬'], |
| 148 | +['7','' ,'৭'], |
| 149 | +['8','' ,'৮'], |
| 150 | +['9','' ,'৯'], |
| 151 | + |
| 152 | +['\\\\\\.','' ,'.'], |
| 153 | + |
| 154 | +[',,','' ,'্'], |
| 155 | +['\\:','' ,'ঃ'], |
| 156 | +['\\^','' ,'ঁ'], |
| 157 | +['\\.','' ,'।'], |
| 158 | +['\\$','' ,'৳'], |
| 159 | +['ঃ`','' ,':'], |
| 160 | +['`','' ,''] |
| 161 | +]; |
| 162 | + |
| 163 | +jQuery.narayam.addScheme( 'as-avro', { |
| 164 | + 'namemsg': 'narayam-as-avro', |
| 165 | + 'extended_keyboard': false, |
| 166 | + 'lookbackLength': 4, |
| 167 | + 'keyBufferLength': 2, |
| 168 | + 'rules': rules |
| 169 | +} ); |
\ No newline at end of file |
Index: trunk/extensions/Narayam/Narayam.php |
— | — | @@ -44,6 +44,12 @@ |
45 | 45 | // Array mapping language codes and scheme names to module names |
46 | 46 | // Custom schemes can be added here |
47 | 47 | $wgNarayamSchemes = array( |
| 48 | + 'as' => array( |
| 49 | + 'as' => 'ext.narayam.rules.as', |
| 50 | + 'as-avro' => 'ext.narayam.rules.as-avro', |
| 51 | + 'as-bornona' => 'ext.narayam.rules.as-bornona', |
| 52 | + 'as-inscript' => 'ext.narayam.rules.as-inscript', |
| 53 | + ), |
48 | 54 | 'bn' => array( |
49 | 55 | 'bn-avro' => 'ext.narayam.rules.bn-avro', |
50 | 56 | 'bn-inscript' => 'ext.narayam.rules.bn-inscript', |
— | — | @@ -140,6 +146,26 @@ |
141 | 147 | ), |
142 | 148 | 'dependencies' => array( 'mediawiki.util', 'jquery.textSelection' ), |
143 | 149 | ); |
| 150 | +$wgResourceModules['ext.narayam.rules.as'] = $narayamTpl + array( |
| 151 | + 'scripts' => 'js/ext.narayam.rules.as.js', |
| 152 | + 'messages' => array( 'narayam-as' ), |
| 153 | + 'dependencies' => 'ext.narayam.core', |
| 154 | +); |
| 155 | +$wgResourceModules['ext.narayam.rules.as-avro'] = $narayamTpl + array( |
| 156 | + 'scripts' => 'js/ext.narayam.rules.as-avro.js', |
| 157 | + 'messages' => array( 'narayam-as-avro' ), |
| 158 | + 'dependencies' => 'ext.narayam.core', |
| 159 | +); |
| 160 | +$wgResourceModules['ext.narayam.rules.as-bornona'] = $narayamTpl + array( |
| 161 | + 'scripts' => 'js/ext.narayam.rules.as-bornona.js', |
| 162 | + 'messages' => array( 'narayam-as-bornona' ), |
| 163 | + 'dependencies' => 'ext.narayam.core', |
| 164 | +); |
| 165 | +$wgResourceModules['ext.narayam.rules.as-inscript'] = $narayamTpl + array( |
| 166 | + 'scripts' => 'js/ext.narayam.rules.as-inscript.js', |
| 167 | + 'messages' => array( 'narayam-as-inscript' ), |
| 168 | + 'dependencies' => 'ext.narayam.core', |
| 169 | +); |
144 | 170 | $wgResourceModules['ext.narayam.rules.bn-avro'] = $narayamTpl + array( |
145 | 171 | 'scripts' => 'js/ext.narayam.rules.bn-avro.js', |
146 | 172 | 'messages' => array( 'narayam-bn-avro' ), |