Linux console tools development discussion
 help / color / mirror / Atom feed
* [kbd]  duplicate filenames
@ 2008-03-15 18:42 Roman Kyrylych
  2008-03-15 18:43 ` Roman Kyrylych
  2008-03-15 21:28 ` Alexey Gladkov
  0 siblings, 2 replies; 6+ messages in thread
From: Roman Kyrylych @ 2008-03-15 18:42 UTC (permalink / raw)
  To: kbd

[-- Attachment #1: Type: text/plain, Size: 580 bytes --]

Hi!

I've found that some keymaps' variants have the same filename.
This is very bad, because doing loadkeys es, for example, will load
olpc variant which is not what 99,99% of users need. ;-)

$ ./find-duplicate-names.sh
/usr/share/kbd/keymaps/i386/dvorak/no.map.gz
/usr/share/kbd/keymaps/i386/fgGIod/trf.map.gz
/usr/share/kbd/keymaps/i386/olpc/es.map.gz
/usr/share/kbd/keymaps/i386/qwerty/es.map.gz
/usr/share/kbd/keymaps/i386/qwerty/no.map.gz
/usr/share/kbd/keymaps/i386/qwerty/trf.map.gz

Please apply the patch attached below.

-- 
Roman Kyrylych (Роман Кирилич)

[-- Attachment #2: find-duplicate-names.sh --]
[-- Type: application/x-sh, Size: 318 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [kbd] duplicate filenames
  2008-03-15 18:42 [kbd] duplicate filenames Roman Kyrylych
@ 2008-03-15 18:43 ` Roman Kyrylych
  2008-03-15 21:28 ` Alexey Gladkov
  1 sibling, 0 replies; 6+ messages in thread
From: Roman Kyrylych @ 2008-03-15 18:43 UTC (permalink / raw)
  To: kbd

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

2008/3/15, Roman Kyrylych <roman.kyrylych@gmail.com>:
> Hi!
>
>  I've found that some keymaps' variants have the same filename.
>  This is very bad, because doing loadkeys es, for example, will load
>  olpc variant which is not what 99,99% of users need. ;-)
>
>  $ ./find-duplicate-names.sh
>  /usr/share/kbd/keymaps/i386/dvorak/no.map.gz
>  /usr/share/kbd/keymaps/i386/fgGIod/trf.map.gz
>  /usr/share/kbd/keymaps/i386/olpc/es.map.gz
>  /usr/share/kbd/keymaps/i386/qwerty/es.map.gz
>  /usr/share/kbd/keymaps/i386/qwerty/no.map.gz
>  /usr/share/kbd/keymaps/i386/qwerty/trf.map.gz
>
>  Please apply the patch attached below.

Oops, now really attached. :-)


-- 
Roman Kyrylych (Роман Кирилич)

