[gnome-initial-setup/shell/4765: 300/362] Keyboard detection trees for Spanish and Portuguese



commit 1124bd2253ccff62c44464905b1de90c17409181
Author: Roddy Shuler <roddy endlessm com>
Date:   Fri Dec 5 13:37:30 2014 -0800

    Keyboard detection trees for Spanish and Portuguese
    
    If the user's language is Spanish or Portuguese,
    assume the user is using one of the following keyboards:
    br, es, latam, pt, or us.
    This greatly simplifies the detection logic.
    (If the user has something different, he/she can still
    manually select a specific layout.)
    
    For now, we use the same trees for Spanish and Portuguese,
    under the assumption that there may be some cross-pollination
    of Spanish and Portuguese speakers and keyboards throughout
    Latin America.
    
    The maps are generated via the keymaptree script provided
    with the source of console-setup-1.70ubuntu10, by modifying
    keymaptree.use to include only the relevant layouts.
    
    [endlessm/eos-shell#4213]

 .../pages/keyboard/detector-trees/es/pc105.tree    |   29 ++++++++++++++++++++
 .../pages/keyboard/detector-trees/pt/pc105.tree    |   29 ++++++++++++++++++++
 .../pages/keyboard/keyboard.gresource.xml          |    2 +
 3 files changed, 60 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/keyboard/detector-trees/es/pc105.tree 
b/gnome-initial-setup/pages/keyboard/detector-trees/es/pc105.tree
new file mode 100644
index 0000000..1591201
--- /dev/null
+++ b/gnome-initial-setup/pages/keyboard/detector-trees/es/pc105.tree
@@ -0,0 +1,29 @@
+STEP 0
+FINDP ç
+YES 4
+NO 1
+STEP 1
+FINDP ñ
+YES 3
+NO 2
+STEP 2
+MAP us
+STEP 3
+MAP latam
+STEP 4
+PRESS º
+CODE 40 5
+CODE 41 6
+CODE 50 7
+CODE 43 8
+CODE 86 8
+STEP 7
+PRESS ç
+CODE 43 6
+CODE 39 5
+STEP 6
+MAP es
+STEP 5
+MAP pt
+STEP 8
+MAP br
diff --git a/gnome-initial-setup/pages/keyboard/detector-trees/pt/pc105.tree 
b/gnome-initial-setup/pages/keyboard/detector-trees/pt/pc105.tree
new file mode 100644
index 0000000..1591201
--- /dev/null
+++ b/gnome-initial-setup/pages/keyboard/detector-trees/pt/pc105.tree
@@ -0,0 +1,29 @@
+STEP 0
+FINDP ç
+YES 4
+NO 1
+STEP 1
+FINDP ñ
+YES 3
+NO 2
+STEP 2
+MAP us
+STEP 3
+MAP latam
+STEP 4
+PRESS º
+CODE 40 5
+CODE 41 6
+CODE 50 7
+CODE 43 8
+CODE 86 8
+STEP 7
+PRESS ç
+CODE 43 6
+CODE 39 5
+STEP 6
+MAP es
+STEP 5
+MAP pt
+STEP 8
+MAP br
diff --git a/gnome-initial-setup/pages/keyboard/keyboard.gresource.xml 
b/gnome-initial-setup/pages/keyboard/keyboard.gresource.xml
index 73ed9d5..5f6d47a 100644
--- a/gnome-initial-setup/pages/keyboard/keyboard.gresource.xml
+++ b/gnome-initial-setup/pages/keyboard/keyboard.gresource.xml
@@ -5,5 +5,7 @@
     <file preprocess="xml-stripblanks">input-chooser.ui</file>
     <file preprocess="xml-stripblanks">keyboard-detector.ui</file>
     <file>detector-trees/C/pc105.tree</file>
+    <file>detector-trees/es/pc105.tree</file>
+    <file>detector-trees/pt/pc105.tree</file>
   </gresource>
 </gresources>


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