1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
diff --git a/m-keyboard/layouts/hwkbcharloops.xml b/m-keyboard/layouts/hwkbcharloops.xml
index 1e2b5c3..3970524 100644
--- a/m-keyboard/layouts/hwkbcharloops.xml
+++ b/m-keyboard/layouts/hwkbcharloops.xml
@@ -532,4 +532,36 @@
         <character label="и" accented_labels="&#x0456;&#x0457;"/>
         <character label="э" accented_labels="&#x0454;"/>
     </language>
+    <language language_code="lt" name="Lithuanian">
+        <character label="a" accented_labels="ą"/>
+        <character label="c" accented_labels="č"/>
+        <character label="e" accented_labels="ęė"/>
+        <character label="i" accented_labels="į"/>
+        <character label="s" accented_labels="š"/>
+        <character label="u" accented_labels="ųū"/>
+        <character label="z" accented_labels="ž"/>
+        <character label="A" accented_labels="Ą"/>
+        <character label="C" accented_labels="Č"/>
+        <character label="E" accented_labels="ĘĖ"/>
+        <character label="I" accented_labels="Į"/>
+        <character label="S" accented_labels="Š"/>
+        <character label="U" accented_labels="ŲŪ"/>
+        <character label="Z" accented_labels="Ž"/>
+    </language>
+    <language language_code="en" name="English (Lithuanian hack)">
+        <character label="a" accented_labels="ą"/>
+        <character label="c" accented_labels="č"/>
+        <character label="e" accented_labels="ęė"/>
+        <character label="i" accented_labels="į"/>
+        <character label="s" accented_labels="š"/>
+        <character label="u" accented_labels="ųū"/>
+        <character label="z" accented_labels="ž"/>
+        <character label="A" accented_labels="Ą"/>
+        <character label="C" accented_labels="Č"/>
+        <character label="E" accented_labels="ĘĖ"/>
+        <character label="I" accented_labels="Į"/>
+        <character label="S" accented_labels="Š"/>
+        <character label="U" accented_labels="ŲŪ"/>
+        <character label="Z" accented_labels="Ž"/>
+    </language>
 </keyboard>
diff --git a/m-keyboard/layouts/hwsymbols_common.xml b/m-keyboard/layouts/hwsymbols_common.xml
index 24866ff..08a4675 100644
--- a/m-keyboard/layouts/hwsymbols_common.xml
+++ b/m-keyboard/layouts/hwsymbols_common.xml
@@ -1,5 +1,14 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!DOCTYPE keyboard SYSTEM 'VirtualKeyboardLayout.dtd'>
+<!--
+
+    On a Nokia N950 this lives in /usr/share/meegotouch/virtual-keyboard/layouts
+    To reload changes after modification, use
+
+      devel-su
+      /sbin/initctl restart xsession/meego-im-uiserver
+
+  -->
 <keyboard version="1.0" catalog="symbols">
     <layout type="general" orientation="landscape">
         <section id="symbols0" type="non-sloppy" movable="false">
@@ -101,6 +110,53 @@
               <binding label="}"/>
             </key>
           </row>
+
+          <!-- hack: add Lithuanian letters to the symbols popup until I figure
+          out a better way to hook them up to the hardware keyboard -->
+          <row>
+            <key>
+              <binding label="ą"/>
+              <binding shift="true" label="Ą"/>
+            </key>
+            <key>
+              <binding label="č"/>
+              <binding shift="true" label="Č"/>
+            </key>
+            <key>
+              <binding label="ę"/>
+              <binding shift="true" label="Ę"/>
+            </key>
+            <key>
+              <binding label="ė"/>
+              <binding shift="true" label="Ė"/>
+            </key>
+            <key>
+              <binding label="į"/>
+              <binding shift="true" label="Į"/>
+            </key>
+            <key>
+              <binding label="š"/>
+              <binding shift="true" label="Š"/>
+            </key>
+            <key>
+              <binding label="ų"/>
+              <binding shift="true" label="Ų"/>
+            </key>
+            <key>
+              <binding label="ų"/>
+              <binding shift="true" label="Ų"/>
+            </key>
+            <key>
+              <binding label="ž"/>
+              <binding shift="true" label="Ž"/>
+            </key>
+            <!-- we already have those above
+            <key>
+              <binding label="„"/>
+              <binding shift="true" label="“"/>
+            </key>
+              -->
+          </row>
         </section>
     </layout>
 </keyboard>
