Index: branches/wmf/1.18wmf1/skins/common/shared.css |
— | — | @@ -685,6 +685,25 @@ |
686 | 686 | background-repeat: no-repeat; |
687 | 687 | } |
688 | 688 | |
| 689 | +/* Language specific height correction for titles. Ref Bug 29405 and Bug 30809 */ |
| 690 | +/* Languages like hi or ml require slightly more vertical space to show diacritics properly */ |
| 691 | +h1:lang(hi), |
| 692 | +h1:lang(ml) { |
| 693 | + line-height: 1.5em; |
| 694 | +} |
| 695 | +h2:lang(hi), |
| 696 | +h2:lang(ml), |
| 697 | +h3:lang(hi), |
| 698 | +h3:lang(ml), |
| 699 | +h4:lang(hi), |
| 700 | +h4:lang(ml), |
| 701 | +h5:lang(hi), |
| 702 | +h5:lang(ml), |
| 703 | +h6:lang(hi), |
| 704 | +h6:lang(ml) { |
| 705 | + line-height: 1.2em; |
| 706 | +} |
| 707 | + |
689 | 708 | /* Localised ordered list numbering for some languages */ |
690 | 709 | ol:lang(bcc) li, |
691 | 710 | ol:lang(bqi) li, |
Index: branches/wmf/1.18wmf1/extensions/Narayam/Narayam.hooks.php |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | } |
41 | 41 | |
42 | 42 | public static function addVariables( &$vars ) { |
43 | | - global $wgUser; |
| 43 | + global $wgUser, $wgNarayamSchemes; |
44 | 44 | |
45 | 45 | if ( $wgUser->getOption( 'narayamDisable' ) ) { |
46 | 46 | // User disabled Narayam |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | } |
49 | 49 | |
50 | 50 | $vars['wgNarayamAvailableSchemes'] = self::getSchemes(); // Note: scheme names must be keys, not values |
51 | | - |
| 51 | + $vars['wgNarayamAllSchemes'] = $wgNarayamSchemes; |
52 | 52 | $vars['wgNarayamHelpPage'] = wfMsgForContent( 'narayam-help-page' ); |
53 | 53 | return true; |
54 | 54 | } |
— | — | @@ -57,15 +57,29 @@ |
58 | 58 | * @return array( scheme name => module name ) |
59 | 59 | */ |
60 | 60 | protected static function getSchemes() { |
61 | | - global $wgLanguageCode, $wgLang, $wgNarayamSchemes; |
| 61 | + global $wgLanguageCode, $wgLang, $wgNarayamSchemes, $wgRequest; |
62 | 62 | |
63 | 63 | $userlangCode = $wgLang->getCode(); |
64 | 64 | $contlangSchemes = isset( $wgNarayamSchemes[$wgLanguageCode] ) ? |
65 | 65 | $wgNarayamSchemes[$wgLanguageCode] : array(); |
66 | 66 | $userlangSchemes = isset( $wgNarayamSchemes[$userlangCode] ) ? |
67 | 67 | $wgNarayamSchemes[$userlangCode] : array(); |
| 68 | + |
| 69 | + $schemes = $userlangSchemes + $contlangSchemes; |
| 70 | + |
| 71 | + // Get user selected scheme from cookie |
| 72 | + $lastScheme = $wgRequest->getCookie( 'narayam-scheme', '', null ); |
| 73 | + // If user selected scheme is not in the array of schemes to be loaded |
| 74 | + // Add it |
| 75 | + if ( $lastScheme && !array_key_exists( $lastScheme, $schemes ) ) { |
| 76 | + // scheme names are of patten <language-code>[-<some-name>] |
| 77 | + list( $lastSchemeLanguageCode ) = explode( '-', $lastScheme, 2 ); |
| 78 | + if ( isset( $wgNarayamSchemes[$lastSchemeLanguageCode][$lastScheme] ) ) { |
| 79 | + $schemes[$lastScheme] = $wgNarayamSchemes[$lastSchemeLanguageCode][$lastScheme]; |
| 80 | + } |
| 81 | + } |
68 | 82 | |
69 | | - return $userlangSchemes + $contlangSchemes; |
| 83 | + return $schemes; |
70 | 84 | } |
71 | 85 | |
72 | 86 | public static function addPreference( $user, &$preferences ) { |
Index: branches/wmf/1.18wmf1/extensions/Narayam/images/open.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes on: branches/wmf/1.18wmf1/extensions/Narayam/images/open.png |
___________________________________________________________________ |
Added: svn:mime-type |
73 | 87 | + application/octet-stream |
Index: branches/wmf/1.18wmf1/extensions/Narayam/images/closed-ltr.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes on: branches/wmf/1.18wmf1/extensions/Narayam/images/closed-ltr.png |
___________________________________________________________________ |
Added: svn:mime-type |
74 | 88 | + application/octet-stream |
Index: branches/wmf/1.18wmf1/extensions/Narayam/images/closed-rtl.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes on: branches/wmf/1.18wmf1/extensions/Narayam/images/closed-rtl.png |
___________________________________________________________________ |
Added: svn:mime-type |
75 | 89 | + application/octet-stream |
Index: branches/wmf/1.18wmf1/extensions/Narayam/css/ext.narayam.core.css |
— | — | @@ -139,3 +139,16 @@ |
140 | 140 | /* @embed */ |
141 | 141 | background: url('../images/narayam-inactive.png') no-repeat scroll left top transparent; |
142 | 142 | } |
| 143 | + |
| 144 | +li.narayam-more-imes-link{ |
| 145 | + /* @embed */ |
| 146 | + background: url('../images/closed-ltr.png') no-repeat scroll left center transparent; |
| 147 | +} |
| 148 | + |
| 149 | +li.narayam-more-imes-link.open{ |
| 150 | + /* @embed */ |
| 151 | + background: url('../images/open.png') no-repeat scroll left center transparent; |
| 152 | +} |
| 153 | +li.narayam-more-imes-link a{ |
| 154 | + padding-left:10px; |
| 155 | +} |
Index: branches/wmf/1.18wmf1/extensions/Narayam/Narayam.i18n.php |
— | — | @@ -22,6 +22,8 @@ |
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-more-imes' => 'More input methods', |
| 27 | + 'narayam-am' => 'Amharic Transliteration', |
26 | 28 | 'narayam-as' => 'Assamese Transliteration', |
27 | 29 | 'narayam-as-avro' => 'Assamese Avro', |
28 | 30 | 'narayam-as-bornona' => 'Assamese Bornona', |
— | — | @@ -40,8 +42,9 @@ |
41 | 43 | 'narayam-sa-inscript' => 'Sanskrit InScript', |
42 | 44 | 'narayam-si-singlish' => 'Sinhala Singlish', |
43 | 45 | 'narayam-si-wijesekara' => 'Sinhala Wijesekara', |
44 | | - 'narayam-ta99' => 'Tamil99', |
| 46 | + 'narayam-ta-99' => 'Tamil99', |
45 | 47 | 'narayam-ta' => 'Tamil Transliteration', |
| 48 | + 'narayam-ta-bamini' => 'Tamil Bamini', |
46 | 49 | 'narayam-te-inscript' => 'Telugu InScript', |
47 | 50 | 'narayam-bn-avro' => 'Bengali Avro', |
48 | 51 | 'narayam-bn-inscript' => 'Bengali InScript', |
— | — | @@ -80,7 +83,7 @@ |
81 | 84 | 'narayam-sa-inscript' => '[[w:InScript|InScript]] keyboard layout for the Sanskrit language.', |
82 | 85 | 'narayam-si-singlish' => 'Singlish keyboard layout for the Sinhala language.', |
83 | 86 | 'narayam-si-wijesekara' => 'Wijesekara keyboard layout for the Sinhala language.', |
84 | | - 'narayam-ta99' => 'Tamil 99 keyboard layout for the Tamil language.', |
| 87 | + 'narayam-ta-99' => 'Tamil 99 keyboard layout for the Tamil language.', |
85 | 88 | 'narayam-ta' => 'Transliteration scheme for the Tamil language.', |
86 | 89 | 'narayam-te-inscript' => '[[w:InScript|InScript]] keyboard layout for the [[w:Telugu language|Telugu language]].', |
87 | 90 | 'narayam-bn-avro' => 'Avro keyboard layout for the Bengali language.', |
Index: branches/wmf/1.18wmf1/extensions/Narayam/js/ext.narayam.rules.ta99.js |
— | — | @@ -1,191 +0,0 @@ |
2 | | -/** |
3 | | - * Regular expression rules table for Tamil 99 input method |
4 | | - * @author Junaid P V ([[user:Junaidpv]]) |
5 | | - * @date 2010-11-20 |
6 | | - * License: GPLv3, CC-BY-SA 3.0 |
7 | | - */ |
8 | | - |
9 | | - // Normal rules |
10 | | -var rules = [ |
11 | | -['([க-ஹ])h','a', '$1க'], |
12 | | -['([க-ஹ])b','a', '$1ங'], |
13 | | -['([க-ஹ])\\[','a', '$1ச'], |
14 | | -['([க-ஹ])E','a', '$1ஜ'], |
15 | | -['([க-ஹ])\\]','a', '$1ஞ'], |
16 | | -['([க-ஹ])o','a', '$1ட'], |
17 | | -['([க-ஹ])p','a', '$1ண'], |
18 | | -['([க-ஹ])l','a', '$1த'], |
19 | | -['([க-ஹ]);','a', '$1ந'], |
20 | | -['([க-ஹ])i','a', '$1ன'], |
21 | | -['([க-ஹ])j','a', '$1ப'], |
22 | | -['([க-ஹ])k','a', '$1ம'], |
23 | | -["([க-ஹ])'",'a', '$1ய'], |
24 | | -['([க-ஹ])m','a', '$1ர'], |
25 | | -['([க-ஹ])u','a', '$1ற'], |
26 | | -['([க-ஹ])n','a', '$1ல'], |
27 | | -['([க-ஹ])y','a', '$1ள'], |
28 | | -['([க-ஹ])/','a', '$1ழ'], |
29 | | -['([க-ஹ])v','a', '$1வ'], |
30 | | -// void |
31 | | -['([க-ஹ])W','a', '$1ஷ'], |
32 | | -['([க-ஹ])Q','a', '$1ஸ'], |
33 | | -['([க-ஹ])R','a', '$1ஹ'], |
34 | | - |
35 | | - |
36 | | -['க்கh', '','க்கக'], |
37 | | -['ங்ஙb', '','ங்ஙங'], |
38 | | -['ச்ச\\[', '','ச்சச'], |
39 | | -['ஜ்ஜE', '','ஜ்ஜஜ'], |
40 | | -['ஞ்ஞ\\]', '','ஞ்ஞஞ'], |
41 | | -['ட்டo', '','ட்டட'], |
42 | | -['ண்ணp', '','ண்ணண'], |
43 | | -['த்தl', '','த்தத'], |
44 | | -['ந்ந;', '','ந்நந'], |
45 | | -['ன்னi', '','ன்னன'], |
46 | | -['ப்பj', '','ப்பப'], |
47 | | -['ம்மk', '','ம்மம'], |
48 | | -["ய்ய'", '','ய்யய'], |
49 | | -['ர்ரm', '','ர்ரர'], |
50 | | -['ற்றu', '','ற்றற'], |
51 | | -['ல்லn', '','ல்லல'], |
52 | | -['ள்ளy', '','ள்ளள'], |
53 | | -['ழ்ழ/', '','ழ்ழழ'], |
54 | | -['வ்வv', '','வ்வவ'], |
55 | | -// void |
56 | | -['ஷ்ஷW', '','ஷ்ஷஷ'], |
57 | | -['ஸ்ஸQ', '','ஸ்ஸஸ'], |
58 | | -['ஹ்ஹR', '','ஹ்ஹஹ'], |
59 | | - |
60 | | -['([க-ஹ])q', '','$1ா'], |
61 | | -['([க-ஹ])s', '','$1ி'], |
62 | | -['([க-ஹ])w', '','$1ீ'], |
63 | | -['([க-ஹ])d', '','$1ு'], |
64 | | -['([க-ஹ])e', '','$1ூ'], |
65 | | -['([க-ஹ])g', '','$1ெ'], |
66 | | -['([க-ஹ])t', '','$1ே'], |
67 | | -['([க-ஹ])r', '','$1ை'], |
68 | | -['([க-ஹ])c', '','$1ொ'], |
69 | | -['([க-ஹ])x', '','$1ோ'], |
70 | | -['([க-ஹ])z', '','$1ௌ'], |
71 | | - |
72 | | -['([க-ஹ])a', '','$1'], |
73 | | - |
74 | | -['கh', '','க்க'], |
75 | | -['ஙb', '','ங்ங'], |
76 | | -['ச\\[', '','ச்ச'], |
77 | | -['ஜE', '','ஜ்ஜ'], |
78 | | -['ஞ\\]', '','ஞ்ஞ'], |
79 | | -['டo', '','ட்ட'], |
80 | | -['ணp', '','ண்ண'], |
81 | | -['தl', '','த்த'], |
82 | | -['ந;', '','ந்ந'], |
83 | | -['னi', '','ன்ன'], |
84 | | -['பj', '','ப்ப'], |
85 | | -['மk', '','ம்ம'], |
86 | | -["ய'", '','ய்ய'], |
87 | | -['ரm', '','ர்ர'], |
88 | | -['றu', '','ற்ற'], |
89 | | -['லn', '','ல்ல'], |
90 | | -['ளy', '','ள்ள'], |
91 | | -['ழ/', '','ழ்ழ'], |
92 | | -['வv', '','வ்வ'], |
93 | | -// void |
94 | | -['ஷW', '','ஷ்ஷ'], |
95 | | -['ஸQ', '','ஸ்ஸ'], |
96 | | -['ஹR', '','ஹ்ஹ'], |
97 | | - |
98 | | -['நl', '','ந்த'], |
99 | | -['ஙh', '','ங்க'], |
100 | | -['னu', '','ன்ற'], |
101 | | -['ணo', '','ண்ட'], |
102 | | -['ஞ\\[', '','ஞ்ச'], |
103 | | -['மj', '','ம்ப'], |
104 | | - |
105 | | -['q', '','ஆ'], |
106 | | -['w', '','ஈ'], |
107 | | -['e', '','ஊ'], |
108 | | -['r', '','ஐ'], |
109 | | -['t', '','ஏ'], |
110 | | -['y', '','ள'], |
111 | | -['u', '','ற'], |
112 | | -['i', '','ன'], |
113 | | -['o', '','ட'], |
114 | | -['p', '','ண'], |
115 | | -['\\[', '','ச'], |
116 | | -['\\]', '','ஞ'], |
117 | | - |
118 | | -['a', '','அ'], |
119 | | -['s', '','இ'], |
120 | | -['d', '','உ'], |
121 | | -['f', '','்'], |
122 | | -['g', '','எ'], |
123 | | -['h', '','க'], |
124 | | -['j', '','ப'], |
125 | | -['k', '','ம'], |
126 | | -['l', '','த'], |
127 | | -[';', '','ந'], |
128 | | -["'", '','ய'], |
129 | | - |
130 | | -['z', '','ஔ'], |
131 | | -['x', '','ஓ'], |
132 | | -['c', '','ஒ'], |
133 | | -['v', '','வ'], |
134 | | -['b', '','ங'], |
135 | | -['n', '','ல'], |
136 | | -['m', '','ர'], |
137 | | -//',', '','ஆ'], |
138 | | -//'\\.', '','ஆ'], |
139 | | -['/', '','ழ'], |
140 | | - |
141 | | -['Q', '','ஸ'], |
142 | | -['W', '','ஷ'], |
143 | | -['E', '','ஜ'], |
144 | | -['R', '','ஹ'], |
145 | | -['T', '','க்ஷ'], |
146 | | -['Y', '','ஸ்ரீ'], |
147 | | -['U', '','ற'], |
148 | | -['I', '','ன'], |
149 | | -['O', '','['], |
150 | | -['P', '',']'], |
151 | | -//'\\{', '','ஆ'], |
152 | | -//'\\}', '','ஆ'], |
153 | | - |
154 | | -['A', '','௹'], |
155 | | -['S', '','௺'], |
156 | | -['D', '','௸'], |
157 | | -['F', '','ஃ'], |
158 | | -['G', '','எ'], |
159 | | -['H', '','க'], |
160 | | -['J', '','ப'], |
161 | | -['K', '','"'], |
162 | | -['L', '',':'], |
163 | | -['\\:', '',';'], |
164 | | -['"', '',"'"], |
165 | | - |
166 | | -['Z', '','௳'], |
167 | | -['X', '','௴'], |
168 | | -['C', '','௵'], |
169 | | -['V', '','௶'], |
170 | | -['B', '','௷'], |
171 | | -['N', '','ல'], |
172 | | -['M', '','/'], |
173 | | - |
174 | | -['\\\\0', '','\u0be6'], |
175 | | -['\\\\1', '','௧'], |
176 | | -['\\\\2', '','௨'], |
177 | | -['\\\\3', '','௩'], |
178 | | -['\\\\4', '','௪'], |
179 | | -['\\\\5', '','௫'], |
180 | | -['\\\\6', '','௬'], |
181 | | -['\\\\7', '','௭'], |
182 | | -['\\\\8', '','௮'], |
183 | | -['\\\\9', '','௯'] |
184 | | -]; |
185 | | - |
186 | | -jQuery.narayam.addScheme( 'ta99', { |
187 | | - 'namemsg': 'narayam-ta99', |
188 | | - 'extended_keyboard': false, |
189 | | - 'lookbackLength': 4, |
190 | | - 'keyBufferLength': 1, |
191 | | - 'rules': rules |
192 | | -} ); |
Index: branches/wmf/1.18wmf1/extensions/Narayam/js/ext.narayam.rules.am.js |
— | — | @@ -0,0 +1,442 @@ |
| 2 | +/** |
| 3 | + * Trasliteration regular expression rules table for Amharic script |
| 4 | + * @author Junaid P V ([[user:Junaidpv]]) |
| 5 | + * @date 2011-10-08 |
| 6 | + * @credits Referring http://www.lexilogos.com/keyboard/amharic.htm and helps from Sisay |
| 7 | + * License: GPLv3 |
| 8 | + */ |
| 9 | + |
| 10 | +var rules = [ |
| 11 | +['\\\\([A-Za-z\\>\\<_~ ])','\\\\','$1'], // include space also |
| 12 | + |
| 13 | +['፼0', '', '፲፼'], // 10000 and 0 becomes 10 10000 |
| 14 | +['፲፻0', '', '፼'], // 10x100 and 0 becomes 10000 |
| 15 | +['፻0', '', '፲፻'], // NUM_100 and 0 becomes 10 and 100 |
| 16 | + |
| 17 | +['፻0', '', '፲፻'], // 1000 |
| 18 | + |
| 19 | +['፳0', '', '፪፻'], // 200 |
| 20 | +['፴0', '', '፫፻'], // 300 |
| 21 | +['፵0', '', '፬፻'], // 400 |
| 22 | +['፶0', '', '፭፻'], // 500 |
| 23 | +['፷0', '', '፮፻'], // 600 |
| 24 | +['፸0', '', '፯፻'], // 700 |
| 25 | +['፹0', '', '፰፻'], // 800 |
| 26 | +['፺0', '', '፱፻'], // 900 |
| 27 | + |
| 28 | +['ጕe', '', 'ጐ'], // gwe |
| 29 | +['ጕi', '', 'ጒ'], // gwi |
| 30 | +// removed |
| 31 | +['ጐe', '', 'ጔ'], // gwee |
| 32 | + |
| 33 | +['ዅe', '', 'ዀ'], // kxwe |
| 34 | +['ዅi', '', 'ዂ'], // kxwi |
| 35 | +['(ኻ|ኹ|ዅ)a', '', 'ዃ'], // kxwa |
| 36 | +['ዀe', '', 'ዄ'], // kxwee |
| 37 | + |
| 38 | +['ኵe', '', 'ኰ'], // kwe |
| 39 | +['ኵi', '', 'ኲ'], // kwi |
| 40 | +// removed |
| 41 | +['ኰe', '', 'ኴ'], // kwee |
| 42 | + |
| 43 | +['ኍe', '', 'ኈ'], // xwe |
| 44 | +['ኍi', '', 'ኊ'], // xwi |
| 45 | +// removed |
| 46 | +['ኈe', '', 'ኌ'], // xwee |
| 47 | + |
| 48 | +['ቝe', '', 'ቘ'], // qhwe |
| 49 | +['ቝi', '', 'ቚ'], // qhwi |
| 50 | +['ቝa', '', 'ቛ'], // qhwa |
| 51 | +['ቘe', '', 'ቜ'], // qhwee |
| 52 | + |
| 53 | +['ቍe', '', 'ቈ'], // qwe |
| 54 | +['ቍi', '', 'ቊ'], // qwi |
| 55 | +// removed |
| 56 | +['ቈe', '', 'ቌ'], // qwee |
| 57 | + |
| 58 | +['ፕe', '', 'ፐ'], // pe |
| 59 | +['ፕu', '', 'ፑ'], // pu |
| 60 | +['ፕi', '', 'ፒ'], // pi |
| 61 | +['ፕa', '', 'ፓ'], // pa |
| 62 | +['(ፓ|ፐ|ፒ)e', '', 'ፔ'], // pee |
| 63 | +['ፕo', '', 'ፖ'], // po |
| 64 | +['(ፓ|ፑ|ፕው)a', '', 'ፗ'], // paa or pua or pwa |
| 65 | + |
| 66 | +['ፍe', '', 'ፈ'], // fe |
| 67 | +['ፍu', '', 'ፉ'], // fu |
| 68 | +['ፍi', '', 'ፊ'], // fi |
| 69 | +['ፍa', '', 'ፋ'], // fa |
| 70 | +['(ፋ|ፈ|ፊ)e', '', 'ፌ'], // fee |
| 71 | +['ፍo', '', 'ፎ'], // fo |
| 72 | +['(ፋ|ፉ|ፍው)a', '', 'ፏ'], // faa or fua or fwa |
| 73 | + |
| 74 | +['ፅe', '', 'ፀ'], // tze |
| 75 | +['ፅu', '', 'ፁ'], // tzu |
| 76 | +['ፅi', '', 'ፂ'], // tzi |
| 77 | +['ፅa', '', 'ፃ'], // tza |
| 78 | +['(ፃ|ፀ|ፂ)e', '', 'ፄ'], // tzee |
| 79 | +['ፅo', '', 'ፆ'], // tzo |
| 80 | +['(ፃ|ፁ|ፅው)a', '', 'ፇ'], // tzaa or tzua or tzwa |
| 81 | + |
| 82 | +['ጽe', '', 'ጸ'], // tse |
| 83 | +['ጽu', '', 'ጹ'], // tsu |
| 84 | +['ጽi', '', 'ጺ'], // tsi |
| 85 | +['ጽa', '', 'ጻ'], // tsa |
| 86 | +['(ጻ|ጸ|ጺ)e', '', 'ጼ'], // tsee |
| 87 | +['ጽo', '', 'ጾ'], // tso |
| 88 | +['(ጻ|ጹ|ጽው)a', '', 'ጿ'], // tsaa or tsua or tswa |
| 89 | + |
| 90 | +['ጵe', '', 'ጰ'], // phe or ppe (ph is alias for pp) |
| 91 | +['ጵu', '', 'ጱ'], // phu |
| 92 | +['ጵi', '', 'ጲ'], // phi |
| 93 | +['ጵa', '', 'ጳ'], // pha |
| 94 | +['(ጳ|ጰ|ጲ)e', '', 'ጴ'], // phee |
| 95 | +['ጵo', '', 'ጶ'], // pho |
| 96 | +['(ጳ|ጱ|ጵው)a', '', 'ጷ'], // phaa or phua or phwa |
| 97 | + |
| 98 | +['ጭe', '', 'ጨ'], // che |
| 99 | +['ጭu', '', 'ጩ'], // chu |
| 100 | +['ጭi', '', 'ጪ'], // chi |
| 101 | +['ጭa', '', 'ጫ'], // cha |
| 102 | +['(ጫ|ጨ|ጪ)e', '', 'ጬ'], // chee |
| 103 | +['ጭo', '', 'ጮ'], // cho |
| 104 | +['(ጫ|ጩ|ጭው)a', '', 'ጯ'], // chaa or chua or chwa |
| 105 | + |
| 106 | +['ጥe', '', 'ጠ'], // the or tte (th is alias for tt) |
| 107 | +['ጥu', '', 'ጡ'], // thu |
| 108 | +['ጥi', '', 'ጢ'], // thi |
| 109 | +['ጥa', '', 'ጣ'], // tha |
| 110 | +['(ጣ|ጠ|ጢ)e', '', 'ጤ'], // thee |
| 111 | +['ጥo', '', 'ጦ'], // tho |
| 112 | +['(ጣ|ጡ|ጥው)a', '', 'ጧ'], // thaa or thua or thwa |
| 113 | + |
| 114 | +['ጝe', '', 'ጘ'], // gge |
| 115 | +['ጝu', '', 'ጙ'], // ggu |
| 116 | +['ጝi', '', 'ጚ'], // ggi |
| 117 | +['ጝa', '', 'ጛ'], // gga |
| 118 | +['(ጛ|ጘ|ጚ)e', '', 'ጜ'], // ggee |
| 119 | +['ጝo', '', 'ጞ'], // ggo |
| 120 | +['(ጛ|ጙ|ጝው)a', '', 'ጟ'], // ggaa or ggua or ggwa |
| 121 | + |
| 122 | +['ግe', '', 'ገ'], // ge |
| 123 | +['ግu', '', 'ጉ'], // gu |
| 124 | +['ግi', '', 'ጊ'], // gi |
| 125 | +['ግa', '', 'ጋ'], // ga |
| 126 | +['(ጋ|ገ|ጊ)e', '', 'ጌ'], // gee |
| 127 | +['ግo', '', 'ጎ'], // go |
| 128 | +['(ጋ|ጉ|ጕ)a', '', 'ጓ'], // gaa or gua or gaa |
| 129 | + |
| 130 | +['ጅe', '', 'ጀ'], // je |
| 131 | +['ጅu', '', 'ጁ'], // ju |
| 132 | +['ጅi', '', 'ጂ'], // ji |
| 133 | +['ጅa', '', 'ጃ'], // ja |
| 134 | +['(ጃ|ጀ|ጂ)e', '', 'ጄ'], // jee |
| 135 | +['ጅo', '', 'ጆ'], // jo |
| 136 | +['(ጃ|ጁ|ጅው)a', '', 'ጇ'], // jaa or jua or jwa |
| 137 | + |
| 138 | +['ዽe', '', 'ዸ'], // dde |
| 139 | +['ዽu', '', 'ዹ'], // ddu |
| 140 | +['ዽi', '', 'ዺ'], // ddi |
| 141 | +['ዽa', '', 'ዻ'], // dda |
| 142 | +['(ዻ|ዸ|ዺ)e', '', 'ዼ'], // ddee |
| 143 | +['ዽo', '', 'ዾ'], // ddo |
| 144 | +['(ዻ|ዹ|ዽው)a', '', 'ዿ'], // ddaa or ddua or ddwa |
| 145 | + |
| 146 | +['ድe', '', 'ደ'], // de |
| 147 | +['ድu', '', 'ዱ'], // du |
| 148 | +['ድi', '', 'ዲ'], // di |
| 149 | +['ድa', '', 'ዳ'], // da |
| 150 | +['(ዳ|ደ|ዲ)e', '', 'ዴ'], // dee |
| 151 | +['ድo', '', 'ዶ'], // do |
| 152 | +['(ዳ|ዱ|ድው)a', '', 'ዷ'], // daa or dua or dwa |
| 153 | + |
| 154 | +['ይe', '', 'የ'], // ye |
| 155 | +['ይu', '', 'ዩ'], // yu |
| 156 | +['ይi', '', 'ዪ'], // yi |
| 157 | +['ይa', '', 'ያ'], // ya |
| 158 | +['(ያ|የ|ዪ)e', '', 'ዬ'], // yee |
| 159 | +['ይo', '', 'ዮ'], // yo |
| 160 | +['(ያ|ዩ|ይው)a', '', 'ዯ'], // yaa or yua or ywa |
| 161 | + |
| 162 | +['ዥe', '', 'ዠ'], // zhe or zze (zh is alias for zz) |
| 163 | +['ዥu', '', 'ዡ'], // zhu |
| 164 | +['ዥi', '', 'ዢ'], // zhi |
| 165 | +['ዥa', '', 'ዣ'], // zha |
| 166 | +['(ዣ|ዠ|ዢ)e', '', 'ዤ'], // zhee |
| 167 | +['ዥo', '', 'ዦ'], // zho |
| 168 | +['(ዣ|ዡ|ዥው)a', '', 'ዧ'], // zhaa or zhua or zhwa |
| 169 | + |
| 170 | +['ዝe', '', 'ዘ'], // ze |
| 171 | +['ዝu', '', 'ዙ'], // zu |
| 172 | +['ዝi', '', 'ዚ'], // zi |
| 173 | +['ዝa', '', 'ዛ'], // za |
| 174 | +['(ዛ|ዘ|ዚ)e', '', 'ዜ'], // zee |
| 175 | +['ዝo', '', 'ዞ'], // zo |
| 176 | +['(ዛ|ዙ|ዝው)a', '', 'ዟ'], // zaa or zua or zwa |
| 177 | + |
| 178 | +['ዕe', '', 'ዐ'], // "e |
| 179 | +['ዕu', '', 'ዑ'], // "u |
| 180 | +['ዕi', '', 'ዒ'], // "i |
| 181 | +['ዕa', '', 'ዓ'], // "a |
| 182 | +['(ዓ|ዐ|ዒ)e', '', 'ዔ'], // "ee |
| 183 | +['ዕo', '', 'ዖ'], // "o |
| 184 | + |
| 185 | +['ኽe', '', 'ኸ'], // kxe |
| 186 | +['ኽu', '', 'ኹ'], // kxu |
| 187 | +['ኽi', '', 'ኺ'], // kxi |
| 188 | +['ኽa', '', 'ኻ'], // kxa |
| 189 | +['(ኻ|ኸ|ኺ)e', '', 'ኼ'], // kxee |
| 190 | +['ኽo', '', 'ኾ'], // kxo |
| 191 | + |
| 192 | +['ክe', '', 'ከ'], // ke |
| 193 | +['ክu', '', 'ኩ'], // ku |
| 194 | +['ክi', '', 'ኪ'], // ki |
| 195 | +['ክa', '', 'ካ'], // ka |
| 196 | +['(ካ|ከ|ኪ)e', '', 'ኬ'], // kee |
| 197 | +['ክo', '', 'ኮ'], // ko |
| 198 | +['(ካ|ኩ|ኵ)a', '', 'ኳ'], // kaa or kua or kwa |
| 199 | + |
| 200 | +['እe', "'", 'አ'], // 'e |
| 201 | +['እu', "'", 'ኡ'], // 'u |
| 202 | +['እi', "'", 'ኢ'], // 'i |
| 203 | +['እa', "'", 'ኣ'], // 'a |
| 204 | +['አe', "'", 'ኤ'], // 'ee |
| 205 | +['እo', "'", 'ኦ'], // 'o |
| 206 | +['(ኣ|ኡ|እው)a', "'[auw]", 'ኧ'], // 'aa or 'ua or 'wa |
| 207 | + |
| 208 | +['ኝe', '', 'ኘ'], // Ne or nne (N is alias for nn) |
| 209 | +['ኝu', '', 'ኙ'], // Nu |
| 210 | +['ኝi', '', 'ኚ'], // Ni |
| 211 | +['ኝa', '', 'ኛ'], // Na |
| 212 | +['(ኛ|ኘ|ኚ)e', '', 'ኜ'], // Nee |
| 213 | +['ኝo', '', 'ኞ'], // No |
| 214 | +['(ኛ|ኙ|ኝው)a', '', 'ኟ'], // Naa or Nua or Nwa |
| 215 | + |
| 216 | +['ንe', '', 'ነ'], // ne |
| 217 | +['ንu', '', 'ኑ'], // nu |
| 218 | +['ንi', '', 'ኒ'], // ni |
| 219 | +['ንa', '', 'ና'], // na |
| 220 | +['(ና|ነ|ኒ)e', '', 'ኔ'], // nee |
| 221 | +['ንo', '', 'ኖ'], // no |
| 222 | +['(ና|ኑ|ንው)a', '', 'ኗ'], // naa or nua or nwa |
| 223 | + |
| 224 | +['ኅe', '', 'ኀ'], // xe |
| 225 | +['ኅu', '', 'ኁ'], // xu |
| 226 | +['ኅi', '', 'ኂ'], // xi |
| 227 | +['ኅa', '', 'ኃ'], // xa |
| 228 | +['(ኃ|ኀ|ኂ)e', '', 'ኄ'], // xee |
| 229 | +['ኅo', '', 'ኆ'], // xo |
| 230 | +['(ኃ|ኁ|ኍ)a', '', 'ኍ'], // xaa or xua or xwa |
| 231 | + |
| 232 | +['ችe', '', 'ቸ'], // ce |
| 233 | +['ችu', '', 'ቹ'], // cu |
| 234 | +['ችi', '', 'ቺ'], // ci |
| 235 | +['ችa', '', 'ቻ'], // ca |
| 236 | +['(ቻ|ቸ|ቺ)e', '', 'ቼ'], // cee |
| 237 | +['ችo', '', 'ቾ'], // co |
| 238 | +['(ቻ|ቹ|ችው)a', '', 'ቿ'], // caa or cua or cwa |
| 239 | + |
| 240 | +['ትe', '', 'ተ'], // te |
| 241 | +['ትu', '', 'ቱ'], // tu |
| 242 | +['ትi', '', 'ቲ'], // ti |
| 243 | +['ትa', '', 'ታ'], // ta |
| 244 | +['(ታ|ተ|ቲ)e', '', 'ቴ'], // tee |
| 245 | +['ትo', '', 'ቶ'], // to |
| 246 | +['(ታ|ቱ|ትው)a', '', 'ቷ'], // taa or tua or twa |
| 247 | + |
| 248 | +['ቭe', '', 'ቨ'], // ve |
| 249 | +['ቭu', '', 'ቩ'], // vu |
| 250 | +['ቭi', '', 'ቪ'], // vi |
| 251 | +['ቭa', '', 'ቫ'], // va |
| 252 | +['(ቫ|ቨ|ቪ)e', '', 'ቬ'], // vee |
| 253 | +['ቭo', '', 'ቮ'], // vo |
| 254 | +['(ቫ|ቩ|ቭው)a', '', 'ቯ'], // vaa or vua or vwa |
| 255 | + |
| 256 | +['ብe', '', 'በ'], // be |
| 257 | +['ብu', '', 'ቡ'], // bu |
| 258 | +['ብi', '', 'ቢ'], // bi |
| 259 | +['ብa', '', 'ባ'], // ba |
| 260 | +['(ባ|በ|ቢ)e', '', 'ቤ'], // bee |
| 261 | +['ብo', '', 'ቦ'], // bo |
| 262 | +['(ባ|ቡ|ብው)a', '', 'ቧ'], // baa or bua or bwa |
| 263 | + |
| 264 | +['ቕe', '', 'ቐ'], // qhe |
| 265 | +['ቕu', '', 'ቑ'], // qhu |
| 266 | +['ቕi', '', 'ቒ'], // qhi |
| 267 | +['ቕa', '', 'ቓ'], // qha |
| 268 | +['(ቓ|ቐ|ቒ)e', '', 'ቔ'], // qhee |
| 269 | +['ቕo', '', 'ቖ'], // qho |
| 270 | + |
| 271 | +['ቅe', '', 'ቀ'], // qe |
| 272 | +['ቅu', '', 'ቁ'], // qu |
| 273 | +['ቅi', '', 'ቂ'], // qi |
| 274 | +['ቅa', '', 'ቃ'], // qa |
| 275 | +['(ቃ|ቀ|ቂ)e', '', 'ቄ'], // qee |
| 276 | +['ቅo', '', 'ቆ'], // qo |
| 277 | +['(ቃ|ቁ|ቍ)a', '', 'ቋ'], // qaa or qua or qwa |
| 278 | + |
| 279 | +['ሽe', '', 'ሸ'], // she |
| 280 | +['ሽu', '', 'ሹ'], // shu |
| 281 | +['ሽi', '', 'ሺ'], // shi |
| 282 | +['ሽa', '', 'ሻ'], // sha |
| 283 | +['(ሻ|ሸ|ሺ)e', '', 'ሼ'], // shae,shee,shie |
| 284 | +['ሽo', '', 'ሾ'], // sho |
| 285 | +['(ሻ|ሹ|ሽው)a', '', 'ሿ'], // shaa or shua or shwa |
| 286 | + |
| 287 | +['ስe', '', 'ሰ'], // se |
| 288 | +['ስu', '', 'ሱ'], // su |
| 289 | +['ስi', '', 'ሲ'], // si |
| 290 | +['ስa', '', 'ሳ'], // sa |
| 291 | +['(ሳ|ሰ|ሲ)e', '', 'ሴ'], // sae,see,sie |
| 292 | +['ስo', '', 'ሶ'], // so |
| 293 | +['(ሳ|ሱ|ስው)a', '', 'ሷ'], // saa or sua or swa |
| 294 | + |
| 295 | +['ርe', '', 'ረ'], // re |
| 296 | +['ርu', '', 'ሩ'], // ru |
| 297 | +['ርi', '', 'ሪ'], // ri |
| 298 | +['ርa', '', 'ራ'], // ra |
| 299 | +['(ራ|ረ|ሪ)e', '', 'ሬ'], // rae,ree,rie |
| 300 | +['ርo', '', 'ሮ'], // ro |
| 301 | +['(ራ|ሩ|ርው)a', '', 'ሯ'], // raa or rua or rwa |
| 302 | + |
| 303 | +['ሥe', '', 'ሠ'], // sze or sse (sz is alias for ss) |
| 304 | +['ሥu', '', 'ሡ'], // szu |
| 305 | +['ሥi', '', 'ሢ'], // szi |
| 306 | +['ሥa', '', 'ሣ'], // sza |
| 307 | +['(ሣ|ሠ|ሢ)e', '', 'ሤ'], // szae,szee,szie |
| 308 | +['ሥo', '', 'ሦ'], // szo |
| 309 | +['(ሣ|ሡ|ሥው)a', '', 'ሧ'], // szaa or szua or szwa |
| 310 | + |
| 311 | +['ምe', '', 'መ'], // me |
| 312 | +['ምu', '', 'ሙ'], // mu |
| 313 | +['ምi', '', 'ሚ'], // mi |
| 314 | +['ምa', '', 'ማ'], // ma |
| 315 | +['(ማ|መ|ሚ)e', '', 'ሜ'], // mae,mee,mie |
| 316 | +['ምo', '', 'ሞ'], // mo |
| 317 | +['(ማ|ሙ|ምው)a', '', 'ሟ'], // maa or mua or mwa |
| 318 | + |
| 319 | +['ሕe', '', 'ሐ'], // hhe |
| 320 | +['ሕu', '', 'ሑ'], // hhu |
| 321 | +['ሕi', '', 'ሒ'], // hhi |
| 322 | +['ሕa', '', 'ሓ'], // hha |
| 323 | +['(ሓ|ሐ|ሒ)e', '', 'ሔ'], // hhae,hhee,hhie |
| 324 | +['ሕo', '', 'ሖ'], // hho |
| 325 | +['(ሓ|ሑ|ሕው)a', '', 'ሗ'], // hhaa or hhua or hhwa |
| 326 | + |
| 327 | +['ልe', '', 'ለ'], // le |
| 328 | +['ልu', '', 'ሉ'], // lu |
| 329 | +['ልi', '', 'ሊ'], // li |
| 330 | +['ልa', '', 'ላ'], // la |
| 331 | +['(ላ|ለ|ሊ)e', '', 'ሌ'], // lae,lee,lie |
| 332 | +['ልo', '', 'ሎ'], // lo |
| 333 | +['(ላ|ሉ|ልው)a', '', 'ሏ'], // laa or lua or lwa |
| 334 | + |
| 335 | +['ህe', '', 'ሀ'], // he |
| 336 | +['ህu', '', 'ሁ'], // hu |
| 337 | +['ህi', '', 'ሂ'], // hi |
| 338 | +['ህa', '', 'ሃ'], // ha |
| 339 | +['(ሃ|ሀ|ሂ)e', '', 'ሄ'], // hae,hee,hie |
| 340 | +['ህo', '', 'ሆ'], // ho |
| 341 | + |
| 342 | +['ውe', '', 'ወ'], // we |
| 343 | +['ውu', '', 'ዉ'], // wu |
| 344 | +['ውi', '', 'ዊ'], // wi |
| 345 | +['ውa', '', 'ዋ'], // wa |
| 346 | +['(ዋ|ወ|ዊ)e', '', 'ዌ'], // wae,wee,wie |
| 347 | +['ውo', '', 'ዎ'], // wo |
| 348 | + |
| 349 | +['አa', '', 'ኣ'], // aa |
| 350 | +['(አ|እ|ኢ)e', '', 'ኤ'], // ae or ee or ie |
| 351 | +['(እ|አ)h', '', 'ኧ'], // eh or eeh |
| 352 | + |
| 353 | +['ህh', '', 'ሕ'], // hh |
| 354 | +['ስ(s|z)', '', 'ሥ'], // ss or sz |
| 355 | +['ስh', '', 'ሽ'], // sh |
| 356 | +['ቅh', '', 'ቕ'], // qh |
| 357 | +['ክx', '', 'ኽ'], // kx |
| 358 | +['ዝ(h|z)', '', 'ዥ'], // zh or zz |
| 359 | +['ድd', '', 'ዽ'], // dd |
| 360 | +['ግg', '', 'ጝ'], // gg |
| 361 | +['ት(h|t)', '', 'ጥ'], // th or tt |
| 362 | +['ችh', '', 'ጭ'], // ch |
| 363 | +['ፕ(h|p)', '', 'ጵ'], // ph or pp |
| 364 | +['ትs', '', 'ጽ'], // ts |
| 365 | +['ትz', '', 'ፅ'], // tz |
| 366 | +['ቅw', '', 'ቍ'], // qw |
| 367 | +['ቕw', '', 'ቝ'], // qhw |
| 368 | +['ኅw', '', 'ኍ'], // xw |
| 369 | +['ክw', '', 'ኵ'], // kw |
| 370 | +['ኽw', '', 'ዅ'], // kxw |
| 371 | +['ግw', '', 'ጕ'], // gw |
| 372 | + |
| 373 | +['(N|ንn)', '', 'ኝ'], // nn or N |
| 374 | + |
| 375 | +['፩0', '', '፲'], // 10 |
| 376 | +['፪0', '', '፳'], // 20 |
| 377 | +['፫0', '', '፴'], // 30 |
| 378 | +['፬0', '', '፵'], // 40 |
| 379 | +['፭0', '', '፶'], // 50 |
| 380 | +['፮0', '', '፷'], // 60 |
| 381 | +['፯0', '', '፸'], // 70 |
| 382 | +['፰0', '', '፹'], // 80 |
| 383 | +['፱0', '', '፺'], // 90 |
| 384 | +['፲0', '', '፻'], // 100 |
| 385 | + |
| 386 | +['h', '', 'ህ'], |
| 387 | +['l', '', 'ል'], |
| 388 | +['m', '', 'ም'], |
| 389 | +['r', '', 'ር'], |
| 390 | +['s', '', 'ስ'], |
| 391 | +['q', '', 'ቅ'], |
| 392 | +['b', '', 'ብ'], |
| 393 | +['v', '', 'ቭ'], |
| 394 | +['t', '', 'ት'], |
| 395 | +['c', '', 'ች'], |
| 396 | +['x', '', 'ኅ'], |
| 397 | +['n', '', 'ን'], |
| 398 | +['k', '', 'ክ'], |
| 399 | +['w', '', 'ው'], |
| 400 | +['"', '', 'ዕ'], |
| 401 | +['z', '', 'ዝ'], |
| 402 | +['y', '', 'ይ'], |
| 403 | +['d', '', 'ድ'], |
| 404 | +['j', '', 'ጅ'], |
| 405 | +['g', '', 'ግ'], |
| 406 | +['f', '', 'ፍ'], |
| 407 | +['p', '', 'ፕ'], |
| 408 | + |
| 409 | +// vowels |
| 410 | +['a', '', 'አ'], |
| 411 | +["(e|')", '', 'እ'], |
| 412 | +['i', '', 'ኢ'], |
| 413 | +['o', '', 'ኦ'], |
| 414 | +['u', '', 'ኡ'], |
| 415 | + |
| 416 | +['\\;', '', '፥'], |
| 417 | +['\\.', '', '።'], |
| 418 | +[',', '', '፣'], |
| 419 | +['\\:', '', '፤'], |
| 420 | +['\\:', '', '፥'], |
| 421 | +['/', '', '፨'], |
| 422 | +['\\?', '', '፧'], |
| 423 | +['[ \\-]', '', '፡'], // space or - |
| 424 | +['\\!', '', '፦'], |
| 425 | + |
| 426 | +['1', '', '፩'], |
| 427 | +['2', '', '፪'], |
| 428 | +['3', '', '፫'], |
| 429 | +['4', '', '፬'], |
| 430 | +['5', '', '፭'], |
| 431 | +['6', '', '፮'], |
| 432 | +['7', '', '፯'], |
| 433 | +['8', '', '፰'], |
| 434 | +['9', '', '፱'] |
| 435 | +]; |
| 436 | + |
| 437 | +jQuery.narayam.addScheme( 'am', { |
| 438 | + 'namemsg': 'narayam-am', |
| 439 | + 'extended_keyboard': false, |
| 440 | + 'lookbackLength': 2, |
| 441 | + 'keyBufferLength': 1, |
| 442 | + 'rules': rules |
| 443 | +} ); |
Index: branches/wmf/1.18wmf1/extensions/Narayam/js/ext.narayam.core.js |
— | — | @@ -30,6 +30,9 @@ |
31 | 31 | // This object is formatted as { 'schemename': '', 'schemename2': '', ... } |
32 | 32 | // for easy searching |
33 | 33 | var availableSchemes = mw.config.get( 'wgNarayamAvailableSchemes' ) || {}; |
| 34 | + // All input methods. This will be used for selecting input methods from languages |
| 35 | + // other than uselang- optionally |
| 36 | + var allImes = mw.config.get( 'wgNarayamAllSchemes' ) || {}; |
34 | 37 | // Currently selected scheme |
35 | 38 | var currentScheme = null; |
36 | 39 | // Shortcut key for turning Narayam on and off |
— | — | @@ -389,12 +392,9 @@ |
390 | 393 | * @return True if added, false if not |
391 | 394 | */ |
392 | 395 | this.addScheme = function( name, data ) { |
393 | | - if ( name in availableSchemes ) { |
394 | | - schemes[name] = data; |
395 | | - return true; |
396 | | - } else { |
397 | | - return false; |
398 | | - } |
| 396 | + schemes[name] = data; |
| 397 | + return true; |
| 398 | + |
399 | 399 | }; |
400 | 400 | |
401 | 401 | /** |
— | — | @@ -402,10 +402,14 @@ |
403 | 403 | * @param name String |
404 | 404 | */ |
405 | 405 | this.setScheme = function( name ) { |
406 | | - if ( name in schemes ) { |
407 | | - currentScheme = schemes[name]; |
| 406 | + currentScheme = schemes[name]; |
| 407 | + if ( currentScheme ){ |
408 | 408 | $.cookie( 'narayam-scheme', name, { 'path': '/', 'expires': 30 } ); |
| 409 | + return true; |
409 | 410 | } |
| 411 | + else { |
| 412 | + return false; |
| 413 | + } |
410 | 414 | }; |
411 | 415 | |
412 | 416 | /** |
— | — | @@ -500,6 +504,52 @@ |
501 | 505 | .text( mw.msg( 'narayam-toggle-ime', shortcutText() ) ) |
502 | 506 | .prepend( $checkbox ) |
503 | 507 | .attr( 'title', mw.msg( 'narayam-checkbox-tooltip' ) ); |
| 508 | + |
| 509 | + $narayamMenuItems.append( $( '<li class="narayam-more-imes-link" />') |
| 510 | + .append( |
| 511 | + $( '<a/>' ) |
| 512 | + .text( mw.msg( 'narayam-more-imes' ) ) |
| 513 | + .click( function() { |
| 514 | + $('.narayam-scheme-dynamic-item').toggle('fast'); |
| 515 | + if( $('li.narayam-more-imes-link').hasClass( 'open' )){ |
| 516 | + $('li.narayam-more-imes-link').removeClass('open'); |
| 517 | + }else{ |
| 518 | + $('li.narayam-more-imes-link').addClass('open'); |
| 519 | + } |
| 520 | + }) |
| 521 | + ) |
| 522 | + ); |
| 523 | + |
| 524 | + for ( var lang in allImes ) { |
| 525 | + var langschemes = allImes[lang]; |
| 526 | + for ( var langscheme in langschemes ) { |
| 527 | + |
| 528 | + var $input = $( '<input type="radio" name="narayam-input-method" class="narayam-scheme-dynamic" />' ); |
| 529 | + $input |
| 530 | + .attr( 'id', 'narayam-' + langscheme ) |
| 531 | + .val( langscheme ); |
| 532 | + |
| 533 | + var $narayamMenuItemLabel = $( '<label />' ) |
| 534 | + .attr( 'for' ,'narayam-' + langscheme ) |
| 535 | + .append( $input ) |
| 536 | + .append( mw.html.escape( mw.msg( "narayam-"+ langscheme ) ) ); |
| 537 | + |
| 538 | + var $narayamMenuItem = $( '<li class="narayam-scheme-dynamic-item" />' ) |
| 539 | + .append( $input ) |
| 540 | + .append( $narayamMenuItemLabel ); |
| 541 | + |
| 542 | + $narayamMenuItems.append( $narayamMenuItem ); |
| 543 | + |
| 544 | + } |
| 545 | + } |
| 546 | + |
| 547 | + // Event listener for scheme selection - dynamic loading of rules. |
| 548 | + $( '.narayam-scheme-dynamic', $( '#narayam-menu-items > ul')[0] ).live( 'click', function() { |
| 549 | + var curVal = $(this).val(); |
| 550 | + mw.loader.using( "ext.narayam.rules." + $(this).val() , function() { |
| 551 | + that.setScheme( curVal ) |
| 552 | + }); |
| 553 | + } ); |
504 | 554 | |
505 | 555 | var helppage = mw.config.get( 'wgNarayamHelpPage' ); |
506 | 556 | if ( helppage ) { |
— | — | @@ -546,7 +596,7 @@ |
547 | 597 | $( '#searchform' ).css( 'visibility', 'visible' ); |
548 | 598 | }); |
549 | 599 | } |
550 | | - |
| 600 | + $('.narayam-scheme-dynamic-item').hide(); |
551 | 601 | // Narayam controls setup complete, returns true |
552 | 602 | return true; |
553 | 603 | }; |
Index: branches/wmf/1.18wmf1/extensions/Narayam/js/ext.narayam.rules.ta-bamini.js |
— | — | @@ -0,0 +1,85 @@ |
| 2 | +/** |
| 3 | + * Regular expression rules table for Tamil Bamini Keyboard layout. |
| 4 | + * @author Junaid P V ([[user:Junaidpv]]) |
| 5 | + * @date 2011-10-13 |
| 6 | + * @credits http://help.keymandesktop.com/keyboards/keyboard_ekwbamuni.php |
| 7 | + * License: GPLv3, CC-BY-SA 3.0 |
| 8 | + */ |
| 9 | + |
| 10 | +var rules = [ |
| 11 | +['`', '', 'ஹ'], |
| 12 | +['q', '', 'ங'], |
| 13 | +['w', '', 'ற'], |
| 14 | +['e', '', 'ந'], |
| 15 | +['r', '', 'ச'], |
| 16 | +['t', '', 'வ'], |
| 17 | +['y', '', 'ல'], |
| 18 | +['u', '', 'ர'], |
| 19 | +//['i', '', ''], |
| 20 | +['o', '', 'ழ'], |
| 21 | +['p', '', 'ி'], |
| 22 | +['\\[', '', 'ஜ'], |
| 23 | +['\\]', '', 'ஸ'], |
| 24 | +['\\\\', '', 'ஷ'], |
| 25 | +['a', '', 'ய'], |
| 26 | +['s', '', 'ள'], |
| 27 | +['d', '', 'ன'], |
| 28 | +['f', '', 'க'], |
| 29 | +['g', '', 'ப'], |
| 30 | +['h', '', 'ா'], |
| 31 | +['j', '', 'த'], |
| 32 | +['k', '', 'ம'], |
| 33 | +['l', '', 'ட'], |
| 34 | +[';', '', '்'], |
| 35 | +['z', '', 'ண'], |
| 36 | +['x', '', 'ஒ'], |
| 37 | +['c', '', 'உ'], |
| 38 | +['v', '', 'எ'], |
| 39 | +['b', '', 'டி'], |
| 40 | +['m', '', 'அ'], |
| 41 | +[',', '', 'இ'], |
| 42 | +['/', '', 'ஃ'], |
| 43 | + |
| 44 | +['@', '', ';'], |
| 45 | +['#', '', 'சூ'], |
| 46 | +['\\$', '', 'கூ'], |
| 47 | +['%', '', 'மூ'], |
| 48 | +['\\^', '', 'டூ'], |
| 49 | +['&', '', 'ரூ'], |
| 50 | +['Q', '', 'ஞ'], |
| 51 | +['W', '', 'று'], |
| 52 | +['E', '', 'நு'], |
| 53 | +['R', '', 'சு'], |
| 54 | +['T', '', 'வு'], |
| 55 | +['Y', '', 'லு'], |
| 56 | +['U', '', 'ரு'], |
| 57 | +['I', '', 'ஐ'], |
| 58 | +['O', '', 'ழு'], |
| 59 | +['P', '', 'ீ'], |
| 60 | +['\\|', '', "'"], |
| 61 | +['A', '', 'யு'], |
| 62 | +['S', '', 'ளு'], |
| 63 | +['D', '', 'னு'], |
| 64 | +['F', '', 'கு'], |
| 65 | +['G', '', 'பு'], |
| 66 | +['H', '', 'ர்'], |
| 67 | +['J', '', 'து'], |
| 68 | +['K', '', 'மு'], |
| 69 | +['L', '', 'டு'], |
| 70 | +['Z', '', 'ணு'], |
| 71 | +['X', '', 'ஓ'], |
| 72 | +['C', '', 'ஊ'], |
| 73 | +['V', '', 'ஏ'], |
| 74 | +['B', '', 'டீ'], |
| 75 | +['M', '', 'ஆ'], |
| 76 | +['\\<', '', 'ஈ'], |
| 77 | +['\\>', '', ','] |
| 78 | +]; |
| 79 | + |
| 80 | +jQuery.narayam.addScheme( 'ta-bamini', { |
| 81 | + 'namemsg': 'narayam-ta-bamini', |
| 82 | + 'extended_keyboard': false, |
| 83 | + 'lookbackLength': 0, |
| 84 | + 'keyBufferLength': 0, |
| 85 | + 'rules': rules |
| 86 | +} ); |
Index: branches/wmf/1.18wmf1/extensions/Narayam/js/ext.narayam.rules.as.js |
— | — | @@ -11,21 +11,21 @@ |
12 | 12 | var rules = [ |
13 | 13 | ['ক্h','c','চ্'], |
14 | 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ং'], |
| 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 | 30 | |
31 | 31 | ['ং~','', 'ম্'], |
32 | 32 | ['ংa','', 'ম'], |
— | — | @@ -61,16 +61,15 @@ |
62 | 62 | ['প্h','', 'ফ্'], |
63 | 63 | ['ব্h','', 'ভ্'], |
64 | 64 | ['স্h','', 'ষ্'], |
| 65 | +['ড্h','', 'ঢ্'], |
65 | 66 | |
66 | | - |
67 | 67 | ['a','', 'অ'], |
68 | 68 | ['b','', 'ব্'], |
69 | 69 | ['c','', 'ক্'], |
70 | 70 | ['d','', 'দ্'], |
71 | 71 | ['(e|E)','', 'এ'], |
72 | | -//['f','', 'অ'], |
73 | 72 | ['g','', 'গ্'], |
74 | | -['h','', 'স্'], |
| 73 | +['h','', 'হ্'], |
75 | 74 | ['i','', 'ই'], |
76 | 75 | ['j','', 'জ্'], |
77 | 76 | ['k','', 'ক্'], |
— | — | @@ -79,21 +78,16 @@ |
80 | 79 | ['n','', 'ন্'], |
81 | 80 | ['(o|O)','', 'ও'], |
82 | 81 | ['p','', 'প্'], |
83 | | -//['q','', 'অ'], |
84 | | -['r','', 'র্'], |
| 82 | +['r','', 'ৰ্'], |
85 | 83 | ['s','', 'স্'], |
86 | 84 | ['t','', 'ত্'], |
87 | 85 | ['u','', 'উ'], |
88 | | -//['v','', 'অ'], |
89 | | -//['w','', 'অ'], |
90 | | -//['x','', 'অ'], |
| 86 | +['w','', 'ৱ্'], |
91 | 87 | ['y','', 'য্'], |
92 | | -//['z','', 'অ'], |
93 | 88 | ['A','', 'আ'], |
94 | 89 | ['B','', 'ব্ব্'], |
95 | 90 | ['C','', 'ক্ক্'], |
96 | 91 | ['D','', 'ড্'], |
97 | | -//['F','', 'অ'], |
98 | 92 | ['G','', 'গ্গ্'], |
99 | 93 | ['H','', 'ঃ'], |
100 | 94 | ['I','', 'ঈ'], |
— | — | @@ -103,16 +97,12 @@ |
104 | 98 | ['M','', 'ম্ম্'], |
105 | 99 | ['N','', 'ণ্'], |
106 | 100 | ['P','', 'প্প্'], |
107 | | -//['Q','', 'অ'], |
108 | 101 | ['R','', 'ঋ'], |
109 | 102 | ['S','', 'শ্'], |
110 | 103 | ['T','', 'ট্'], |
111 | 104 | ['U','', 'ঊ'], |
112 | | -//['V','', 'অ'], |
113 | | -//['W','', 'অ'], |
114 | | -//['X','', 'অ'], |
115 | 105 | ['Y','', 'য্য্'], |
116 | | -//['Z','', 'অ'], |
| 106 | +['X','', 'ক্ষ'], |
117 | 107 | ['0','', '০'], |
118 | 108 | ['1','', '১'], |
119 | 109 | ['2','', '২'], |
— | — | @@ -124,7 +114,9 @@ |
125 | 115 | ['8','', '৮'], |
126 | 116 | ['9','', '৯'], |
127 | 117 | |
128 | | -['//','', 'ঽ'] |
| 118 | +['//','', 'ঽ'], |
| 119 | +['\\^','', 'ং'], // Anusvara |
| 120 | +['ত্~','', 'ৎ'] // BENGALI LETTER KHANDA TA |
129 | 121 | ]; |
130 | 122 | |
131 | 123 | jQuery.narayam.addScheme( 'as', { |
— | — | @@ -133,4 +125,4 @@ |
134 | 126 | 'lookbackLength': 3, |
135 | 127 | 'keyBufferLength': 2, |
136 | 128 | 'rules': rules |
137 | | -} ); |
\ No newline at end of file |
| 129 | +} ); |
Index: branches/wmf/1.18wmf1/extensions/Narayam/js/ext.narayam.rules.ta-99.js |
— | — | @@ -0,0 +1,191 @@ |
| 2 | +/** |
| 3 | + * Regular expression rules table for Tamil 99 input method |
| 4 | + * @author Junaid P V ([[user:Junaidpv]]) |
| 5 | + * @date 2010-11-20 |
| 6 | + * License: GPLv3, CC-BY-SA 3.0 |
| 7 | + */ |
| 8 | + |
| 9 | + // Normal rules |
| 10 | +var rules = [ |
| 11 | +['([க-ஹ])h','a', '$1க'], |
| 12 | +['([க-ஹ])b','a', '$1ங'], |
| 13 | +['([க-ஹ])\\[','a', '$1ச'], |
| 14 | +['([க-ஹ])E','a', '$1ஜ'], |
| 15 | +['([க-ஹ])\\]','a', '$1ஞ'], |
| 16 | +['([க-ஹ])o','a', '$1ட'], |
| 17 | +['([க-ஹ])p','a', '$1ண'], |
| 18 | +['([க-ஹ])l','a', '$1த'], |
| 19 | +['([க-ஹ]);','a', '$1ந'], |
| 20 | +['([க-ஹ])i','a', '$1ன'], |
| 21 | +['([க-ஹ])j','a', '$1ப'], |
| 22 | +['([க-ஹ])k','a', '$1ம'], |
| 23 | +["([க-ஹ])'",'a', '$1ய'], |
| 24 | +['([க-ஹ])m','a', '$1ர'], |
| 25 | +['([க-ஹ])u','a', '$1ற'], |
| 26 | +['([க-ஹ])n','a', '$1ல'], |
| 27 | +['([க-ஹ])y','a', '$1ள'], |
| 28 | +['([க-ஹ])/','a', '$1ழ'], |
| 29 | +['([க-ஹ])v','a', '$1வ'], |
| 30 | +// void |
| 31 | +['([க-ஹ])W','a', '$1ஷ'], |
| 32 | +['([க-ஹ])Q','a', '$1ஸ'], |
| 33 | +['([க-ஹ])R','a', '$1ஹ'], |
| 34 | + |
| 35 | + |
| 36 | +['க்கh', '','க்கக'], |
| 37 | +['ங்ஙb', '','ங்ஙங'], |
| 38 | +['ச்ச\\[', '','ச்சச'], |
| 39 | +['ஜ்ஜE', '','ஜ்ஜஜ'], |
| 40 | +['ஞ்ஞ\\]', '','ஞ்ஞஞ'], |
| 41 | +['ட்டo', '','ட்டட'], |
| 42 | +['ண்ணp', '','ண்ணண'], |
| 43 | +['த்தl', '','த்தத'], |
| 44 | +['ந்ந;', '','ந்நந'], |
| 45 | +['ன்னi', '','ன்னன'], |
| 46 | +['ப்பj', '','ப்பப'], |
| 47 | +['ம்மk', '','ம்மம'], |
| 48 | +["ய்ய'", '','ய்யய'], |
| 49 | +['ர்ரm', '','ர்ரர'], |
| 50 | +['ற்றu', '','ற்றற'], |
| 51 | +['ல்லn', '','ல்லல'], |
| 52 | +['ள்ளy', '','ள்ளள'], |
| 53 | +['ழ்ழ/', '','ழ்ழழ'], |
| 54 | +['வ்வv', '','வ்வவ'], |
| 55 | +// void |
| 56 | +['ஷ்ஷW', '','ஷ்ஷஷ'], |
| 57 | +['ஸ்ஸQ', '','ஸ்ஸஸ'], |
| 58 | +['ஹ்ஹR', '','ஹ்ஹஹ'], |
| 59 | + |
| 60 | +['([க-ஹ])q', '','$1ா'], |
| 61 | +['([க-ஹ])s', '','$1ி'], |
| 62 | +['([க-ஹ])w', '','$1ீ'], |
| 63 | +['([க-ஹ])d', '','$1ு'], |
| 64 | +['([க-ஹ])e', '','$1ூ'], |
| 65 | +['([க-ஹ])g', '','$1ெ'], |
| 66 | +['([க-ஹ])t', '','$1ே'], |
| 67 | +['([க-ஹ])r', '','$1ை'], |
| 68 | +['([க-ஹ])c', '','$1ொ'], |
| 69 | +['([க-ஹ])x', '','$1ோ'], |
| 70 | +['([க-ஹ])z', '','$1ௌ'], |
| 71 | + |
| 72 | +['([க-ஹ])a', '','$1'], |
| 73 | + |
| 74 | +['கh', '','க்க'], |
| 75 | +['ஙb', '','ங்ங'], |
| 76 | +['ச\\[', '','ச்ச'], |
| 77 | +['ஜE', '','ஜ்ஜ'], |
| 78 | +['ஞ\\]', '','ஞ்ஞ'], |
| 79 | +['டo', '','ட்ட'], |
| 80 | +['ணp', '','ண்ண'], |
| 81 | +['தl', '','த்த'], |
| 82 | +['ந;', '','ந்ந'], |
| 83 | +['னi', '','ன்ன'], |
| 84 | +['பj', '','ப்ப'], |
| 85 | +['மk', '','ம்ம'], |
| 86 | +["ய'", '','ய்ய'], |
| 87 | +['ரm', '','ர்ர'], |
| 88 | +['றu', '','ற்ற'], |
| 89 | +['லn', '','ல்ல'], |
| 90 | +['ளy', '','ள்ள'], |
| 91 | +['ழ/', '','ழ்ழ'], |
| 92 | +['வv', '','வ்வ'], |
| 93 | +// void |
| 94 | +['ஷW', '','ஷ்ஷ'], |
| 95 | +['ஸQ', '','ஸ்ஸ'], |
| 96 | +['ஹR', '','ஹ்ஹ'], |
| 97 | + |
| 98 | +['நl', '','ந்த'], |
| 99 | +['ஙh', '','ங்க'], |
| 100 | +['னu', '','ன்ற'], |
| 101 | +['ணo', '','ண்ட'], |
| 102 | +['ஞ\\[', '','ஞ்ச'], |
| 103 | +['மj', '','ம்ப'], |
| 104 | + |
| 105 | +['q', '','ஆ'], |
| 106 | +['w', '','ஈ'], |
| 107 | +['e', '','ஊ'], |
| 108 | +['r', '','ஐ'], |
| 109 | +['t', '','ஏ'], |
| 110 | +['y', '','ள'], |
| 111 | +['u', '','ற'], |
| 112 | +['i', '','ன'], |
| 113 | +['o', '','ட'], |
| 114 | +['p', '','ண'], |
| 115 | +['\\[', '','ச'], |
| 116 | +['\\]', '','ஞ'], |
| 117 | + |
| 118 | +['a', '','அ'], |
| 119 | +['s', '','இ'], |
| 120 | +['d', '','உ'], |
| 121 | +['f', '','்'], |
| 122 | +['g', '','எ'], |
| 123 | +['h', '','க'], |
| 124 | +['j', '','ப'], |
| 125 | +['k', '','ம'], |
| 126 | +['l', '','த'], |
| 127 | +[';', '','ந'], |
| 128 | +["'", '','ய'], |
| 129 | + |
| 130 | +['z', '','ஔ'], |
| 131 | +['x', '','ஓ'], |
| 132 | +['c', '','ஒ'], |
| 133 | +['v', '','வ'], |
| 134 | +['b', '','ங'], |
| 135 | +['n', '','ல'], |
| 136 | +['m', '','ர'], |
| 137 | +//',', '','ஆ'], |
| 138 | +//'\\.', '','ஆ'], |
| 139 | +['/', '','ழ'], |
| 140 | + |
| 141 | +['Q', '','ஸ'], |
| 142 | +['W', '','ஷ'], |
| 143 | +['E', '','ஜ'], |
| 144 | +['R', '','ஹ'], |
| 145 | +['T', '','க்ஷ'], |
| 146 | +['Y', '','ஸ்ரீ'], |
| 147 | +['U', '','ற'], |
| 148 | +['I', '','ன'], |
| 149 | +['O', '','['], |
| 150 | +['P', '',']'], |
| 151 | +//'\\{', '','ஆ'], |
| 152 | +//'\\}', '','ஆ'], |
| 153 | + |
| 154 | +['A', '','௹'], |
| 155 | +['S', '','௺'], |
| 156 | +['D', '','௸'], |
| 157 | +['F', '','ஃ'], |
| 158 | +['G', '','எ'], |
| 159 | +['H', '','க'], |
| 160 | +['J', '','ப'], |
| 161 | +['K', '','"'], |
| 162 | +['L', '',':'], |
| 163 | +['\\:', '',';'], |
| 164 | +['"', '',"'"], |
| 165 | + |
| 166 | +['Z', '','௳'], |
| 167 | +['X', '','௴'], |
| 168 | +['C', '','௵'], |
| 169 | +['V', '','௶'], |
| 170 | +['B', '','௷'], |
| 171 | +['N', '','ல'], |
| 172 | +['M', '','/'], |
| 173 | + |
| 174 | +['\\\\0', '','\u0be6'], |
| 175 | +['\\\\1', '','௧'], |
| 176 | +['\\\\2', '','௨'], |
| 177 | +['\\\\3', '','௩'], |
| 178 | +['\\\\4', '','௪'], |
| 179 | +['\\\\5', '','௫'], |
| 180 | +['\\\\6', '','௬'], |
| 181 | +['\\\\7', '','௭'], |
| 182 | +['\\\\8', '','௮'], |
| 183 | +['\\\\9', '','௯'] |
| 184 | +]; |
| 185 | + |
| 186 | +jQuery.narayam.addScheme( 'ta-99', { |
| 187 | + 'namemsg': 'narayam-ta-99', |
| 188 | + 'extended_keyboard': false, |
| 189 | + 'lookbackLength': 4, |
| 190 | + 'keyBufferLength': 1, |
| 191 | + 'rules': rules |
| 192 | +} ); |
Index: branches/wmf/1.18wmf1/extensions/Narayam/Narayam.php |
— | — | @@ -44,6 +44,9 @@ |
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 | + 'am' => array( |
| 49 | + 'am' => 'ext.narayam.rules.am', |
| 50 | + ), |
48 | 51 | 'as' => array( |
49 | 52 | 'as' => 'ext.narayam.rules.as', |
50 | 53 | 'as-avro' => 'ext.narayam.rules.as-avro', |
— | — | @@ -87,7 +90,8 @@ |
88 | 91 | ), |
89 | 92 | 'ta' => array( |
90 | 93 | 'ta' => 'ext.narayam.rules.ta', |
91 | | - 'ta99' => 'ext.narayam.rules.ta99', |
| 94 | + 'ta-99' => 'ext.narayam.rules.ta-99', |
| 95 | + 'ta-bamini' => 'ext.narayam.rules.ta-bamini', |
92 | 96 | ), |
93 | 97 | 'te' => array( |
94 | 98 | 'te-inscript' => 'ext.narayam.rules.te-inscript', |
— | — | @@ -142,126 +146,137 @@ |
143 | 147 | 'narayam-menu-tooltip', |
144 | 148 | 'narayam-help', |
145 | 149 | 'narayam-toggle-ime', |
| 150 | + 'narayam-more-imes', |
| 151 | + 'narayam-am', |
| 152 | + 'narayam-as', |
| 153 | + 'narayam-as-avro', |
| 154 | + 'narayam-as-bornona', |
| 155 | + 'narayam-as-inscript', |
| 156 | + 'narayam-eo', |
| 157 | + 'narayam-hi-inscript', |
| 158 | + 'narayam-kn', |
| 159 | + 'narayam-kn-inscript', |
| 160 | + 'narayam-ml', |
| 161 | + 'narayam-ml-inscript' , |
| 162 | + 'narayam-ne', |
| 163 | + 'narayam-ne-inscript', |
| 164 | + 'narayam-or', |
| 165 | + 'narayam-or-inscript', |
| 166 | + 'narayam-sa', |
| 167 | + 'narayam-sa-inscript', |
| 168 | + 'narayam-si-singlish', |
| 169 | + 'narayam-si-wijesekara', |
| 170 | + 'narayam-ta-99', |
| 171 | + 'narayam-ta', |
| 172 | + 'narayam-ta-bamini', |
| 173 | + 'narayam-te-inscript', |
| 174 | + 'narayam-bn-avro', |
| 175 | + 'narayam-bn-inscript', |
| 176 | + 'narayam-bn-nkb', |
146 | 177 | ), |
147 | 178 | 'dependencies' => array( 'mediawiki.util', 'jquery.textSelection' ), |
148 | 179 | ); |
| 180 | +$wgResourceModules['ext.narayam.rules.am'] = $narayamTpl + array( |
| 181 | + 'scripts' => 'js/ext.narayam.rules.am.js', |
| 182 | + 'dependencies' => 'ext.narayam.core', |
| 183 | +); |
149 | 184 | $wgResourceModules['ext.narayam.rules.as'] = $narayamTpl + array( |
150 | 185 | 'scripts' => 'js/ext.narayam.rules.as.js', |
151 | | - 'messages' => array( 'narayam-as' ), |
152 | 186 | 'dependencies' => 'ext.narayam.core', |
153 | 187 | ); |
154 | 188 | $wgResourceModules['ext.narayam.rules.as-avro'] = $narayamTpl + array( |
155 | 189 | 'scripts' => 'js/ext.narayam.rules.as-avro.js', |
156 | | - 'messages' => array( 'narayam-as-avro' ), |
157 | 190 | 'dependencies' => 'ext.narayam.core', |
158 | 191 | ); |
159 | 192 | $wgResourceModules['ext.narayam.rules.as-bornona'] = $narayamTpl + array( |
160 | 193 | 'scripts' => 'js/ext.narayam.rules.as-bornona.js', |
161 | | - 'messages' => array( 'narayam-as-bornona' ), |
162 | 194 | 'dependencies' => 'ext.narayam.core', |
163 | 195 | ); |
164 | 196 | $wgResourceModules['ext.narayam.rules.as-inscript'] = $narayamTpl + array( |
165 | 197 | 'scripts' => 'js/ext.narayam.rules.as-inscript.js', |
166 | | - 'messages' => array( 'narayam-as-inscript' ), |
167 | 198 | 'dependencies' => 'ext.narayam.core', |
168 | 199 | ); |
169 | 200 | $wgResourceModules['ext.narayam.rules.bn-avro'] = $narayamTpl + array( |
170 | 201 | 'scripts' => 'js/ext.narayam.rules.bn-avro.js', |
171 | | - 'messages' => array( 'narayam-bn-avro' ), |
172 | 202 | 'dependencies' => 'ext.narayam.core', |
173 | 203 | ); |
174 | 204 | $wgResourceModules['ext.narayam.rules.bn-inscript'] = $narayamTpl + array( |
175 | 205 | 'scripts' => 'js/ext.narayam.rules.bn-inscript.js', |
176 | | - 'messages' => array( 'narayam-bn-inscript' ), |
177 | 206 | 'dependencies' => 'ext.narayam.core', |
178 | 207 | ); |
179 | 208 | $wgResourceModules['ext.narayam.rules.bn-nkb'] = $narayamTpl + array( |
180 | 209 | 'scripts' => 'js/ext.narayam.rules.bn-nkb.js', |
181 | | - 'messages' => array( 'narayam-bn-nkb' ), |
182 | 210 | 'dependencies' => 'ext.narayam.core', |
183 | 211 | ); |
184 | 212 | $wgResourceModules['ext.narayam.rules.eo'] = $narayamTpl + array( |
185 | 213 | 'scripts' => 'js/ext.narayam.rules.eo.js', |
186 | | - 'messages' => array( 'narayam-eo' ), |
187 | 214 | 'dependencies' => 'ext.narayam.core', |
188 | 215 | ); |
189 | 216 | $wgResourceModules['ext.narayam.rules.hi-inscript'] = $narayamTpl + array( |
190 | 217 | 'scripts' => 'js/ext.narayam.rules.hi-inscript.js', |
191 | | - 'messages' => array( 'narayam-hi-inscript' ), |
192 | 218 | 'dependencies' => 'ext.narayam.core', |
193 | 219 | ); |
194 | 220 | $wgResourceModules['ext.narayam.rules.kn'] = $narayamTpl + array( |
195 | 221 | 'scripts' => 'js/ext.narayam.rules.kn.js', |
196 | | - 'messages' => array( 'narayam-kn' ), |
197 | 222 | 'dependencies' => 'ext.narayam.core', |
198 | 223 | ); |
199 | 224 | $wgResourceModules['ext.narayam.rules.kn-inscript'] = $narayamTpl + array( |
200 | 225 | 'scripts' => 'js/ext.narayam.rules.kn-inscript.js', |
201 | | - 'messages' => array( 'narayam-kn-inscript' ), |
202 | 226 | 'dependencies' => 'ext.narayam.core', |
203 | 227 | ); |
204 | 228 | $wgResourceModules['ext.narayam.rules.ml'] = $narayamTpl + array( |
205 | 229 | 'scripts' => 'js/ext.narayam.rules.ml.js', |
206 | | - 'messages' => array( 'narayam-ml' ), |
207 | 230 | 'dependencies' => 'ext.narayam.core', |
208 | 231 | ); |
209 | 232 | $wgResourceModules['ext.narayam.rules.ml-inscript'] = $narayamTpl + array( |
210 | 233 | 'scripts' => 'js/ext.narayam.rules.ml-inscript.js', |
211 | | - 'messages' => array( 'narayam-ml-inscript' ), |
212 | 234 | 'dependencies' => 'ext.narayam.core', |
213 | 235 | ); |
214 | 236 | $wgResourceModules['ext.narayam.rules.ne'] = $narayamTpl + array( |
215 | 237 | 'scripts' => 'js/ext.narayam.rules.ne.js', |
216 | | - 'messages' => array( 'narayam-ne' ), |
217 | 238 | 'dependencies' => 'ext.narayam.core', |
218 | 239 | ); |
219 | 240 | $wgResourceModules['ext.narayam.rules.ne-inscript'] = $narayamTpl + array( |
220 | 241 | 'scripts' => 'js/ext.narayam.rules.ne-inscript.js', |
221 | | - 'messages' => array( 'narayam-ne-inscript' ), |
222 | 242 | 'dependencies' => 'ext.narayam.core', |
223 | 243 | ); |
224 | 244 | $wgResourceModules['ext.narayam.rules.or'] = $narayamTpl + array( |
225 | 245 | 'scripts' => 'js/ext.narayam.rules.or.js', |
226 | | - 'messages' => array( 'narayam-or' ), |
227 | 246 | 'dependencies' => 'ext.narayam.core', |
228 | 247 | ); |
229 | 248 | $wgResourceModules['ext.narayam.rules.or-inscript'] = $narayamTpl + array( |
230 | 249 | 'scripts' => 'js/ext.narayam.rules.or-inscript.js', |
231 | | - 'messages' => array( 'narayam-or-inscript' ), |
232 | 250 | 'dependencies' => 'ext.narayam.core', |
233 | 251 | ); |
234 | 252 | $wgResourceModules['ext.narayam.rules.sa'] = $narayamTpl + array( |
235 | 253 | 'scripts' => 'js/ext.narayam.rules.sa.js', |
236 | | - 'messages' => array( 'narayam-sa' ), |
237 | 254 | 'dependencies' => 'ext.narayam.core', |
238 | 255 | ); |
239 | 256 | $wgResourceModules['ext.narayam.rules.sa-inscript'] = $narayamTpl + array( |
240 | 257 | 'scripts' => 'js/ext.narayam.rules.sa-inscript.js', |
241 | | - 'messages' => array( 'narayam-sa-inscript' ), |
242 | 258 | 'dependencies' => 'ext.narayam.core', |
243 | 259 | ); |
244 | 260 | $wgResourceModules['ext.narayam.rules.si-singlish'] = $narayamTpl + array( |
245 | 261 | 'scripts' => 'js/ext.narayam.rules.si-singlish.js', |
246 | | - 'messages' => array( 'narayam-si-singlish' ), |
247 | 262 | 'dependencies' => 'ext.narayam.core', |
248 | 263 | ); |
249 | 264 | $wgResourceModules['ext.narayam.rules.si-wijesekara'] = $narayamTpl + array( |
250 | 265 | 'scripts' => 'js/ext.narayam.rules.si-wijesekara.js', |
251 | | - 'messages' => array( 'narayam-si-wijesekara' ), |
252 | 266 | 'dependencies' => 'ext.narayam.core', |
253 | 267 | ); |
254 | 268 | $wgResourceModules['ext.narayam.rules.ta'] = $narayamTpl + array( |
255 | 269 | 'scripts' => 'js/ext.narayam.rules.ta.js', |
256 | | - 'messages' => array( 'narayam-ta' ), |
257 | 270 | 'dependencies' => 'ext.narayam.core', |
258 | 271 | ); |
259 | | -$wgResourceModules['ext.narayam.rules.ta99'] = $narayamTpl + array( |
260 | | - 'scripts' => 'js/ext.narayam.rules.ta99.js', |
261 | | - 'messages' => array( 'narayam-ta99' ), |
262 | | - 'dependencies' => 'ext.narayam.rules.ta', // make sure ta99 loads after ta |
| 272 | +$wgResourceModules['ext.narayam.rules.ta-99'] = $narayamTpl + array( |
| 273 | + 'scripts' => 'js/ext.narayam.rules.ta-99.js', |
| 274 | + 'dependencies' => 'ext.narayam.core', |
263 | 275 | ); |
| 276 | +$wgResourceModules['ext.narayam.rules.ta-bamini'] = $narayamTpl + array( |
| 277 | + 'scripts' => 'js/ext.narayam.rules.ta-bamini.js', |
| 278 | + 'dependencies' => 'ext.narayam.core', |
| 279 | +); |
264 | 280 | $wgResourceModules['ext.narayam.rules.te-inscript'] = $narayamTpl + array( |
265 | 281 | 'scripts' => 'js/ext.narayam.rules.te-inscript.js', |
266 | | - 'messages' => array( 'narayam-te-inscript' ), |
267 | 282 | 'dependencies' => 'ext.narayam.core', |
268 | 283 | ); |
Index: branches/wmf/1.18wmf1/languages/messages/MessagesDsb.php |
— | — | @@ -61,8 +61,8 @@ |
62 | 62 | |
63 | 63 | $dateFormats = array( |
64 | 64 | 'dmy time' => 'H:i', |
65 | | - 'dmy date' => 'j xg Y', |
66 | | - 'dmy both' => 'H:i, j xg Y', |
| 65 | + 'dmy date' => 'j. xg Y', |
| 66 | + 'dmy both' => 'j. xg Y, H:i', |
67 | 67 | ); |
68 | 68 | |
69 | 69 | $specialPageAliases = array( |
Index: branches/wmf/1.18wmf1/languages/messages/MessagesHsb.php |
— | — | @@ -46,6 +46,20 @@ |
47 | 47 | NS_USER_TALK => array( 'male' => 'Diskusija_z_wužiwarjom', 'female' => 'Diskusija_z_wužiwarku' ), |
48 | 48 | ); |
49 | 49 | |
| 50 | +$datePreferences = array( |
| 51 | + 'default', |
| 52 | + 'dmy', |
| 53 | + 'ISO 8601', |
| 54 | +); |
| 55 | + |
| 56 | +$defaultDateFormat = 'dmy'; |
| 57 | + |
| 58 | +$dateFormats = array( |
| 59 | + 'dmy time' => 'H:i', |
| 60 | + 'dmy date' => 'j. xg Y', |
| 61 | + 'dmy both' => 'j. xg Y, H:i', |
| 62 | +); |
| 63 | + |
50 | 64 | $specialPageAliases = array( |
51 | 65 | 'Activeusers' => array( 'Aktiwni_wužiwarjo' ), |
52 | 66 | 'Allmessages' => array( 'MediaWiki-zdźělenki' ), |