Index: trunk/extensions/Narayam/tests/qunit/ext.narayam.rules.tests.js |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | tests: [], |
50 | 50 | scheme: '' // The input method name. |
51 | 51 | }, options ); |
52 | | - |
| 52 | + |
53 | 53 | test( opt.description, function() { |
54 | 54 | expect( opt.tests.length ); |
55 | 55 | $.narayam.enable(); |
— | — | @@ -57,7 +57,7 @@ |
58 | 58 | opt.$input.appendTo( '#qunit-fixture' ); |
59 | 59 | $.narayam.addInputs( opt.$input ); |
60 | 60 | $.narayam.setScheme( opt.scheme ); |
61 | | - for ( var i= 0 ; i < opt.tests.length; i++ ) { |
| 61 | + for ( var i = 0 ; i < opt.tests.length; i++ ) { |
62 | 62 | // Simulate pressing keys for each of the sample characters |
63 | 63 | typeChars( opt.$input, opt.tests[i].input ); |
64 | 64 | equals( opt.$input.val(), opt.tests[i].output, opt.tests[i].description ); |
— | — | @@ -93,21 +93,31 @@ |
94 | 94 | } ); |
95 | 95 | |
96 | 96 | narayamTest( { |
97 | | - description: 'Oriya Inscript test', |
| 97 | + description: 'Telugu Transliteration test', |
| 98 | + tests: [ |
| 99 | + { input: 'c', output: 'చ్', description: 'Telugu c' }, |
| 100 | + { input: 'ch', output: 'చ్', description: 'Telugu ch' } |
| 101 | + ], |
| 102 | + scheme: 'te', |
| 103 | + $input: $( '<input>' ).attr( { id: 'te', type: 'text' } ) |
| 104 | +} ); |
| 105 | + |
| 106 | +narayamTest( { |
| 107 | + description: 'Oriya InScript test', |
98 | 108 | tests: [{ input: 'ka', output: 'କୋ' }], |
99 | 109 | scheme: 'or-inscript', |
100 | 110 | $input: $( '<input>' ).attr( { id: 'or', type: 'text' } ) |
101 | 111 | } ); |
102 | 112 | |
103 | 113 | narayamTest( { |
104 | | - description: 'Malayalam Inscript test', |
| 114 | + description: 'Malayalam InScript test', |
105 | 115 | tests: [{ input: 'ka', output: 'കോ' }], |
106 | 116 | scheme: 'ml-inscript', |
107 | 117 | $input: $( '<input>' ).attr( { id: 'ml-inscript', type: 'text' } ) |
108 | 118 | } ); |
109 | 119 | |
110 | 120 | narayamTest( { |
111 | | - description: 'Tamil Inscript test', |
| 121 | + description: 'Tamil InScript test', |
112 | 122 | tests: [ |
113 | 123 | { input: 'ka', output: 'கோ', description: 'Tamil Inscript கோ' } |
114 | 124 | ], |
Index: trunk/extensions/Narayam/resources/ext.narayam.rules.te.js |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | * License: GPLv3, CC-BY-SA 3.0 |
10 | 10 | */ |
11 | 11 | |
12 | | - // Normal rules |
| 12 | +// Normal rules |
13 | 13 | var rules = [ |
14 | 14 | // handle sunna for n and m |
15 | 15 | ['(మ్|న్)b', '', 'ంబ్'], |