[caribou/kb-rework: 10/13] Add data/keyboards folder
- From: Eitan Isaacson <eitani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [caribou/kb-rework: 10/13] Add data/keyboards folder
- Date: Thu, 10 Jun 2010 15:42:40 +0000 (UTC)
commit 13a955b17c0a08ebe43cbf4e470ca61f738765a0
Author: Joaquim Rocha <jrocha igalia com>
Date: Wed May 26 11:54:39 2010 +0200
Add data/keyboards folder
This folder should have the keyboard layouts, in XML or JSON formats.
https://bugzilla.gnome.org/show_bug.cgi?id=613229
configure.ac | 1 +
data/Makefile.am | 2 +
data/keyboards/Makefile.am | 4 +
data/keyboards/qwerty.xml | 274 ++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 281 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6713d4b..209a8b7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -46,4 +46,5 @@ caribou/i18n.py
bin/Makefile
bin/caribou
data/Makefile
+data/keyboards/Makefile
])
diff --git a/data/Makefile.am b/data/Makefile.am
index c40b7d2..7b7315a 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -1,3 +1,5 @@
+SUBDIRS = keyboards
+
gtkbuilderdir = $(datadir)/caribou
gtkbuilder_DATA = caribou-prefs.ui
diff --git a/data/keyboards/Makefile.am b/data/keyboards/Makefile.am
new file mode 100644
index 0000000..89ee52b
--- /dev/null
+++ b/data/keyboards/Makefile.am
@@ -0,0 +1,4 @@
+keyboardsdir = $(datadir)/caribou/keyboards/
+keyboards_DATA = qwerty.xml
+
+EXTRA_DIST = $(keyboards_DATA)
diff --git a/data/keyboards/qwerty.xml b/data/keyboards/qwerty.xml
new file mode 100644
index 0000000..0d444fb
--- /dev/null
+++ b/data/keyboards/qwerty.xml
@@ -0,0 +1,274 @@
+<keyboard>
+ <layout>
+ <name>lowercase</name>
+ <rows>
+ <row>
+ <key key_type="preferences"/>
+ <key value="q"/>
+ <key value="w"/>
+ <key value="e"/>
+ <key value="r"/>
+ <key value="t"/>
+ <key value="y"/>
+ <key value="u"/>
+ <key value="i"/>
+ <key value="o"/>
+ <key value="p"/>
+ <key>
+ <value>BackSpace</value>
+ <label><big>â?«</big></label>
+ <width>1.5</width>
+ </key>
+ </row>
+ <row>
+ <key>
+ <label><b><sup>â??</sup><sub>â??</sub></b>"</label>
+ <value>Tab</value>
+ </key>
+ <key key_type="dummy" width="0.25"/>
+ <key value="a"/>
+ <key value="s"/>
+ <key value="d"/>
+ <key value="f"/>
+ <key value="g"/>
+ <key value="h"/>
+ <key value="j"/>
+ <key value="k"/>
+ <key value="l"/>
+ <key key_type="dummy" width="0.25"/>
+ <key>
+ <value>Return</value>
+ <label><b>â?²</b></label>
+ <width>2</width>
+ </key>
+ </row>
+ <row>
+ <key>
+ <label><b>â??</b></label>
+ <key_type>layout_switcher</key_type>
+ <value>uppercase</value>
+ <width>1.5</width>
+ </key>
+ <key key_type="dummy" width="0.5"/>
+ <key value="z"/>
+ <key value="x"/>
+ <key value="c"/>
+ <key value="v"/>
+ <key value="b"/>
+ <key value="n"/>
+ <key value="m"/>
+ <key key_type="dummy" width="0.5"/>
+ <key value=","/>
+ <key value="."/>
+ <key value=";"/>
+ </row>
+ <row>
+ <key>
+ <label><small><i>1%+</i></small></label>
+ <key_type>layout_switcher</key_type>
+ <value>special</value>
+ <width>1.5</width>
+ </key>
+ <key>
+ <label><small><b>Ctrl</b></small></label>
+ <value>control</value>
+ <key_type>mask</key_type>
+ <width>1.5</width>
+ </key>
+ <key>
+ <label><small><b>Alt</b></small></label>
+ <value>mod1</value>
+ <key_type>mask</key_type>
+ <width>1.5</width>
+ </key>
+ <key key_type="dummy" width="0.5"/>
+ <key label="______" value=" " width="3"/>
+ <key key_type="dummy" width="0.5"/>
+ <key value="'"/>
+ <key value="""/>
+ <key value="!"/>
+ <key value="?"/>
+ </row>
+ </rows>
+ </layout>
+
+ <layout>
+ <name>uppercase</name>
+ <rows>
+ <row>
+ <key key_type="preferences"/>
+ <key value="Q"/>
+ <key value="W"/>
+ <key value="E"/>
+ <key value="R"/>
+ <key value="T"/>
+ <key value="Y"/>
+ <key value="U"/>
+ <key value="I"/>
+ <key value="O"/>
+ <key value="P"/>
+ <key>
+ <value>BackSpace</value>
+ <label><big>â?«</big></label>
+ <width>1.5</width>
+ </key>
+ </row>
+ <row>
+ <key>
+ <label><b><sup>â??</sup><sub>â??</sub></b>"</label>
+ <value>Tab</value>
+ </key>
+ <key key_type="dummy" width="0.25"/>
+ <key value="A"/>
+ <key value="S"/>
+ <key value="D"/>
+ <key value="F"/>
+ <key value="G"/>
+ <key value="H"/>
+ <key value="J"/>
+ <key value="K"/>
+ <key value="L"/>
+ <key key_type="dummy" width="0.25"/>
+ <key>
+ <value>Return</value>
+ <label><b>â?²</b></label>
+ <width>2</width>
+ </key>
+ </row>
+ <row>
+ <key>
+ <label><b>â??</b></label>
+ <key_type>layout_switcher</key_type>
+ <value>lowercase</value>
+ <width>1.5</width>
+ </key>
+ <key key_type="dummy" width="0.5"/>
+ <key value="Z"/>
+ <key value="X"/>
+ <key value="C"/>
+ <key value="V"/>
+ <key value="B"/>
+ <key value="N"/>
+ <key value="M"/>
+ <key key_type="dummy" width="0.5"/>
+ <key value=","/>
+ <key value="."/>
+ <key value=";"/>
+ </row>
+ <row>
+ <key>
+ <label><small><i>1%+</i></small></label>
+ <key_type>layout_switcher</key_type>
+ <value>special</value>
+ <width>1.5</width>
+ </key>
+ <key>
+ <label><small><b>Ctrl</b></small></label>
+ <value>control</value>
+ <key_type>mask</key_type>
+ <width>1.5</width>
+ </key>
+ <key>
+ <label><small><b>Alt</b></small></label>
+ <value>mod1</value>
+ <key_type>mask</key_type>
+ <width>1.5</width>
+ </key>
+ <key key_type="dummy" width="0.5"/>
+ <key label="______" value=" " width="3"/>
+ <key key_type="dummy" width="0.5"/>
+ <key value="'"/>
+ <key value="""/>
+ <key value="!"/>
+ <key value="?"/>
+ </row>
+ </rows>
+ </layout>
+
+ <layout>
+ <name>special</name>
+ <rows>
+ <row>
+ <key key_type="preferences"/>
+ <key value="1"/>
+ <key value="2"/>
+ <key value="3"/>
+ <key value="4"/>
+ <key value="5"/>
+ <key value="6"/>
+ <key value="7"/>
+ <key value="8"/>
+ <key value="9"/>
+ <key value="0"/>
+ <key>
+ <value>BackSpace</value>
+ <label><big>â?«</big></label>
+ <width>1.5</width>
+ </key>
+ </row>
+ <row>
+ <key key_type="dummy" width="0.25"/>
+ <key key_type="dummy" width="0.25"/>
+ <key value="@"/>
+ <key value="#"/>
+ <key value="$"/>
+ <key value="%"/>
+ <key value="&"/>
+ <key value="*"/>
+ <key value="("/>
+ <key value=")"/>
+ <key value="-"/>
+ <key value="+"/>
+ <key key_type="dummy" width="0.25"/>
+ <key>
+ <value>Return</value>
+ <label><b>â?²</b></label>
+ <width>2</width>
+ </key>
+ </row>
+ <row>
+ <key key_type="dummy" width="0.25"/>
+ <key value="<"/>
+ <key value=">"/>
+ <key value="â?¬"/>
+ <key value="£"/>
+ <key value="{"/>
+ <key value="}"/>
+ <key value="["/>
+ <key value="]"/>
+ <key value="_" label="<small>_</small>"/>
+ <key value="="/>
+ <key key_type="dummy" width="0.25"/>
+ <key value="Up" label="<b>â??</b>"/>
+ <key value="\"/>
+ </row>
+ <row>
+ <key>
+ <label><small><i>abc</i></small></label>
+ <key_type>layout_switcher</key_type>
+ <value>lowercase</value>
+ <width>1.5</width>
+ </key>
+ <key>
+ <label><small><b>Ctrl</b></small></label>
+ <value>control</value>
+ <key_type>mask</key_type>
+ <width>1.5</width>
+ </key>
+ <key>
+ <label><small><b>Alt</b></small></label>
+ <value>mod1</value>
+ <key_type>mask</key_type>
+ <width>1.5</width>
+ </key>
+ <key key_type="dummy" width="0.5"/>
+ <key label="______" value=" " width="3"/>
+ <key key_type="dummy" width="0.5"/>
+ <key value="|"/>
+ <key value="Left" label="<b>â??</b>"/>
+ <key value="Down" label="<b>â??</b>"/>
+ <key value="Right" label="<b>â??</b>"/>
+ </row>
+ </rows>
+ </layout>
+</keyboard>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]