Merge lp:~tuxboy/ubuntu-keyboard/ubuntu-keyboard into lp:ubuntu-keyboard

Proposed by Aniruddha Adhikary
Status: Needs review
Proposed branch: lp:~tuxboy/ubuntu-keyboard/ubuntu-keyboard
Merge into: lp:ubuntu-keyboard
Diff against target: 575 lines (+491/-0)
12 files modified
debian/control (+8/-0)
plugins/bn/bn.pro (+9/-0)
plugins/bn/qml/Keyboard_bn.qml (+92/-0)
plugins/bn/qml/Keyboard_bn_email.qml (+93/-0)
plugins/bn/qml/Keyboard_bn_url.qml (+92/-0)
plugins/bn/qml/Keyboard_bn_url_search.qml (+94/-0)
plugins/bn/qml/qml.pro (+20/-0)
plugins/bn/src/bengaliplugin.h (+28/-0)
plugins/bn/src/bengaliplugin.json (+7/-0)
plugins/bn/src/src.pro (+46/-0)
plugins/plugins.pro (+1/-0)
qml/keys/LanguageMenu.qml (+1/-0)
To merge this branch: bzr merge lp:~tuxboy/ubuntu-keyboard/ubuntu-keyboard
Reviewer Review Type Date Requested Status
Ubuntu Phablet Team Pending
Review via email: mp+280393@code.launchpad.net

Description of the change

A keyboard layout (Probhat) for the Bengali (Bangla) language.

However, since Bengali fonts are missing from the system, this bug needs attention first: https://bugs.launchpad.net/ubuntu/+source/ubuntu-touch-meta/+bug/1525474

To post a comment you must log in.

Unmerged revisions

429. By Aniruddha Adhikary