diff --git a/m-keyboard/layouts/lt.xml b/m-keyboard/layouts/lt.xml
new file mode 100644
index 0000000..746a46e
--- /dev/null
+++ b/m-keyboard/layouts/lt.xml
@@ -0,0 +1,156 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE keyboard SYSTEM 'VirtualKeyboardLayout.dtd'>
+<keyboard title="Lietuvių" version="1.0" catalog="lt" language="lt">
+  <layout type="general">
+    <section id="main">
+      <row>
+        <key>
+          <binding label="q"/>
+          <binding shift="true" label="Q"/>
+        </key>
+        <key>
+          <binding label="w"/>
+          <binding shift="true" label="W"/>
+        </key>
+        <key>
+          <binding label="e" extended_labels="ęė€"/>
+          <binding shift="true" label="E" extended_labels="ĘĖ€"/>
+        </key>
+        <key>
+          <binding label="r"/>
+          <binding shift="true" label="R"/>
+        </key>
+        <key>
+          <binding label="t" extended_labels="þ"/>
+          <binding shift="true" label="T" extended_labels="Þ"/>
+        </key>
+        <key>
+          <binding label="y" extended_labels="ý¥"/>
+          <binding shift="true" label="Y" extended_labels="Ý¥"/>
+        </key>
+        <key>
+          <binding label="u" extended_labels="ųū"/>
+          <binding shift="true" label="U" extended_labels="ŲŪ"/>
+        </key>
+        <key>
+          <binding label="i" extended_labels="į"/>
+          <binding shift="true" label="I" extended_labels="Į"/>
+        </key>
+        <key>
+          <binding label="o" extended_labels="öôòó"/>
+          <binding shift="true" label="O" extended_labels="ÖÔÒÓ"/>
+        </key>
+        <key>
+          <binding label="p"/>
+          <binding shift="true" label="P"/>
+        </key>
+      </row>
+
+      <row>
+        <spacer/>
+
+        <key>
+          <binding label="a" extended_labels="ą"/>
+          <binding shift="true" label="A" extended_labels="Ą"/>
+        </key>
+        <key>
+          <binding label="s" extended_labels="š$"/>
+          <binding shift="true" label="S" extended_labels="Š$"/>
+        </key>
+        <key>
+          <binding label="d" extended_labels="ð"/>
+          <binding shift="true" label="D" extended_labels="Ð"/>
+        </key>
+        <key>
+          <binding label="f"/>
+          <binding shift="true" label="F"/>
+        </key>
+        <key>
+          <binding label="g"/>
+          <binding shift="true" label="G"/>
+        </key>
+        <key>
+          <binding label="h"/>
+          <binding shift="true" label="H"/>
+        </key>
+        <key>
+          <binding label="j"/>
+          <binding shift="true" label="J"/>
+        </key>
+        <key>
+          <binding label="k"/>
+          <binding shift="true" label="K"/>
+        </key>
+        <key>
+          <binding label="l"/>
+          <binding shift="true" label="L"/>
+        </key>
+
+        <spacer/>
+      </row>
+
+      <row>
+        <key style="special" width="large">
+          <binding action="shift"/>
+        </key>
+
+        <spacer/>
+
+        <key>
+          <binding label="z" extended_labels="ž"/>
+          <binding shift="true" label="Z" extended_labels="Ž"/>
+        </key>
+        <key>
+          <binding label="x"/>
+          <binding shift="true" label="X"/>
+        </key>
+        <key>
+          <binding label="c" extended_labels="č"/>
+          <binding shift="true" label="C" extended_labels="Č"/>
+        </key>
+        <key>
+          <binding label="v"/>
+          <binding shift="true" label="V"/>
+        </key>
+        <key>
+          <binding label="b"/>
+          <binding shift="true" label="B"/>
+        </key>
+        <key>
+          <binding label="n" extended_labels="ñ"/>
+          <binding shift="true" label="N" extended_labels="Ñ"/>
+        </key>
+        <key>
+          <binding label="m"/>
+          <binding shift="true" label="M"/>
+        </key>
+
+        <spacer/>
+
+        <key style="special" width="large">
+          <binding action="backspace"/>
+        </key>
+      </row>
+
+      <row>
+        <key style="special" width="x-large">
+          <binding action="sym" label="?123"/>
+        </key>
+
+        <spacer/>
+
+        <key id="emailUrlKey"><binding label=","/></key>
+        <key width="xx-large"><binding action="space"/></key>
+        <key><binding label="."/></key>
+
+        <spacer/>
+
+        <key style="special" width="x-large" id="actionKey">
+          <binding action="return"/>
+        </key>
+      </row>
+    </section>
+  </layout>
+
+  <import file="symbols_en.xml"/>
+</keyboard>