[-- Attachment #2: find-duplicate-names.sh --]
[-- Type: application/x-sh, Size: 318 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: 0001-Rename-keymaps-with-same-filenames.patch --]
[-- Type: text/x-patch; name=0001-Rename-keymaps-with-same-filenames.patch, Size: 27345 bytes --]

From 22cc5a37e41a8937747f3416a45e923e853fc452 Mon Sep 17 00:00:00 2001
From: Roman Kyrylych <roman@archlinux.org>
Date: Sat, 15 Mar 2008 20:38:42 +0200
Subject: [PATCH] Rename keymaps with same filenames

Signed-off-by: Roman Kyrylych <roman@archlinux.org>
---
 data/keymaps/i386/dvorak/no-dvorak.map  |  104 +++++++++++++++++++++++++
 data/keymaps/i386/dvorak/no.map         |  104 -------------------------
 data/keymaps/i386/fgGIod/trf-fgGIod.map |  125 +++++++++++++++++++++++++++++++
 data/keymaps/i386/fgGIod/trf.map        |  125 -------------------------------
 data/keymaps/i386/olpc/es-olpc.map      |   80 ++++++++++++++++++++
 data/keymaps/i386/olpc/es.map           |   80 --------------------
 data/keymaps/i386/olpc/pt-olpc.map      |   68 +++++++++++++++++
 data/keymaps/i386/olpc/pt.map           |   68 -----------------
 8 files changed, 377 insertions(+), 377 deletions(-)
 create mode 100644 data/keymaps/i386/dvorak/no-dvorak.map
 delete mode 100644 data/keymaps/i386/dvorak/no.map
 create mode 100644 data/keymaps/i386/fgGIod/trf-fgGIod.map
 delete mode 100644 data/keymaps/i386/fgGIod/trf.map
 create mode 100644 data/keymaps/i386/olpc/es-olpc.map
 delete mode 100644 data/keymaps/i386/olpc/es.map
 create mode 100644 data/keymaps/i386/olpc/pt-olpc.map
 delete mode 100644 data/keymaps/i386/olpc/pt.map

diff --git a/data/keymaps/i386/dvorak/no-dvorak.map b/data/keymaps/i386/dvorak/no-dvorak.map
new file mode 100644
index 0000000..2f15c57
--- /dev/null
+++ b/data/keymaps/i386/dvorak/no-dvorak.map
@@ -0,0 +1,104 @@
+# Date: Sun, 10 Feb 2008 10:56:47 +0100
+# From: "Thomas Geirhovd" <thomas@tg90nor.net>
+# Subject: Norwegian dvorak keymap
+# 
+# Hi,
+# 
+# I made a norwegian dvorak keymap for the console.
+# It can be found on http://www.tg90nor.net/no-dvorak.map.gz
+# Feel free to include it in kbd if you want to.
+# 
+# -- 
+# Regards,
+# Thomas Geirhovd
+#
+keymaps 0-2,4-6,8-9,12
+alt_is_meta
+include "linux-with-alt-and-altgr.inc"
+strings as usual
+
+		keycode   1 = Escape
+	alt	keycode   1 = Meta_Escape
+		keycode   2 = one	exclam
+	alt	keycode   2 = Meta_one
+		keycode   3 = two	quotedbl	at
+	control	keycode   3 = nul
+	alt	keycode   3 = Meta_two
+		keycode   4 = three	numbersign
+	control	keycode   4 = Escape
+	alt	keycode   4 = Meta_three
+		keycode   5 = four	dollar		dollar
+	control	keycode   5 = Control_backslash
+	alt	keycode   5 = Meta_four
+		keycode   6 = five	percent         
+	control	keycode   6 = Control_bracketright
+	alt	keycode   6 = Meta_five
+		keycode   7 = six	ampersand
+	control	keycode   7 = Control_asciicircum
+	alt	keycode   7 = Meta_six
+		keycode   8 = seven	slash		braceleft
+	control	keycode   8 = Control_underscore
+	alt	keycode   8 =Meta_seven
+		keycode   9 = eight	parenleft	bracketleft
+	control	keycode   9 = Delete
+	alt	keycode   9 = Meta_eight
+		keycode  10 = nine	parenright	bracketright
+	alt	keycode  10 = Meta_nine
+		keycode  11 = zero	equal		braceright
+	alt	keycode  11 = Meta_zero
+		keycode  12 = plus	question       
+	control	keycode  12 = Control_underscore
+	alt	keycode  12 = Meta_minus
+		keycode  13 = backslash	grave		apostrophe
+	alt	keycode  13 = Meta_equal
+		keycode  14 = Delete
+	alt	keycode  14 = Meta_Delete
+		keycode  15 = Tab              
+	shift	keycode  15 = Meta_Tab
+		keycode  16 = +aring	+Aring
+		keycode  17 = comma            semicolon            
+		keycode  18 = period           colon       
+		keycode  19 = p               
+		keycode  20 = y               
+		keycode  21 = f               
+		keycode  22 = g               
+		keycode  23 = c               
+		keycode  24 = r               
+		keycode  25 = l               
+		keycode  26 = apostrophe	asterisk
+		keycode  27 = asciitilde	asciicircum
+		keycode  28 = Return          
+        alt     keycode  28 = Meta_Control_m
+		keycode  29 = Control         
+		keycode  30 = a               
+		keycode  31 = o               
+		keycode  32 = e               
+		keycode  33 = u               
+		keycode  34 = i               
+		keycode  35 = d               
+		keycode  36 = h               
+		keycode  37 = t               
+		keycode  38 = n               
+		keycode  39 = s               
+		keycode  40 = minus           underscore
+		keycode  41 = bar		section
+	control keycode  41 = nul             
+keycode  42 = Shift           
+keycode  43 = less greater
+keycode  44 = +ae	+AE
+keycode  45 = q               
+keycode  46 = j               
+keycode  47 = k               
+keycode  48 = x               
+keycode  49 = b               
+keycode  50 = m               
+keycode  51 = w               
+keycode  52 = v               
+keycode  53 = z               
+keycode  54 = Shift           
+keycode  56 = Alt             
+		keycode  57 = space            
+	control keycode  57 = nul             
+		keycode  58 = Caps_Lock       
+		keycode  86 = +oslash +Ooblique
+keycode  97 = Control         
diff --git a/data/keymaps/i386/dvorak/no.map b/data/keymaps/i386/dvorak/no.map
deleted file mode 100644
index 2f15c57..0000000
--- a/data/keymaps/i386/dvorak/no.map
+++ /dev/null
@@ -1,104 +0,0 @@
-# Date: Sun, 10 Feb 2008 10:56:47 +0100
-# From: "Thomas Geirhovd" <thomas@tg90nor.net>
-# Subject: Norwegian dvorak keymap
-# 
-# Hi,
-# 
-# I made a norwegian dvorak keymap for the console.
-# It can be found on http://www.tg90nor.net/no-dvorak.map.gz
-# Feel free to include it in kbd if you want to.
-# 
-# -- 
-# Regards,
-# Thomas Geirhovd
-#
-keymaps 0-2,4-6,8-9,12
-alt_is_meta
-include "linux-with-alt-and-altgr.inc"
-strings as usual
-
-		keycode   1 = Escape
-	alt	keycode   1 = Meta_Escape
-		keycode   2 = one	exclam
-	alt	keycode   2 = Meta_one
-		keycode   3 = two	quotedbl	at
-	control	keycode   3 = nul
-	alt	keycode   3 = Meta_two
-		keycode   4 = three	numbersign
-	control	keycode   4 = Escape
-	alt	keycode   4 = Meta_three
-		keycode   5 = four	dollar		dollar
-	control	keycode   5 = Control_backslash
-	alt	keycode   5 = Meta_four
-		keycode   6 = five	percent         
-	control	keycode   6 = Control_bracketright
-	alt	keycode   6 = Meta_five
-		keycode   7 = six	ampersand
-	control	keycode   7 = Control_asciicircum
-	alt	keycode   7 = Meta_six
-		keycode   8 = seven	slash		braceleft
-	control	keycode   8 = Control_underscore
-	alt	keycode   8 =Meta_seven
-		keycode   9 = eight	parenleft	bracketleft
-	control	keycode   9 = Delete
-	alt	keycode   9 = Meta_eight
-		keycode  10 = nine	parenright	bracketright
-	alt	keycode  10 = Meta_nine
-		keycode  11 = zero	equal		braceright
-	alt	keycode  11 = Meta_zero
-		keycode  12 = plus	question       
-	control	keycode  12 = Control_underscore
-	alt	keycode  12 = Meta_minus
-		keycode  13 = backslash	grave		apostrophe
-	alt	keycode  13 = Meta_equal
-		keycode  14 = Delete
-	alt	keycode  14 = Meta_Delete
-		keycode  15 = Tab              
-	shift	keycode  15 = Meta_Tab
-		keycode  16 = +aring	+Aring
-		keycode  17 = comma            semicolon            
-		keycode  18 = period           colon       
-		keycode  19 = p               
-		keycode  20 = y               
-		keycode  21 = f               
-		keycode  22 = g               
-		keycode  23 = c               
-		keycode  24 = r               
-		keycode  25 = l               
-		keycode  26 = apostrophe	asterisk
-		keycode  27 = asciitilde	asciicircum
-		keycode  28 = Return          
-        alt     keycode  28 = Meta_Control_m
-		keycode  29 = Control         
-		keycode  30 = a               
-		keycode  31 = o               
-		keycode  32 = e               
-		keycode  33 = u               
-		keycode  34 = i               
-		keycode  35 = d               
-		keycode  36 = h               
-		keycode  37 = t               
-		keycode  38 = n               
-		keycode  39 = s               
-		keycode  40 = minus           underscore
-		keycode  41 = bar		section
-	control keycode  41 = nul             
-keycode  42 = Shift           
-keycode  43 = less greater
-keycode  44 = +ae	+AE
-keycode  45 = q               
-keycode  46 = j               
-keycode  47 = k               
-keycode  48 = x               
-keycode  49 = b               
-keycode  50 = m               
-keycode  51 = w               
-keycode  52 = v               
-keycode  53 = z               
-keycode  54 = Shift           
-keycode  56 = Alt             
-		keycode  57 = space            
-	control keycode  57 = nul             
-		keycode  58 = Caps_Lock       
-		keycode  86 = +oslash +Ooblique
-keycode  97 = Control         
diff --git a/data/keymaps/i386/fgGIod/trf-fgGIod.map b/data/keymaps/i386/fgGIod/trf-fgGIod.map
new file mode 100644
index 0000000..1061d11
--- /dev/null
+++ b/data/keymaps/i386/fgGIod/trf-fgGIod.map
@@ -0,0 +1,125 @@
+charset "iso-8859-9"
+keymaps 0-6,8-9,12
+include "linux-with-alt-and-altgr"
+strings as usual
+
+keycode   1 = Escape Escape
+	alt       keycode   1 = Meta_Escape
+keycode   2 = one exclam asciitilde
+	alt       keycode   2 = Meta_one
+	alt shift keycode   2 = Meta_exclam
+keycode   3 = two at ampersand
+	control   keycode   3 = nul
+	control shift keycode 3 = nul
+	alt       keycode   3 = Meta_two
+	alt shift keycode   3 = Meta_at
+keycode   4 = three quotedbl numbersign
+	control   keycode   4 = Escape
+	alt       keycode   4 = Meta_three
+	alt shift keycode   4 = Meta_quotedbl
+keycode   5 = four apostrophe dollar
+	control   keycode   5 = Control_backslash
+	alt       keycode   5 = Meta_four
+	alt shift keycode   5 = Meta_apostrophe
+keycode   6 = five parenleft less
+	control   keycode   6 = Control_bracketright
+	alt       keycode   6 = Meta_five
+	alt shift keycode   6 = Meta_parenleft
+keycode   7 = six slash greater
+	control   keycode   7 = Control_asciicircum
+	alt       keycode   7 = Meta_six
+	alt shift keycode   7 = Meta_slash
+keycode   8 = seven parenright braceleft
+	control   keycode   8 = Control_underscore
+	alt       keycode   8 = Meta_seven
+	alt shift keycode   8 = Meta_parenright
+keycode   9 = eight underscore braceright
+	control   keycode   9 = Delete
+	alt       keycode   9 = Meta_eight
+	alt shift keycode   9 = Meta_underscore
+keycode  10 = nine percent bracketleft
+	alt       keycode  10 = Meta_nine
+	alt shift keycode  10 = Meta_percent
+keycode  11 = zero colon bracketright
+	alt       keycode  11 = Meta_zero
+	alt shift keycode  11 = Meta_colon
+keycode  12 = x
+keycode  13 = q
+keycode  14 = Delete	Delete
+	alt       keycode  14 = Meta_Delete
+keycode  15 = Tab
+	shift	keycode  15 = Meta_Tab
+	alt       keycode  15 = Meta_Tab
+keycode  16 = f
+keycode  17 = g
+keycode  18 = +0360 +0320
+keycode  19 = +0375 +I
+	altgr keycode 19 = +0356
+	altgr shift keycode 19 = +0316
+keycode  20 = o
+	altgr keycode 20 = +0364
+	altgr shift keycode 20 = +0324
+keycode  21 = d
+keycode  22 = r
+keycode  23 = n
+keycode  24 = h
+keycode  25 = p
+keycode  26 = semicolon asterisk
+	control   keycode  26 = Escape
+	alt       keycode  26 = Meta_semicolon
+	alt shift keycode  26 = Meta_asterisk
+keycode  27 = asciicircum grave
+	control   keycode  27 = Control_bracketright
+	alt       keycode  27 = Meta_asciicircum
+	alt shift keycode  27 = Meta_grave
+keycode  28 = Return
+	alt       keycode  28 = 0x080d
+keycode  29 = Control
+keycode  30 = u
+	altgr keycode 30 = +0373
+	altgr shift keycode 30 = +0333
+keycode  31 = +i +0335
+keycode  32 = e
+keycode  33 = a
+	altgr keycode 33 = +0342
+	altgr shift keycode 33 = +0302
+keycode  34 = +0374 +0334
+keycode  35 = t
+keycode  36 = k
+keycode  37 = m
+keycode  38 = l
+keycode  39 = y
+keycode  40 = +0376 +0336
+	control   keycode  40 = Control_g
+keycode  41 = w
+	control   keycode  41 = nul
+keycode  42 = Shift
+keycode  43 = equal plus
+	control   keycode  43 = Control_backslash
+	alt       keycode  43 = Meta_equal
+	alt shift keycode  43 = Meta_plus
+keycode  44 = j
+keycode  45 = +0366 +0326
+keycode  46 = v
+keycode  47 = c
+keycode  48 = +0347 +0307
+keycode  49 = z
+keycode  50 = s
+keycode  51 = b
+keycode  52 = period question
+	control   keycode  52 = Delete
+	alt       keycode  52 = Meta_period
+	alt shift keycode  52 = Meta_question
+keycode  53 = comma minus slash
+	alt       keycode  53 = Meta_comma
+	alt shift keycode  53 = Meta_minus
+keycode  54 = Shift
+keycode  56 = Alt
+keycode  57 = space
+	control   keycode  57 = nul
+	alt       keycode  57 = Meta_space
+keycode  58 = Caps_Lock
+keycode  86 = backslash bar
+	alt       keycode  86 = Meta_backslash
+	alt shift keycode  86 = Meta_bar
+keycode  97 = Control
diff --git a/data/keymaps/i386/fgGIod/trf.map b/data/keymaps/i386/fgGIod/trf.map
deleted file mode 100644
index 1061d11..0000000
--- a/data/keymaps/i386/fgGIod/trf.map
+++ /dev/null
@@ -1,125 +0,0 @@
-charset "iso-8859-9"
-keymaps 0-6,8-9,12
-include "linux-with-alt-and-altgr"
-strings as usual
-
-keycode   1 = Escape Escape
-	alt       keycode   1 = Meta_Escape
-keycode   2 = one exclam asciitilde
-	alt       keycode   2 = Meta_one
-	alt shift keycode   2 = Meta_exclam
-keycode   3 = two at ampersand
-	control   keycode   3 = nul
-	control shift keycode 3 = nul
-	alt       keycode   3 = Meta_two
-	alt shift keycode   3 = Meta_at
-keycode   4 = three quotedbl numbersign
-	control   keycode   4 = Escape
-	alt       keycode   4 = Meta_three
-	alt shift keycode   4 = Meta_quotedbl
-keycode   5 = four apostrophe dollar
-	control   keycode   5 = Control_backslash
-	alt       keycode   5 = Meta_four
-	alt shift keycode   5 = Meta_apostrophe
-keycode   6 = five parenleft less
-	control   keycode   6 = Control_bracketright
-	alt       keycode   6 = Meta_five
-	alt shift keycode   6 = Meta_parenleft
-keycode   7 = six slash greater
-	control   keycode   7 = Control_asciicircum
-	alt       keycode   7 = Meta_six
-	alt shift keycode   7 = Meta_slash
-keycode   8 = seven parenright braceleft
-	control   keycode   8 = Control_underscore
-	alt       keycode   8 = Meta_seven
-	alt shift keycode   8 = Meta_parenright
-keycode   9 = eight underscore braceright
-	control   keycode   9 = Delete
-	alt       keycode   9 = Meta_eight
-	alt shift keycode   9 = Meta_underscore
-keycode  10 = nine percent bracketleft
-	alt       keycode  10 = Meta_nine
-	alt shift keycode  10 = Meta_percent
-keycode  11 = zero colon bracketright
-	alt       keycode  11 = Meta_zero
-	alt shift keycode  11 = Meta_colon
-keycode  12 = x
-keycode  13 = q
-keycode  14 = Delete	Delete
-	alt       keycode  14 = Meta_Delete
-keycode  15 = Tab
-	shift	keycode  15 = Meta_Tab
-	alt       keycode  15 = Meta_Tab
-keycode  16 = f
-keycode  17 = g
-keycode  18 = +0360 +0320
-keycode  19 = +0375 +I
-	altgr keycode 19 = +0356
-	altgr shift keycode 19 = +0316
-keycode  20 = o
-	altgr keycode 20 = +0364
-	altgr shift keycode 20 = +0324
-keycode  21 = d
-keycode  22 = r
-keycode  23 = n
-keycode  24 = h
-keycode  25 = p
-keycode  26 = semicolon asterisk
-	control   keycode  26 = Escape
-	alt       keycode  26 = Meta_semicolon
-	alt shift keycode  26 = Meta_asterisk
-keycode  27 = asciicircum grave
-	control   keycode  27 = Control_bracketright
-	alt       keycode  27 = Meta_asciicircum
-	alt shift keycode  27 = Meta_grave
-keycode  28 = Return
-	alt       keycode  28 = 0x080d
-keycode  29 = Control
-keycode  30 = u
-	altgr keycode 30 = +0373
-	altgr shift keycode 30 = +0333
-keycode  31 = +i +0335
-keycode  32 = e
-keycode  33 = a
-	altgr keycode 33 = +0342
-	altgr shift keycode 33 = +0302
-keycode  34 = +0374 +0334
-keycode  35 = t
-keycode  36 = k
-keycode  37 = m
-keycode  38 = l
-keycode  39 = y
-keycode  40 = +0376 +0336
-	control   keycode  40 = Control_g
-keycode  41 = w
-	control   keycode  41 = nul
-keycode  42 = Shift
-keycode  43 = equal plus
-	control   keycode  43 = Control_backslash
-	alt       keycode  43 = Meta_equal
-	alt shift keycode  43 = Meta_plus
-keycode  44 = j
-keycode  45 = +0366 +0326
-keycode  46 = v
-keycode  47 = c
-keycode  48 = +0347 +0307
-keycode  49 = z
-keycode  50 = s
-keycode  51 = b
-keycode  52 = period question
-	control   keycode  52 = Delete
-	alt       keycode  52 = Meta_period
-	alt shift keycode  52 = Meta_question
-keycode  53 = comma minus slash
-	alt       keycode  53 = Meta_comma
-	alt shift keycode  53 = Meta_minus
-keycode  54 = Shift
-keycode  56 = Alt
-keycode  57 = space
-	control   keycode  57 = nul
-	alt       keycode  57 = Meta_space
-keycode  58 = Caps_Lock
-keycode  86 = backslash bar
-	alt       keycode  86 = Meta_backslash
-	alt shift keycode  86 = Meta_bar
-keycode  97 = Control
diff --git a/data/keymaps/i386/olpc/es-olpc.map b/data/keymaps/i386/olpc/es-olpc.map
new file mode 100644
index 0000000..e97caeb
--- /dev/null
+++ b/data/keymaps/i386/olpc/es-olpc.map
@@ -0,0 +1,80 @@
+! Spanish keymap for OLPC; based upon es.map
+! Walter Bender (3 January 2008)
+!
+charset "iso-8859-15"
+keymaps 0-2,4,6,8-9,12
+include "qwerty-layout"
+include "linux-with-alt-and-altgr"
+strings as usual
+
+keycode   1 = Escape
+	alt     keycode   1 = Meta_Escape
+keycode   2 = one              exclam    bar
+	alt     keycode   2 = Meta_one
+keycode   3 = two             quotedbl	 at
+	control keycode   3 = nul
+	alt     keycode   3 = Meta_two
+keycode   4 = three           grave	numbersign
+	control keycode   4 = Escape
+	alt     keycode   4 = Meta_grave
+keycode   5 = four             dollar
+	alt     keycode   5 = Meta_four
+keycode   6 = five             percent	asciicircum
+	control keycode   6 = Control_asciicircum
+	alt     keycode   6 = Meta_five
+keycode   7 = six              ampersand notsign
+	alt     keycode   7 = Meta_six
+keycode   8 = seven            slash 		backslash
+	control keycode   8 = Control_backslash
+	alt     keycode   8 = Meta_seven
+keycode   9 = eight            parenleft
+	control keycode   9 = Delete
+	alt     keycode   9 = Meta_eight
+keycode  10 = nine             parenright
+	alt     keycode  10 = Meta_nine
+keycode  11 = zero             equal
+	alt     keycode  11 = Meta_equal
+keycode  12 = apostrophe       question
+	alt     keycode  12 = Meta_apostrophe
+keycode  13 = exclamdown questiondown
+keycode  14 = Delete
+	control keycode  14 = Control_underscore
+	alt     keycode  14 = Meta_Delete
+keycode  15 = Tab
+	alt     keycode  15 = Meta_Tab
+keycode  18 = e		       E		euro
+keycode  26 = apostrophe       diaeresis      degree
+keycode  27 = bracketleft     braceleft
+	control keycode  27 = Escape
+	alt     keycode  27 = Meta_bracketleft
+keycode  28 = Return
+	alt     keycode  28 = Meta_Control_m
+keycode  29 = Control
+keycode  39 = +ntilde +Ntilde
+keycode  40 = plus     asterisk		asciitilde
+	control keycode  40 = Control_g
+	alt     keycode  40 = Meta_asciitilde
+keycode  41 = masculine ordfeminine backslash		
+	control keycode  41 = Control_backslash
+	alt     keycode  41 = Meta_backslash
+keycode  42 = Shift
+keycode  43 = bracketright	braceright
+	control keycode  43 = Control_bracketright
+	alt     keycode  43 = Meta_bracketright
+keycode  51 = comma  semicolon
+	alt     keycode  51 = Meta_comma
+	shift alt keycode  51 = Meta_semicolon
+keycode  52 = period       colon
+	alt     keycode  52 = Meta_period
+keycode  53 = minus      underscore
+	control keycode  53 = Control_underscore
+	alt     keycode  53 = Meta_minus
+keycode  54 = Shift
+keycode  56 = Alt
+keycode  57 = space
+	control keycode  57 = nul
+	alt     keycode  57 = Meta_space
+keycode  211 = less greater
+	alt     keycode  211 = Meta_less
+	shift alt keycode 211 = Meta_greater
+
diff --git a/data/keymaps/i386/olpc/es.map b/data/keymaps/i386/olpc/es.map
deleted file mode 100644
index e97caeb..0000000
--- a/data/keymaps/i386/olpc/es.map
+++ /dev/null
@@ -1,80 +0,0 @@
-! Spanish keymap for OLPC; based upon es.map
-! Walter Bender (3 January 2008)
-!
-charset "iso-8859-15"
-keymaps 0-2,4,6,8-9,12
-include "qwerty-layout"
-include "linux-with-alt-and-altgr"
-strings as usual
-
-keycode   1 = Escape
-	alt     keycode   1 = Meta_Escape
-keycode   2 = one              exclam    bar
-	alt     keycode   2 = Meta_one
-keycode   3 = two             quotedbl	 at
-	control keycode   3 = nul
-	alt     keycode   3 = Meta_two
-keycode   4 = three           grave	numbersign
-	control keycode   4 = Escape
-	alt     keycode   4 = Meta_grave
-keycode   5 = four             dollar
-	alt     keycode   5 = Meta_four
-keycode   6 = five             percent	asciicircum
-	control keycode   6 = Control_asciicircum
-	alt     keycode   6 = Meta_five
-keycode   7 = six              ampersand notsign
-	alt     keycode   7 = Meta_six
-keycode   8 = seven            slash 		backslash
-	control keycode   8 = Control_backslash
-	alt     keycode   8 = Meta_seven
-keycode   9 = eight            parenleft
-	control keycode   9 = Delete
-	alt     keycode   9 = Meta_eight
-keycode  10 = nine             parenright
-	alt     keycode  10 = Meta_nine
-keycode  11 = zero             equal
-	alt     keycode  11 = Meta_equal
-keycode  12 = apostrophe       question
-	alt     keycode  12 = Meta_apostrophe
-keycode  13 = exclamdown questiondown
-keycode  14 = Delete
-	control keycode  14 = Control_underscore
-	alt     keycode  14 = Meta_Delete
-keycode  15 = Tab
-	alt     keycode  15 = Meta_Tab
-keycode  18 = e		       E		euro
-keycode  26 = apostrophe       diaeresis      degree
-keycode  27 = bracketleft     braceleft
-	control keycode  27 = Escape
-	alt     keycode  27 = Meta_bracketleft
-keycode  28 = Return
-	alt     keycode  28 = Meta_Control_m
-keycode  29 = Control
-keycode  39 = +ntilde +Ntilde
-keycode  40 = plus     asterisk		asciitilde
-	control keycode  40 = Control_g
-	alt     keycode  40 = Meta_asciitilde
-keycode  41 = masculine ordfeminine backslash		
-	control keycode  41 = Control_backslash
-	alt     keycode  41 = Meta_backslash
-keycode  42 = Shift
-keycode  43 = bracketright	braceright
-	control keycode  43 = Control_bracketright
-	alt     keycode  43 = Meta_bracketright
-keycode  51 = comma  semicolon
-	alt     keycode  51 = Meta_comma
-	shift alt keycode  51 = Meta_semicolon
-keycode  52 = period       colon
-	alt     keycode  52 = Meta_period
-keycode  53 = minus      underscore
-	control keycode  53 = Control_underscore
-	alt     keycode  53 = Meta_minus
-keycode  54 = Shift
-keycode  56 = Alt
-keycode  57 = space
-	control keycode  57 = nul
-	alt     keycode  57 = Meta_space
-keycode  211 = less greater
-	alt     keycode  211 = Meta_less
-	shift alt keycode 211 = Meta_greater
-
diff --git a/data/keymaps/i386/olpc/pt-olpc.map b/data/keymaps/i386/olpc/pt-olpc.map
new file mode 100644
index 0000000..173970a
--- /dev/null
+++ b/data/keymaps/i386/olpc/pt-olpc.map
@@ -0,0 +1,68 @@
+! Portuguese keymap for OLPC; based upon pt.map
+! Walter Bender (8 January 2008)
+!
+charset "iso-8859-15"
+keymaps 0-2,4,6,8,12
+alt_is_meta
+include "qwerty-layout"
+include "linux-with-alt-and-altgr"
+strings as usual
+
+keycode   1 = Escape
+	alt	keycode	1 = Meta_Escape
+keycode   2 = one             exclam 		onesuperior
+keycode   3 = two             at		twosuperior
+keycode   4 = three           numbersign	threesuperior
+keycode   5 = four            dollar           
+keycode   6 = five            percent		cent
+keycode   7 = six             dead_diaeresis    notsign
+keycode   8 = seven           ampersand
+keycode   9 = eight           asterisk
+keycode  10 = nine            parenleft        
+keycode  11 = zero            parenright       
+keycode  12 = minus	      underscore
+	control keycode  12 = Control_underscore
+	alt	keycode  12 = Meta_minus
+keycode  13 = equal	plus			section
+	alt	keycode  13 = Meta_equal
+keycode  14 = Delete
+keycode  15 = Tab
+keycode  18 = e		       E		euro
+keycode  26 = apostrophe       grave		dead_acute       dead_grave       
+	alt	keycode  26 = Meta_apostrophe
+keycode  27 = bracketleft	braceleft	ordfeminine
+	control	keycode	 27 = Escape
+	alt	keycode  27 = Meta_bracketleft
+keycode  28 = Return
+	alt	keycode  28 = Meta_Control_m
+keycode  29 = Control
+        shift   keycode  29 = Compose
+keycode  39 = +ccedilla         Ccedilla
+keycode  40 = asciitilde  asciicircum	dead_tilde       dead_circumflex
+	control	keycode  40 = Control_asciicircum
+	alt 	keycode	 40 = Meta_asciitilde
+keycode  41 = apostrophe        quotedbl
+	alt	keycode  41 = Meta_grave
+keycode  42 = Shift
+keycode  43 = bracketright	braceright	masculine       
+	control	keycode  43 = Control_bracketright
+	alt	keycode  43 = Meta_bracketright
+keycode  44 = z		       Z		bar
+keycode  51 = comma     less       
+	alt	keycode  51 = Meta_comma
+keycode  52 = period    greater	backslash
+	control keycode  52 = Control_backslash
+	alt	keycode  52 = Meta_period
+keycode  53 = semicolon	colon
+	alt	keycode  53 = Meta_semicolon
+keycode  54 = Shift
+keycode  56 = Alt
+keycode  57 = space
+	control	keycode  57 = nul
+keycode 211 = slash	question
+	alt	keycode  211 = Meta_slash
+compose 'e' '=' to '¤'
+compose '-' 'e' to '¤'
+compose '-' 'E' to '¤'
+compose '=' 'E' to '¤'
+
diff --git a/data/keymaps/i386/olpc/pt.map b/data/keymaps/i386/olpc/pt.map
deleted file mode 100644
index 173970a..0000000
--- a/data/keymaps/i386/olpc/pt.map
+++ /dev/null
@@ -1,68 +0,0 @@
-! Portuguese keymap for OLPC; based upon pt.map
-! Walter Bender (8 January 2008)
-!
-charset "iso-8859-15"
-keymaps 0-2,4,6,8,12
-alt_is_meta
-include "qwerty-layout"
-include "linux-with-alt-and-altgr"
-strings as usual
-
-keycode   1 = Escape
-	alt	keycode	1 = Meta_Escape
-keycode   2 = one             exclam 		onesuperior
-keycode   3 = two             at		twosuperior
-keycode   4 = three           numbersign	threesuperior
-keycode   5 = four            dollar           
-keycode   6 = five            percent		cent
-keycode   7 = six             dead_diaeresis    notsign
-keycode   8 = seven           ampersand
-keycode   9 = eight           asterisk
-keycode  10 = nine            parenleft        
-keycode  11 = zero            parenright       
-keycode  12 = minus	      underscore
-	control keycode  12 = Control_underscore
-	alt	keycode  12 = Meta_minus
-keycode  13 = equal	plus			section
-	alt	keycode  13 = Meta_equal
-keycode  14 = Delete
-keycode  15 = Tab
-keycode  18 = e		       E		euro
-keycode  26 = apostrophe       grave		dead_acute       dead_grave       
-	alt	keycode  26 = Meta_apostrophe
-keycode  27 = bracketleft	braceleft	ordfeminine
-	control	keycode	 27 = Escape
-	alt	keycode  27 = Meta_bracketleft
-keycode  28 = Return
-	alt	keycode  28 = Meta_Control_m
-keycode  29 = Control
-        shift   keycode  29 = Compose
-keycode  39 = +ccedilla         Ccedilla
-keycode  40 = asciitilde  asciicircum	dead_tilde       dead_circumflex
-	control	keycode  40 = Control_asciicircum
-	alt 	keycode	 40 = Meta_asciitilde
-keycode  41 = apostrophe        quotedbl
-	alt	keycode  41 = Meta_grave
-keycode  42 = Shift
-keycode  43 = bracketright	braceright	masculine       
-	control	keycode  43 = Control_bracketright
-	alt	keycode  43 = Meta_bracketright
-keycode  44 = z		       Z		bar
-keycode  51 = comma     less       
-	alt	keycode  51 = Meta_comma
-keycode  52 = period    greater	backslash
-	control keycode  52 = Control_backslash
-	alt	keycode  52 = Meta_period
-keycode  53 = semicolon	colon
-	alt	keycode  53 = Meta_semicolon
-keycode  54 = Shift
-keycode  56 = Alt
-keycode  57 = space
-	control	keycode  57 = nul
-keycode 211 = slash	question
-	alt	keycode  211 = Meta_slash
-compose 'e' '=' to '¤'
-compose '-' 'e' to '¤'
-compose '-' 'E' to '¤'
-compose '=' 'E' to '¤'
-
-- 
1.5.3.7


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [kbd] duplicate filenames
  2008-03-15 18:42 [kbd] duplicate filenames Roman Kyrylych
  2008-03-15 18:43 ` Roman Kyrylych
@ 2008-03-15 21:28 ` Alexey Gladkov
  2008-03-16 23:00   ` Alexey Gladkov
  1 sibling, 1 reply; 6+ messages in thread
From: Alexey Gladkov @ 2008-03-15 21:28 UTC (permalink / raw)
  To: Linux console tools development discussion

Roman Kyrylych wrote:
> Hi!
> 
> I've found that some keymaps' variants have the same filename.
> This is very bad, because doing loadkeys es, for example, will load
> olpc variant which is not what 99,99% of users need. ;-)

Agree. This is really bad problem.

> $ ./find-duplicate-names.sh
> /usr/share/kbd/keymaps/i386/dvorak/no.map.gz
> /usr/share/kbd/keymaps/i386/fgGIod/trf.map.gz
> /usr/share/kbd/keymaps/i386/olpc/es.map.gz
> /usr/share/kbd/keymaps/i386/qwerty/es.map.gz
> /usr/share/kbd/keymaps/i386/qwerty/no.map.gz
> /usr/share/kbd/keymaps/i386/qwerty/trf.map.gz
> 
> Please apply the patch attached below.

I shall follow the naming policy when I will add new keymaps.

Something like this: <keyboard_type>-<lang>[-<switch>].map

-- 
Rgrds, legion


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [kbd] duplicate filenames
  2008-03-15 21:28 ` Alexey Gladkov
@ 2008-03-16 23:00   ` Alexey Gladkov
  2009-07-18 17:20     ` Roman Kyrylych
  0 siblings, 1 reply; 6+ messages in thread
From: Alexey Gladkov @ 2008-03-16 23:00 UTC (permalink / raw)
  To: Linux console tools development discussion

Alexey Gladkov wrote:
>> Please apply the patch attached below.
> 
> I shall follow the naming policy when I will add new keymaps.
> 
> Something like this: <keyboard_type>-<lang>[-<switch>].map
> 

This is not solution. This is workaround.
I will think how fix it.

-- 
Rgrds, legion


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [kbd] duplicate filenames
  2008-03-16 23:00   ` Alexey Gladkov
@ 2009-07-18 17:20     ` Roman Kyrylych
  2009-07-21 20:53       ` Alexey Gladkov
  0 siblings, 1 reply; 6+ messages in thread
From: Roman Kyrylych @ 2009-07-18 17:20 UTC (permalink / raw)
  To: Linux console tools development discussion

On Mon, Mar 17, 2008 at 02:00, Alexey Gladkov<gladkov.alexey@gmail.com> wrote:
> Alexey Gladkov wrote:
>>>
>>> Please apply the patch attached below.
>>
>> I shall follow the naming policy when I will add new keymaps.
>>
>> Something like this: <keyboard_type>-<lang>[-<switch>].map

I think <lang>[-<keyboard_type>][-<switch>].map is better.
While dvorak-fr looks fine because there is dvorak map already,
with -l and -r variants, but cz & cz-qwertz look more logical (IMHO)
than cz & qwertz-cz.

> This is not solution. This is workaround.
> I will think how fix it.

Is there any progress? At least the workaround eliminates problems
(for example see http://bugs.archlinux.org/task/13837)

We (Arch Linux) do this when building the kbd package:
mv data/keymaps/i386/qwertz/cz{,-qwertz}.map
mv data/keymaps/i386/olpc/es{,-olpc}.map
mv data/keymaps/i386/olpc/pt{,-olpc}.map
mv data/keymaps/i386/dvorak/no{,-dvorak}.map
mv data/keymaps/i386/fgGIod/trf{,-fgGIod}.map

-- 
Roman Kyrylych (Роман Кирилич)


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [kbd] duplicate filenames
  2009-07-18 17:20     ` Roman Kyrylych
@ 2009-07-21 20:53       ` Alexey Gladkov
  0 siblings, 0 replies; 6+ messages in thread
From: Alexey Gladkov @ 2009-07-21 20:53 UTC (permalink / raw)
  To: Linux console tools development discussion

18.07.2009 21:20, Roman Kyrylych wrote:
> Is there any progress? At least the workaround eliminates problems
> (for example see http://bugs.archlinux.org/task/13837)

I plan it in the next major release (1.16 i think).

> We (Arch Linux) do this when building the kbd package:
> mv data/keymaps/i386/qwertz/cz{,-qwertz}.map
> mv data/keymaps/i386/olpc/es{,-olpc}.map
> mv data/keymaps/i386/olpc/pt{,-olpc}.map
> mv data/keymaps/i386/dvorak/no{,-dvorak}.map
> mv data/keymaps/i386/fgGIod/trf{,-fgGIod}.map

In this case, the /fgGIod/ is absolutely useless. I think that it is
better to remove it.

-- 
Rgrds, legion



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-21 20:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-15 18:42 [kbd] duplicate filenames Roman Kyrylych
2008-03-15 18:43 ` Roman Kyrylych
2008-03-15 21:28 ` Alexey Gladkov
2008-03-16 23:00   ` Alexey Gladkov
2009-07-18 17:20     ` Roman Kyrylych
2009-07-21 20:53       ` Alexey Gladkov

Linux console tools development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \
		kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com
	public-inbox-index kbd

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.kbd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git