Added Bengali keyboard

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2015-09-03 13:36:12 +0000
3+++ debian/control 2015-12-12 19:15:34 +0000
4@@ -124,6 +124,14 @@
5 Description: Ubuntu on-screen keyboard data files - Arabic
6 Data files for the Ubuntu virtual keyboard - Arabic
7
8+Package: ubuntu-keyboard-bengali
9+Architecture: any
10+Depends: ubuntu-keyboard (= ${binary:Version}),
11+ ${misc:Depends},
12+ ${shlibs:Depends},
13+Description: Ubuntu on-screen keyboard data files - Bengali
14+ Data files for the Ubuntu virtual keyboard - Bengali
15+
16 Package: ubuntu-keyboard-azerbaijani
17 Architecture: any
18 Depends: ubuntu-keyboard (= ${binary:Version}),
19
20=== added directory 'plugins/bn'
21=== added file 'plugins/bn/bn.pro'
22--- plugins/bn/bn.pro 1970-01-01 00:00:00 +0000
23+++ plugins/bn/bn.pro 2015-12-12 19:15:34 +0000
24@@ -0,0 +1,9 @@
25+CONFIG += ordered
26+TEMPLATE = subdirs
27+SUBDIRS = \
28+ src \
29+ qml
30+
31+QMAKE_EXTRA_TARGETS += check
32+check.target = check
33+check.CONFIG = recursive
34
35=== added directory 'plugins/bn/qml'
36=== added file 'plugins/bn/qml/Keyboard_bn.qml'
37--- plugins/bn/qml/Keyboard_bn.qml 1970-01-01 00:00:00 +0000
38+++ plugins/bn/qml/Keyboard_bn.qml 2015-12-12 19:15:34 +0000
39@@ -0,0 +1,92 @@
40+/*
41+ * Copyright 2013 Canonical Ltd.
42+ *
43+ * This program is free software; you can redistribute it and/or modify
44+ * it under the terms of the GNU Lesser General Public License as published by
45+ * the Free Software Foundation; version 3.
46+ *
47+ * This program is distributed in the hope that it will be useful,
48+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
49+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50+ * GNU Lesser General Public License for more details.
51+ *
52+ * You should have received a copy of the GNU Lesser General Public License
53+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
54+ */
55+
56+import QtQuick 2.0
57+import keys 1.0
58+
59+KeyPad {
60+ anchors.fill: parent
61+
62+ content: c1
63+ symbols: "languages/Keyboard_symbols.qml"
64+
65+ Column {
66+ id: c1
67+ anchors.fill: parent
68+ spacing: 0
69+
70+ Row {
71+ anchors.horizontalCenter: parent.horizontalCenter;
72+ spacing: 0
73+
74+ CharKey { label: "দ"; shifted: "ধ"; extended: ["১","1"]; extendedShifted: ["১","1"]; leftSide: true; }
75+ CharKey { label: "ূ"; shifted: "ঊ"; extended: ["২","2"]; extendedShifted: ["২","2"] }
76+ CharKey { label: "ী"; shifted: "ঈ"; extended: ["৩","3"]; extendedShifted: ["৩","3"] }
77+ CharKey { label: "র"; shifted: "ড়"; extended: ["৪","4"]; extendedShifted: ["৪","4"] }
78+ CharKey { label: "ট"; shifted: "ঠ"; extended: ["৫","5"]; extendedShifted: ["৫","5"] }
79+ CharKey { label: "এ"; shifted: "ঐ"; extended: ["৬","6"]; extendedShifted: ["৬","6"] }
80+ CharKey { label: "ু"; shifted: "উ"; extended: ["৭","7"]; extendedShifted: ["৭","7"] }
81+ CharKey { label: "ি"; shifted: "ই"; extended: ["৮","8"]; extendedShifted: ["৮","8"] }
82+ CharKey { label: "ও"; shifted: "ঔ"; extended: ["৯","9"]; extendedShifted: ["৯","9"] }
83+ CharKey { label: "প"; shifted: "ফ"; extended: ["০","9"]; extendedShifted: ["০","9"]; rightSide: true; }
84+ }
85+
86+ Row {
87+ anchors.horizontalCenter: parent.horizontalCenter;
88+ spacing: 0
89+
90+ CharKey { label: "া"; shifted: "অ"; extended: ["আ"]; extendedShifted: ["আ"]; leftSide: true; }
91+ CharKey { label: "স"; shifted: "ষ"; extended: ["৳","$"]; extendedShifted: ["৳","$"]; }
92+ CharKey { label: "ড"; shifted: "ঢ"; }
93+ CharKey { label: "ত"; shifted: "থ"; extended: ["ৎ"]; extendedShifted: ["ৎ"]; }
94+ CharKey { label: "গ"; shifted: "ঘ"; }
95+ CharKey { label: "হ"; shifted: "ঃ"; }
96+ CharKey { label: "জ"; shifted: "ঝ"; }
97+ CharKey { label: "ক"; shifted: "খ"; }
98+ CharKey { label: "ল"; shifted: "ং"; }
99+ CharKey { label: "ে"; shifted: "ো"; extended: ["ৈ"]; extendedShifted: ["ৌ"]; rightSide: true; }
100+ }
101+
102+ Row {
103+ anchors.horizontalCenter: parent.horizontalCenter;
104+ spacing: 0
105+
106+ ShiftKey {}
107+ CharKey { label: "য়"; shifted: "য"; }
108+ CharKey { label: "শ"; shifted: "ঢ়"; extended: ["ৃ"]; extendedShifted: ["ৃ"]; }
109+ CharKey { label: "চ"; shifted: "ছ"; extended: ["ঁ"]; extendedShifted: ["ঁ"]; }
110+ CharKey { label: "আ"; shifted: "ঋ"; }
111+ CharKey { label: "ব"; shifted: "ভ"; }
112+ CharKey { label: "ন"; shifted: "ণ"; }
113+ CharKey { label: "ম"; shifted: "ঙ"; extended: ["ঞ"]; extendedShifted: ["ঞ"];}
114+ BackspaceKey {}
115+ }
116+
117+ Item {
118+ anchors.left: parent.left
119+ anchors.right: parent.right
120+
121+ height: panel.keyHeight + units.gu(UI.row_margin);
122+
123+ SymbolShiftKey { id: symShiftKey; anchors.left: parent.left; height: parent.height; }
124+ LanguageKey { id: languageMenuButton; anchors.left: symShiftKey.right; height: parent.height; }
125+ CharKey { id: commaKey; label: "্"; shifted: "্"; extended: [",", "'", "\"", ";", ":", "@", "&", "(", ")"]; extendedShifted: ["'", "'", "\"", ";", ":", "@", "&", "(", ")"]; anchors.left: languageMenuButton.right; height: parent.height; }
126+ SpaceKey { id: spaceKey; anchors.left: commaKey.right; anchors.right: dotKey.left; noMagnifier: true; height: parent.height; }
127+ CharKey { id: dotKey; label: "।"; shifted: "."; extended: [".", "?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: enterKey.left; height: parent.height; }
128+ ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; }
129+ }
130+ } // column
131+}
132
133=== added file 'plugins/bn/qml/Keyboard_bn_email.qml'
134--- plugins/bn/qml/Keyboard_bn_email.qml 1970-01-01 00:00:00 +0000
135+++ plugins/bn/qml/Keyboard_bn_email.qml 2015-12-12 19:15:34 +0000
136@@ -0,0 +1,93 @@
137+/*
138+ * Copyright 2013 Canonical Ltd.
139+ *
140+ * This program is free software; you can redistribute it and/or modify
141+ * it under the terms of the GNU Lesser General Public License as published by
142+ * the Free Software Foundation; version 3.
143+ *
144+ * This program is distributed in the hope that it will be useful,
145+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
146+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
147+ * GNU Lesser General Public License for more details.
148+ *
149+ * You should have received a copy of the GNU Lesser General Public License
150+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
151+ */
152+
153+import QtQuick 2.0
154+import keys 1.0
155+
156+KeyPad {
157+ anchors.fill: parent
158+
159+ content: c1
160+ symbols: "languages/Keyboard_symbols.qml"
161+
162+ Column {
163+ id: c1
164+ anchors.fill: parent
165+ spacing: 0
166+
167+ Row {
168+ anchors.horizontalCenter: parent.horizontalCenter;
169+ spacing: 0
170+
171+ CharKey { label: "দ"; shifted: "ধ"; extended: ["১","1"]; extendedShifted: ["১","1"]; leftSide: true; }
172+ CharKey { label: "ূ"; shifted: "ঊ"; extended: ["২","2"]; extendedShifted: ["২","2"] }
173+ CharKey { label: "ী"; shifted: "ঈ"; extended: ["৩","3"]; extendedShifted: ["৩","3"] }
174+ CharKey { label: "র"; shifted: "ড়"; extended: ["৪","4"]; extendedShifted: ["৪","4"] }
175+ CharKey { label: "ট"; shifted: "ঠ"; extended: ["৫","5"]; extendedShifted: ["৫","5"] }
176+ CharKey { label: "এ"; shifted: "ঐ"; extended: ["৬","6"]; extendedShifted: ["৬","6"] }
177+ CharKey { label: "ু"; shifted: "উ"; extended: ["৭","7"]; extendedShifted: ["৭","7"] }
178+ CharKey { label: "ি"; shifted: "ই"; extended: ["৮","8"]; extendedShifted: ["৮","8"] }
179+ CharKey { label: "ও"; shifted: "ঔ"; extended: ["৯","9"]; extendedShifted: ["৯","9"] }
180+ CharKey { label: "প"; shifted: "ফ"; extended: ["০","9"]; extendedShifted: ["০","9"]; rightSide: true; }
181+ }
182+
183+ Row {
184+ anchors.horizontalCenter: parent.horizontalCenter;
185+ spacing: 0
186+
187+ CharKey { label: "া"; shifted: "অ"; extended: ["আ"]; extendedShifted: ["আ"]; leftSide: true; }
188+ CharKey { label: "স"; shifted: "ষ"; extended: ["৳","$"]; extendedShifted: ["৳","$"]; }
189+ CharKey { label: "ড"; shifted: "ঢ"; }
190+ CharKey { label: "ত"; shifted: "থ"; extended: ["ৎ"]; extendedShifted: ["ৎ"]; }
191+ CharKey { label: "গ"; shifted: "ঘ"; }
192+ CharKey { label: "হ"; shifted: "ঃ"; }
193+ CharKey { label: "জ"; shifted: "ঝ"; }
194+ CharKey { label: "ক"; shifted: "খ"; }
195+ CharKey { label: "ল"; shifted: "ং"; }
196+ CharKey { label: "ে"; shifted: "ো"; extended: ["ৈ"]; extendedShifted: ["ৌ"]; rightSide: true; }
197+ }
198+
199+ Row {
200+ anchors.horizontalCenter: parent.horizontalCenter;
201+ spacing: 0
202+
203+ ShiftKey {}
204+ CharKey { label: "য়"; shifted: "য"; }
205+ CharKey { label: "শ"; shifted: "ঢ়"; extended: ["ৃ"]; extendedShifted: ["ৃ"]; }
206+ CharKey { label: "চ"; shifted: "ছ"; extended: ["ঁ"]; extendedShifted: ["ঁ"]; }
207+ CharKey { label: "আ"; shifted: "ঋ"; }
208+ CharKey { label: "ব"; shifted: "ভ"; }
209+ CharKey { label: "ন"; shifted: "ণ"; }
210+ CharKey { label: "ম"; shifted: "ঙ"; extended: ["ঞ"]; extendedShifted: ["ঞ"];}
211+ BackspaceKey {}
212+ }
213+
214+ Item {
215+ anchors.left: parent.left
216+ anchors.right: parent.right
217+
218+ height: panel.keyHeight + units.gu(UI.row_margin);
219+
220+ SymbolShiftKey { id: symShiftKey; anchors.left: parent.left; height: parent.height; }
221+ LanguageKey { id: languageMenuButton; anchors.left: symShiftKey.right; height: parent.height; }
222+ CharKey { id: atKey; label: "@"; shifted: "@"; extended: ["্"]; extendedShifted: ["্"]; anchors.left: languageMenuButton.right; height: parent.height; }
223+ SpaceKey { id: spaceKey; anchors.left: atKey.right; anchors.right: urlKey.left; noMagnifier: true; height: parent.height; }
224+ UrlKey { id: urlKey; label: ".com"; extended: [".net", ".org", ".com.bd", ".net.bd", ".org.bd"]; anchors.right: dotKey.left; height: parent.height; }
225+ CharKey { id: dotKey; label: "."; shifted: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: enterKey.left; height: parent.height; }
226+ ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; }
227+ }
228+ } // column
229+}
230
231=== added file 'plugins/bn/qml/Keyboard_bn_url.qml'
232--- plugins/bn/qml/Keyboard_bn_url.qml 1970-01-01 00:00:00 +0000
233+++ plugins/bn/qml/Keyboard_bn_url.qml 2015-12-12 19:15:34 +0000
234@@ -0,0 +1,92 @@
235+/*
236+ * Copyright 2013 Canonical Ltd.
237+ *
238+ * This program is free software; you can redistribute it and/or modify
239+ * it under the terms of the GNU Lesser General Public License as published by
240+ * the Free Software Foundation; version 3.
241+ *
242+ * This program is distributed in the hope that it will be useful,
243+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
244+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
245+ * GNU Lesser General Public License for more details.
246+ *
247+ * You should have received a copy of the GNU Lesser General Public License
248+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
249+ */
250+
251+import QtQuick 2.0
252+import keys 1.0
253+
254+KeyPad {
255+ anchors.fill: parent
256+
257+ content: c1
258+ symbols: "languages/Keyboard_symbols.qml"
259+
260+ Column {
261+ id: c1
262+ anchors.fill: parent
263+ spacing: 0
264+
265+ Row {
266+ anchors.horizontalCenter: parent.horizontalCenter;
267+ spacing: 0
268+
269+ CharKey { label: "দ"; shifted: "ধ"; extended: ["১","1"]; extendedShifted: ["১","1"]; leftSide: true; }
270+ CharKey { label: "ূ"; shifted: "ঊ"; extended: ["২","2"]; extendedShifted: ["২","2"] }
271+ CharKey { label: "ী"; shifted: "ঈ"; extended: ["৩","3"]; extendedShifted: ["৩","3"] }
272+ CharKey { label: "র"; shifted: "ড়"; extended: ["৪","4"]; extendedShifted: ["৪","4"] }
273+ CharKey { label: "ট"; shifted: "ঠ"; extended: ["৫","5"]; extendedShifted: ["৫","5"] }
274+ CharKey { label: "এ"; shifted: "ঐ"; extended: ["৬","6"]; extendedShifted: ["৬","6"] }
275+ CharKey { label: "ু"; shifted: "উ"; extended: ["৭","7"]; extendedShifted: ["৭","7"] }
276+ CharKey { label: "ি"; shifted: "ই"; extended: ["৮","8"]; extendedShifted: ["৮","8"] }
277+ CharKey { label: "ও"; shifted: "ঔ"; extended: ["৯","9"]; extendedShifted: ["৯","9"] }
278+ CharKey { label: "প"; shifted: "ফ"; extended: ["০","9"]; extendedShifted: ["০","9"]; rightSide: true; }
279+ }
280+
281+ Row {
282+ anchors.horizontalCenter: parent.horizontalCenter;
283+ spacing: 0
284+
285+ CharKey { label: "া"; shifted: "অ"; extended: ["আ"]; extendedShifted: ["আ"]; leftSide: true; }
286+ CharKey { label: "স"; shifted: "ষ"; extended: ["৳","$"]; extendedShifted: ["৳","$"]; }
287+ CharKey { label: "ড"; shifted: "ঢ"; }
288+ CharKey { label: "ত"; shifted: "থ"; extended: ["ৎ"]; extendedShifted: ["ৎ"]; }
289+ CharKey { label: "গ"; shifted: "ঘ"; }
290+ CharKey { label: "হ"; shifted: "ঃ"; }
291+ CharKey { label: "জ"; shifted: "ঝ"; }
292+ CharKey { label: "ক"; shifted: "খ"; }
293+ CharKey { label: "ল"; shifted: "ং"; }
294+ CharKey { label: "ে"; shifted: "ো"; extended: ["ৈ"]; extendedShifted: ["ৌ"]; rightSide: true; }
295+ }
296+
297+ Row {
298+ anchors.horizontalCenter: parent.horizontalCenter;
299+ spacing: 0
300+
301+ ShiftKey {}
302+ CharKey { label: "য়"; shifted: "য"; }
303+ CharKey { label: "শ"; shifted: "ঢ়"; extended: ["ৃ"]; extendedShifted: ["ৃ"]; }
304+ CharKey { label: "চ"; shifted: "ছ"; extended: ["ঁ"]; extendedShifted: ["ঁ"]; }
305+ CharKey { label: "আ"; shifted: "ঋ"; }
306+ CharKey { label: "ব"; shifted: "ভ"; }
307+ CharKey { label: "ন"; shifted: "ণ"; }
308+ CharKey { label: "ম"; shifted: "ঙ"; extended: ["ঞ"]; extendedShifted: ["ঞ"];}
309+ BackspaceKey {}
310+ }
311+
312+ Item {
313+ anchors.left: parent.left
314+ anchors.right: parent.right
315+
316+ height: panel.keyHeight + units.gu(UI.row_margin);
317+
318+ SymbolShiftKey { id: symShiftKey; anchors.left: parent.left; height: parent.height; }
319+ LanguageKey { id: languageMenuButton; anchors.left: symShiftKey.right; height: parent.height; }
320+ CharKey { id: slashKey; label: "/"; shifted: "/"; extended: ["্"]; extendedShifted: ["্"]; anchors.left: languageMenuButton.right; height: parent.height; }
321+ UrlKey { id: urlKey; label: ".com"; extended: [".net", ".org", ".com.bd", ".net.bd", ".org.bd"]; anchors.right: dotKey.left; height: parent.height; }
322+ CharKey { id: dotKey; label: "."; shifted: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: enterKey.left; height: parent.height; }
323+ ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; }
324+ }
325+ } // column
326+}
327
328=== added file 'plugins/bn/qml/Keyboard_bn_url_search.qml'
329--- plugins/bn/qml/Keyboard_bn_url_search.qml 1970-01-01 00:00:00 +0000
330+++ plugins/bn/qml/Keyboard_bn_url_search.qml 2015-12-12 19:15:34 +0000
331@@ -0,0 +1,94 @@
332+/*
333+ * Copyright 2013 Canonical Ltd.
334+ *
335+ * This program is free software; you can redistribute it and/or modify
336+ * it under the terms of the GNU Lesser General Public License as published by
337+ * the Free Software Foundation; version 3.
338+ *
339+ * This program is distributed in the hope that it will be useful,
340+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
341+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
342+ * GNU Lesser General Public License for more details.
343+ *
344+ * You should have received a copy of the GNU Lesser General Public License
345+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
346+ */
347+
348+import QtQuick 2.0
349+import keys 1.0
350+
351+KeyPad {
352+ anchors.fill: parent
353+
354+ content: c1
355+ symbols: "languages/Keyboard_symbols.qml"
356+
357+ Column {
358+ id: c1
359+ anchors.fill: parent
360+
361+ spacing: 0
362+
363+ Row {
364+ anchors.horizontalCenter: parent.horizontalCenter;
365+ spacing: 0
366+
367+ CharKey { label: "দ"; shifted: "ধ"; extended: ["১","1"]; extendedShifted: ["১","1"]; leftSide: true; }
368+ CharKey { label: "ূ"; shifted: "ঊ"; extended: ["২","2"]; extendedShifted: ["২","2"] }
369+ CharKey { label: "ী"; shifted: "ঈ"; extended: ["৩","3"]; extendedShifted: ["৩","3"] }
370+ CharKey { label: "র"; shifted: "ড়"; extended: ["৪","4"]; extendedShifted: ["৪","4"] }
371+ CharKey { label: "ট"; shifted: "ঠ"; extended: ["৫","5"]; extendedShifted: ["৫","5"] }
372+ CharKey { label: "এ"; shifted: "ঐ"; extended: ["৬","6"]; extendedShifted: ["৬","6"] }
373+ CharKey { label: "ু"; shifted: "উ"; extended: ["৭","7"]; extendedShifted: ["৭","7"] }
374+ CharKey { label: "ি"; shifted: "ই"; extended: ["৮","8"]; extendedShifted: ["৮","8"] }
375+ CharKey { label: "ও"; shifted: "ঔ"; extended: ["৯","9"]; extendedShifted: ["৯","9"] }
376+ CharKey { label: "প"; shifted: "ফ"; extended: ["০","9"]; extendedShifted: ["০","9"]; rightSide: true; }
377+ }
378+
379+ Row {
380+ anchors.horizontalCenter: parent.horizontalCenter;
381+ spacing: 0
382+
383+ CharKey { label: "া"; shifted: "অ"; extended: ["আ"]; extendedShifted: ["আ"]; leftSide: true; }
384+ CharKey { label: "স"; shifted: "ষ"; extended: ["৳","$"]; extendedShifted: ["৳","$"]; }
385+ CharKey { label: "ড"; shifted: "ঢ"; }
386+ CharKey { label: "ত"; shifted: "থ"; extended: ["ৎ"]; extendedShifted: ["ৎ"]; }
387+ CharKey { label: "গ"; shifted: "ঘ"; }
388+ CharKey { label: "হ"; shifted: "ঃ"; }
389+ CharKey { label: "জ"; shifted: "ঝ"; }
390+ CharKey { label: "ক"; shifted: "খ"; }
391+ CharKey { label: "ল"; shifted: "ং"; }
392+ CharKey { label: "ে"; shifted: "ো"; extended: ["ৈ"]; extendedShifted: ["ৌ"]; rightSide: true; }
393+ }
394+
395+ Row {
396+ anchors.horizontalCenter: parent.horizontalCenter;
397+ spacing: 0
398+
399+ ShiftKey {}
400+ CharKey { label: "য়"; shifted: "য"; }
401+ CharKey { label: "শ"; shifted: "ঢ়"; extended: ["ৃ"]; extendedShifted: ["ৃ"]; }
402+ CharKey { label: "চ"; shifted: "ছ"; extended: ["ঁ"]; extendedShifted: ["ঁ"]; }
403+ CharKey { label: "আ"; shifted: "ঋ"; }
404+ CharKey { label: "ব"; shifted: "ভ"; }
405+ CharKey { label: "ন"; shifted: "ণ"; }
406+ CharKey { label: "ম"; shifted: "ঙ"; extended: ["ঞ"]; extendedShifted: ["ঞ"];}
407+ BackspaceKey {}
408+ }
409+
410+ Item {
411+ anchors.left: parent.left
412+ anchors.right: parent.right
413+
414+ height: panel.keyHeight + units.gu(UI.row_margin);
415+
416+ SymbolShiftKey { id: symShiftKey; anchors.left: parent.left; height: parent.height; }
417+ LanguageKey { id: languageMenuButton; anchors.left: symShiftKey.right; height: parent.height; }
418+ CharKey { id: slashKey; label: "/"; shifted: "/"; extended: ["্"]; extendedShifted: ["্"]; anchors.left: languageMenuButton.right; height: parent.height; }
419+ SpaceKey { id: spaceKey; anchors.left: slashKey.right; anchors.right: urlKey.left; noMagnifier: true; height: parent.height; }
420+ UrlKey { id: urlKey; label: ".com"; extended: [".net", ".org", ".com.bd", ".net.bd", ".org.bd"]; anchors.right: dotKey.left; height: parent.height; }
421+ CharKey { id: dotKey; label: "."; shifted: "."; extended: ["?", "-", "_", "!", "+", "%","#","/"]; extendedShifted: ["?", "-", "_", "!", "+", "%","#","/"]; anchors.right: enterKey.left; height: parent.height; }
422+ ReturnKey { id: enterKey; anchors.right: parent.right; height: parent.height; }
423+ }
424+ } // column
425+}
426
427=== added file 'plugins/bn/qml/qml.pro'
428--- plugins/bn/qml/qml.pro 1970-01-01 00:00:00 +0000
429+++ plugins/bn/qml/qml.pro 2015-12-12 19:15:34 +0000
430@@ -0,0 +1,20 @@
431+TOP_BUILDDIR = $$OUT_PWD/../../..
432+TOP_SRCDIR = $$PWD/../../..
433+
434+include($${TOP_SRCDIR}/config.pri)
435+
436+TARGET = dummy
437+TEMPLATE = lib
438+
439+lang_bn.path = "$${UBUNTU_KEYBOARD_LIB_DIR}/bn/"
440+lang_bn.files = *.qml *.js
441+
442+INSTALLS += lang_bn
443+
444+# for QtCreator
445+OTHER_FILES += \
446+ Keyboard_bn.qml \
447+ Keyboard_bn_email.qml \
448+ Keyboard_bn_url.qml \
449+ Keyboard_bn_url_search.qml
450+
451
452=== added directory 'plugins/bn/src'
453=== added file 'plugins/bn/src/bengaliplugin.h'
454--- plugins/bn/src/bengaliplugin.h 1970-01-01 00:00:00 +0000
455+++ plugins/bn/src/bengaliplugin.h 2015-12-12 19:15:34 +0000
456@@ -0,0 +1,28 @@
457+#ifndef BENGALIPLUGIN_H
458+#define BENGALIPLUGIN_H
459+
460+#include <QObject>
461+#include "languageplugininterface.h"
462+#include "westernlanguagesplugin.h"
463+
464+// XXX: Indic scripts don't have capital letters
465+// AutoCaps should be turned off for Bengali
466+
467+class BengaliPlugin : public WesternLanguagesPlugin
468+{
469+ Q_OBJECT
470+ Q_INTERFACES(LanguagePluginInterface)
471+ Q_PLUGIN_METADATA(IID "org.qt-project.Qt.Examples.BengaliPlugin" FILE "bengaliplugin.json")
472+
473+public:
474+ explicit BengaliPlugin(QObject* parent = 0)
475+ : WesternLanguagesPlugin(parent)
476+ {
477+ }
478+
479+ virtual ~BengaliPlugin()
480+ {
481+ }
482+};
483+
484+#endif // BENGALIPLUGIN_H
485
486=== added file 'plugins/bn/src/bengaliplugin.json'
487--- plugins/bn/src/bengaliplugin.json 1970-01-01 00:00:00 +0000
488+++ plugins/bn/src/bengaliplugin.json 2015-12-12 19:15:34 +0000
489@@ -0,0 +1,7 @@
490+{
491+ "IID": "org.qt-project.Qt.Examples.BengaliPlugin",
492+ "MetaData": {
493+ },
494+ "className": "BengaliPlugin",
495+ "debug": true
496+}
497
498=== added file 'plugins/bn/src/database_ar.db'
499Binary files plugins/bn/src/database_ar.db 1970-01-01 00:00:00 +0000 and plugins/bn/src/database_ar.db 2015-12-12 19:15:34 +0000 differ
500=== added file 'plugins/bn/src/free_ebook.txt'
501=== added file 'plugins/bn/src/src.pro'
502--- plugins/bn/src/src.pro 1970-01-01 00:00:00 +0000
503+++ plugins/bn/src/src.pro 2015-12-12 19:15:34 +0000
504@@ -0,0 +1,46 @@
505+TOP_BUILDDIR = $$OUT_PWD/../../..
506+TOP_SRCDIR = $$PWD/../../..
507+
508+include($${TOP_SRCDIR}/config.pri)
509+
510+TEMPLATE = lib
511+CONFIG += plugin
512+QT += widgets
513+INCLUDEPATH += \
514+ $${TOP_SRCDIR}/src/ \
515+ $${TOP_SRCDIR}/src/lib/ \
516+ $${TOP_SRCDIR}/src/lib/logic/
517+ $${TOP_SRCDIR}/plugins/westernsupport
518+
519+HEADERS = \
520+ bengaliplugin.h
521+
522+TARGET = $$qtLibraryTarget(bnplugin)
523+
524+EXAMPLE_FILES = bengaliplugin.json
525+
526+# generate database for presage:
527+PLUGIN_INSTALL_PATH = $${UBUNTU_KEYBOARD_LIB_DIR}/bn/
528+
529+lang_db_bn.commands += \
530+ rm -f $$PWD/database_bn.db && \
531+ text2ngram -n 1 -l -f sqlite -o $$PWD/database_bn.db $$PWD/free_ebook.txt && \
532+ text2ngram -n 2 -l -f sqlite -o $$PWD/database_bn.db $$PWD/free_ebook.txt && \
533+ text2ngram -n 3 -l -f sqlite -o $$PWD/database_bn.db $$PWD/free_ebook.txt
534+lang_db_bn.files += $$PWD/database_bn.db
535+lang_db_bn_install.path = $$PLUGIN_INSTALL_PATH
536+lang_db_bn_install.files += $$PWD/database_bn.db
537+
538+QMAKE_EXTRA_TARGETS += lang_db_bn lang_db_bn_install
539+
540+target.path = $$PLUGIN_INSTALL_PATH
541+INSTALLS += target lang_db_bn_install
542+
543+OTHER_FILES += \
544+ bengaliplugin.json \
545+ free_ebook.txt
546+
547+LIBS += $${TOP_BUILDDIR}/plugins/plugins/libwesternsupport.a -lpresage -lhunspell
548+
549+INCLUDEPATH += $$PWD/../../westernsupport
550+DEPENDPATH += $$PWD/../../westernsupport
551
552=== added directory 'plugins/bn/tests'
553=== modified file 'plugins/plugins.pro'
554--- plugins/plugins.pro 2015-05-11 12:52:42 +0000
555+++ plugins/plugins.pro 2015-12-12 19:15:34 +0000
556@@ -4,6 +4,7 @@
557 westernsupport \
558 ar \
559 az \
560+ bn \
561 bs \
562 ca \
563 cs \
564
565=== modified file 'qml/keys/LanguageMenu.qml'
566--- qml/keys/LanguageMenu.qml 2015-05-11 11:50:24 +0000
567+++ qml/keys/LanguageMenu.qml 2015-12-12 19:15:34 +0000
568@@ -94,6 +94,7 @@
569 {
570 if (languageId == "ar") return i18n.tr("Arabic");
571 if (languageId == "az") return i18n.tr("Azerbaijani");
572+ if (languageId == "bn") return i18n.tr("Bengali");
573 if (languageId == "bs") return i18n.tr("Bosnian");
574 if (languageId == "ca") return i18n.tr("Catalan");
575 if (languageId == "cs") return i18n.tr("Czech");

Subscribers

People subscribed via source and target branches