[caribou/kb-rework: 10/13] Add data/keyboards folder



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>&lt;big&gt;â?«&lt;/big&gt;</label>
+	  <width>1.5</width>
+	</key>
+      </row>
+      <row>
+	<key>
+	  <label>&lt;b&gt;&lt;sup&gt;â??&lt;/sup&gt;&lt;sub&gt;â??&lt;/sub&gt;&lt;/b&gt;"</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>&lt;b&gt;â?²&lt;/b&gt;</label>
+	  <width>2</width>
+	</key>
+      </row>
+      <row>
+	<key>
+	  <label>&lt;b&gt;â??&lt;/b&gt;</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>&lt;small&gt;&lt;i&gt;1%+&lt;/i&gt;&lt;/small&gt;</label>
+	  <key_type>layout_switcher</key_type>
+	  <value>special</value>
+	  <width>1.5</width>
+	</key>
+	<key>
+	  <label>&lt;small&gt;&lt;b&gt;Ctrl&lt;/b&gt;&lt;/small&gt;</label>
+	  <value>control</value>
+	  <key_type>mask</key_type>
+	  <width>1.5</width>
+	</key>
+	<key>
+	  <label>&lt;small&gt;&lt;b&gt;Alt&lt;/b&gt;&lt;/small&gt;</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="&quot;"/>
+	<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>&lt;big&gt;â?«&lt;/big&gt;</label>
+	  <width>1.5</width>
+	</key>
+      </row>
+      <row>
+	<key>
+	  <label>&lt;b&gt;&lt;sup&gt;â??&lt;/sup&gt;&lt;sub&gt;â??&lt;/sub&gt;&lt;/b&gt;"</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>&lt;b&gt;â?²&lt;/b&gt;</label>
+	  <width>2</width>
+	</key>
+      </row>
+      <row>
+	<key>
+	  <label>&lt;b&gt;â??&lt;/b&gt;</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>&lt;small&gt;&lt;i&gt;1%+&lt;/i&gt;&lt;/small&gt;</label>
+	  <key_type>layout_switcher</key_type>
+	  <value>special</value>
+	  <width>1.5</width>
+	</key>
+	<key>
+	  <label>&lt;small&gt;&lt;b&gt;Ctrl&lt;/b&gt;&lt;/small&gt;</label>
+	  <value>control</value>
+	  <key_type>mask</key_type>
+	  <width>1.5</width>
+	</key>
+	<key>
+	  <label>&lt;small&gt;&lt;b&gt;Alt&lt;/b&gt;&lt;/small&gt;</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="&quot;"/>
+	<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>&lt;big&gt;â?«&lt;/big&gt;</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="&amp;"/>
+	<key value="*"/>
+	<key value="("/>
+	<key value=")"/>
+	<key value="-"/>
+	<key value="+"/>
+	<key key_type="dummy" width="0.25"/>
+	<key>
+	  <value>Return</value>
+	  <label>&lt;b&gt;â?²&lt;/b&gt;</label>
+	  <width>2</width>
+	</key>
+      </row>
+      <row>
+	<key key_type="dummy" width="0.25"/>
+	<key value="&lt;"/>
+	<key value="&gt;"/>
+	<key value="â?¬"/>
+	<key value="£"/>
+	<key value="{"/>
+	<key value="}"/>
+	<key value="["/>
+	<key value="]"/>
+	<key value="_" label="&lt;small&gt;_&lt;/small&gt;"/>
+	<key value="="/>
+	<key key_type="dummy" width="0.25"/>
+	<key value="Up" label="&lt;b&gt;â??&lt;/b&gt;"/>
+	<key value="\"/>
+      </row>
+      <row>
+	<key>
+	  <label>&lt;small&gt;&lt;i&gt;abc&lt;/i&gt;&lt;/small&gt;</label>
+	  <key_type>layout_switcher</key_type>
+	  <value>lowercase</value>
+	  <width>1.5</width>
+	</key>
+	<key>
+	  <label>&lt;small&gt;&lt;b&gt;Ctrl&lt;/b&gt;&lt;/small&gt;</label>
+	  <value>control</value>
+	  <key_type>mask</key_type>
+	  <width>1.5</width>
+	</key>
+	<key>
+	  <label>&lt;small&gt;&lt;b&gt;Alt&lt;/b&gt;&lt;/small&gt;</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="&lt;b&gt;â??&lt;/b&gt;"/>
+	<key value="Down" label="&lt;b&gt;â??&lt;/b&gt;"/>
+	<key value="Right" label="&lt;b&gt;â??&lt;/b&gt;"/>
+      </row>
+    </rows>
+  </layout>
+</keyboard>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]