public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* Re: be / international keyboard with xserv 4.3.0-57
@ 2004-03-17 20:55 Stefaan Simoens
  2004-03-17 21:06 ` Alexander Gottwald
  0 siblings, 1 reply; 12+ messages in thread
From: Stefaan Simoens @ 2004-03-17 20:55 UTC (permalink / raw)
  To: cygwin-xfree

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

> These language identifiers + some minor bit make up the keyboard layout id 
> I get from windows. So the language code is the only way I can handle 
> the layouts.

Comparing some Register keys from my computer (Languge: Dutch (Belgian)
/Keyboard: Belgian (point)) and my friend (Language: Dutch (Belgian)
/Keyboard: US (international)) I found the following:

HKCU\Keyboard Layout\Preload
1 (REG_SZ) = 000813
(This is the Dutch (Belgian) part I guess?)

My friend (with the US keyboard on his computer) has an additionally
key:
HKCU\Keyboard Layout\Substitutes
00813 (REG_SZ) = 20409

My guess is you'd have to take the first key, and let the keyboard
override with the second key (if there is a substitution)

FYI: I found a 'mapping' between the Windows 'numeric' codes and the old
'DOS' codes in HKLM\System\CurrentControlSet\Control\Keyboard
Layout\DosKeybCodes
I think there you'll find all the possible entries, with an immediate
mapping to a keyboard layout.
eg:
80C (REG_SZ) = be
813 (REG_SZ) = be
20409 (REG_SZ) = us
(which are the same for X as far as I can tell)

I hope I helped you...

[-- Attachment #2: S/MIME Cryptografische ondertekening --]
[-- Type: application/x-pkcs7-signature, Size: 1957 bytes --]

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

* Re: be / international keyboard with xserv 4.3.0-57
  2004-03-17 20:55 be / international keyboard with xserv 4.3.0-57 Stefaan Simoens
@ 2004-03-17 21:06 ` Alexander Gottwald
  0 siblings, 0 replies; 12+ messages in thread
From: Alexander Gottwald @ 2004-03-17 21:06 UTC (permalink / raw)
  To: cygwin-xfree

On Wed, 17 Mar 2004, Stefaan Simoens wrote:

> Comparing some Register keys from my computer (Languge: Dutch (Belgian)
> /Keyboard: Belgian (point)) and my friend (Language: Dutch (Belgian)
> /Keyboard: US (international)) I found the following:
> 
> HKCU\Keyboard Layout\Preload
> 1 (REG_SZ) = 000813
> (This is the Dutch (Belgian) part I guess?)

I got from HKLM\SYSTEM\CurrentControlSet\Keyboard Layouts
0000080c -> Belgisch (Wallonisch)
00000813 -> Belgisch (Flämisch)
0001080c -> Belgisch (Komma)

The first two I've associated with "be" now but the second is still not in 
the  list. If someone requests it an tells me the correct XKB configuration
for this layout I'll add it too.

> 00813 (REG_SZ) = 20409

This is already in the list as English (international) with us_intl layout

bye
	ago
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


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

* Re: be / international keyboard with xserv 4.3.0-57
  2004-03-17 19:53 Stefaan Simoens
@ 2004-03-17 20:24 ` Alexander Gottwald
  0 siblings, 0 replies; 12+ messages in thread
From: Alexander Gottwald @ 2004-03-17 20:24 UTC (permalink / raw)
  To: cygwin-xfree

On Wed, 17 Mar 2004, Stefaan Simoens wrote:

> > I ask becasue there are different languagecodes (those the specify language and
> > country):
> > 
> > 0x0413 Dutch (Netherlands)
> > 0x0813 Dutch (Belgium)
> > 0x040c French (Standard)
> > 0x080c French (Belgian)
> 
> I don't think you should take the language as a determinant for
> keyboard-layout. Dutch (Netherlands) and Dutch (Belgium) is used for a
> slight difference in date-notation (and, before the euro, a difference
> in currency).
> The same goes for French (Standard) and French (Belgian) I think.

These language identifiers + some minor bit make up the keyboard layout id 
I get from windows. So the language code is the only way I can handle 
the layouts.

> A "Belgian" keyboard has AZERTY keys. But, a friend of mine has his
> Windows2000 set up with language "Dutch (Belgium)" but he has a "US
> keyboard".
> 
> I think XWin is already checking the right Windows setting: 
> 
> (--) winConfigKeyboard - Layout: "00000813" (00000813)
> (EE) Keyboardlayout "Belgisch (punt)" (00000813) is unknown
> 
> So, I think you should use 0x0813 for a Belgian keyboard-layout. (There
> are two Belgian keyboard layouts: "Belgisch (punt)" and "Belgisch
> (komma)" because some keyboards have a comma on the numeric keypad -- I
> do think the "Belgisch (komma)" isn't used that much).

Ok. Thank you

bye
	ago
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


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

* Re: be / international keyboard with xserv 4.3.0-57
@ 2004-03-17 19:53 Stefaan Simoens
  2004-03-17 20:24 ` Alexander Gottwald
  0 siblings, 1 reply; 12+ messages in thread
From: Stefaan Simoens @ 2004-03-17 19:53 UTC (permalink / raw)
  To: cygwin-xfree

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

> I ask becasue there are different languagecodes (those the specify language and
> country):
> 
> 0x0413 Dutch (Netherlands)
> 0x0813 Dutch (Belgium)
> 0x040c French (Standard)
> 0x080c French (Belgian)

I don't think you should take the language as a determinant for
keyboard-layout. Dutch (Netherlands) and Dutch (Belgium) is used for a
slight difference in date-notation (and, before the euro, a difference
in currency).
The same goes for French (Standard) and French (Belgian) I think.

> I assume even dutch speaking belgians use the azerty variant. Is this correct?
> Or do belgian querty exist?

A "Belgian" keyboard has AZERTY keys. But, a friend of mine has his
Windows2000 set up with language "Dutch (Belgium)" but he has a "US
keyboard".

I think XWin is already checking the right Windows setting: 

(--) winConfigKeyboard - Layout: "00000813" (00000813)
(EE) Keyboardlayout "Belgisch (punt)" (00000813) is unknown

So, I think you should use 0x0813 for a Belgian keyboard-layout. (There
are two Belgian keyboard layouts: "Belgisch (punt)" and "Belgisch
(komma)" because some keyboards have a comma on the numeric keypad -- I
do think the "Belgisch (komma)" isn't used that much).

Stef

[-- Attachment #2: S/MIME Cryptografische ondertekening --]
[-- Type: application/x-pkcs7-signature, Size: 1957 bytes --]

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

* Re: be / international keyboard with xserv 4.3.0-57
  2004-03-17 19:35       ` Alexander Gottwald
@ 2004-03-17 19:49         ` Harold L Hunt II
  0 siblings, 0 replies; 12+ messages in thread
From: Harold L Hunt II @ 2004-03-17 19:49 UTC (permalink / raw)
  To: cygwin-xfree

Alexander Gottwald wrote:

> On Wed, 17 Mar 2004, Harold L Hunt II wrote:
> 
> 
>>We are not quite completely releasing from CVS yet.  It won't happen 
>>until about a week or two from now.  So there are some minor differences 
>>between the two code bases still.
> 
> 
> I'm not sure if you are missing some changes to winconfig.c or if you still
> have some uncommited changes in your tree. But since I don't remember having
> splitted the existing code with that many #ifdef NO_XF86CONFIG I assume you
> made the changes.

Oh... I think I made some fixes to my file that I meant to commit but I 
must have forgotten.

I added the extra #ifdefs because some keyboard settings were not being 
processed at all when the XF86CONFIG support was disabled, even though 
they were perfectly valid options and had command-line processing in 
place.  I need to get that committed to CVS, you want to take care of 
it?  :)

Harold


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

* Re: be / international keyboard with xserv 4.3.0-57
  2004-03-17 19:23 Stefaan Simoens
@ 2004-03-17 19:40 ` Alexander Gottwald
  0 siblings, 0 replies; 12+ messages in thread
From: Alexander Gottwald @ 2004-03-17 19:40 UTC (permalink / raw)
  To: cygwin-xfree

On Wed, 17 Mar 2004, Stefaan Simoens wrote:

> It's true they speak French and Dutch in Belgium (even some German!) but
> there's a difference between 'keyboard' and 'language'. I've got an
> Belgian keyboard (AZERTY), very similar to a French keyboard (AZERTY),
> but in The Netherlands, they've got QUERTY keyboards...

I ask becasue there are different languagecodes (those the specify language and
country):

0x0413 Dutch (Netherlands)
0x0813 Dutch (Belgium)
0x040c French (Standard)
0x080c French (Belgian)

I assume even dutch speaking belgians use the azerty variant. Is this correct?
Or do belgian querty exist?

bye
	ago 

-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


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

* Re: be / international keyboard with xserv 4.3.0-57
  2004-03-17 19:15     ` Harold L Hunt II
@ 2004-03-17 19:35       ` Alexander Gottwald
  2004-03-17 19:49         ` Harold L Hunt II
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Gottwald @ 2004-03-17 19:35 UTC (permalink / raw)
  To: cygwin-xfree

On Wed, 17 Mar 2004, Harold L Hunt II wrote:

> We are not quite completely releasing from CVS yet.  It won't happen 
> until about a week or two from now.  So there are some minor differences 
> between the two code bases still.

I'm not sure if you are missing some changes to winconfig.c or if you still
have some uncommited changes in your tree. But since I don't remember having
splitted the existing code with that many #ifdef NO_XF86CONFIG I assume you
made the changes.

bye
	ago 
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


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

* Re: be / international keyboard with xserv 4.3.0-57
@ 2004-03-17 19:23 Stefaan Simoens
  2004-03-17 19:40 ` Alexander Gottwald
  0 siblings, 1 reply; 12+ messages in thread
From: Stefaan Simoens @ 2004-03-17 19:23 UTC (permalink / raw)
  To: cygwin-xfree

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

>> (--) winConfigKeyboard - Layout: "00000813" (00000813)
>> (EE) Keyboardlayout "Belgisch (punt)" (00000813) is unknown
>> (++) XKB: layout: "be"
>> (++) XKB: variant: "be"
>> (++) XKB: options: "be"
>> Rules = "xfree86" Model = "pc101" Layout = "be" Variant = "be" Options =
>> "be"

> Something is strange. The variant and options is set with the -xkblayout too.
> This should not happen.

That appears to be the problem.

Here are some test-results with XWin.log entries:
XWin
Rules = "xfree86" Model = "pc101" Layout = "us" Variant = "(null)"
Options = "(null)"
(US keyboard layout)

XWin -xkblayout be
Rules = "xfree86" Model = "pc101" Layout = "be" Variant = "be" Options =
"be"
(US keyboard layout)

XWin -xkblayout be -xkbvariant nodeadkeys
Rules = "xfree86" Model = "pc101" Layout = "be" Variant = "nodeadkeys"
Options = "nodeadkeys"
(BE keyboard layout!)

Appareantly, when 'variant' is something undefined (like 'be'), it
'defaults' to the US-behaviour...

> I'm investigating it.
>
> I'll also add the layout (0x0813) to the list of defaults. I guess the layouts
> from french and dutch language settings do not differ?

It's true they speak French and Dutch in Belgium (even some German!) but
there's a difference between 'keyboard' and 'language'. I've got an
Belgian keyboard (AZERTY), very similar to a French keyboard (AZERTY),
but in The Netherlands, they've got QUERTY keyboards...

Thanks for your quick response!

Stef

[-- Attachment #2: S/MIME Cryptografische ondertekening --]
[-- Type: application/x-pkcs7-signature, Size: 1957 bytes --]

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

* Re: be / international keyboard with xserv 4.3.0-57
  2004-03-17 19:05   ` Alexander Gottwald
@ 2004-03-17 19:15     ` Harold L Hunt II
  2004-03-17 19:35       ` Alexander Gottwald
  0 siblings, 1 reply; 12+ messages in thread
From: Harold L Hunt II @ 2004-03-17 19:15 UTC (permalink / raw)
  To: cygwin-xfree

Alexander Gottwald wrote:

> On Wed, 17 Mar 2004, Alexander Gottwald wrote:
> 
> 
>>On Wed, 17 Mar 2004, Stefaan Simoens wrote:
>>
>>
>>>Hello,
>>>
>>>
>>>(--) winConfigKeyboard - Layout: "00000813" (00000813)
>>>(EE) Keyboardlayout "Belgisch (punt)" (00000813) is unknown
>>>(++) XKB: layout: "be"
>>>(++) XKB: variant: "be"
>>>(++) XKB: options: "be"
>>>Rules = "xfree86" Model = "pc101" Layout = "be" Variant = "be" Options =
>>>"be"
>>
>>Something is strange. The variant and options is set with the -xkblayout too.
>>This should not happen.
>>
>>I'm investigating it.
> 
> 
> Found it: winconfig.c
> 
>           if (s)                                                                
>             {                                                                   
>               g_winInfo.xkb.layout = NULL_IF_EMPTY (s);                         
>               winMsg (from, "XKB: layout: \"%s\"\n", s);                        
>             }                                                                   
> 
> +         s = NULL;                                                                                
>           if (g_cmdline.xkbVariant)                                             
>             {                                                                   
>               s = g_cmdline.xkbVariant;                                         
>               from = X_CMDLINE;                                                 
>             }      
> 
> (and some other similar places)
> 
> @Harold: I noticed the code in winconfig.c differs from CVS. Is this intention?
> The CVS does not contain the bug.

We are not quite completely releasing from CVS yet.  It won't happen 
until about a week or two from now.  So there are some minor differences 
between the two code bases still.

Harold


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

* Re: be / international keyboard with xserv 4.3.0-57
  2004-03-17 18:49 ` Alexander Gottwald
@ 2004-03-17 19:05   ` Alexander Gottwald
  2004-03-17 19:15     ` Harold L Hunt II
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Gottwald @ 2004-03-17 19:05 UTC (permalink / raw)
  To: cygwin-xfree

On Wed, 17 Mar 2004, Alexander Gottwald wrote:

> On Wed, 17 Mar 2004, Stefaan Simoens wrote:
> 
> > Hello,
> > 
> > 
> > (--) winConfigKeyboard - Layout: "00000813" (00000813)
> > (EE) Keyboardlayout "Belgisch (punt)" (00000813) is unknown
> > (++) XKB: layout: "be"
> > (++) XKB: variant: "be"
> > (++) XKB: options: "be"
> > Rules = "xfree86" Model = "pc101" Layout = "be" Variant = "be" Options =
> > "be"
> 
> Something is strange. The variant and options is set with the -xkblayout too.
> This should not happen.
> 
> I'm investigating it.

Found it: winconfig.c

          if (s)                                                                
            {                                                                   
              g_winInfo.xkb.layout = NULL_IF_EMPTY (s);                         
              winMsg (from, "XKB: layout: \"%s\"\n", s);                        
            }                                                                   

+         s = NULL;                                                                                
          if (g_cmdline.xkbVariant)                                             
            {                                                                   
              s = g_cmdline.xkbVariant;                                         
              from = X_CMDLINE;                                                 
            }      

(and some other similar places)

@Harold: I noticed the code in winconfig.c differs from CVS. Is this intention?
The CVS does not contain the bug.

bye
	ago                                                            
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


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

* Re: be / international keyboard with xserv 4.3.0-57
  2004-03-17 17:54 Stefaan Simoens
@ 2004-03-17 18:49 ` Alexander Gottwald
  2004-03-17 19:05   ` Alexander Gottwald
  0 siblings, 1 reply; 12+ messages in thread
From: Alexander Gottwald @ 2004-03-17 18:49 UTC (permalink / raw)
  To: cygwin-xfree

On Wed, 17 Mar 2004, Stefaan Simoens wrote:

> Hello,
> 
> 
> (--) winConfigKeyboard - Layout: "00000813" (00000813)
> (EE) Keyboardlayout "Belgisch (punt)" (00000813) is unknown
> (++) XKB: layout: "be"
> (++) XKB: variant: "be"
> (++) XKB: options: "be"
> Rules = "xfree86" Model = "pc101" Layout = "be" Variant = "be" Options =
> "be"

Something is strange. The variant and options is set with the -xkblayout too.
This should not happen.

I'm investigating it.

I'll also add the layout (0x0813) to the list of defaults. I guess the layouts
from french and dutch language settings do not differ?

bye
	ago
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


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

* be / international keyboard with xserv 4.3.0-57
@ 2004-03-17 17:54 Stefaan Simoens
  2004-03-17 18:49 ` Alexander Gottwald
  0 siblings, 1 reply; 12+ messages in thread
From: Stefaan Simoens @ 2004-03-17 17:54 UTC (permalink / raw)
  To: cygwin-xfree

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

Hello,

I have a Belgian keyboard. XWin worked for me before 4.3.0-50 (with an
appropriate XF86Config file) and 4.3.0-50 worked (given the -xkblayout
be option).

However, since setup.exe upgraded to 4.3.0-57, my Belgian keyboard goes
US :(

XWin seems to accept the -xkblayout be - setting, but it still uses the
US layout.

>From XWin.log:

(--) winConfigKeyboard - Layout: "00000813" (00000813)
(EE) Keyboardlayout "Belgisch (punt)" (00000813) is unknown
(++) XKB: layout: "be"
(++) XKB: variant: "be"
(++) XKB: options: "be"
Rules = "xfree86" Model = "pc101" Layout = "be" Variant = "be" Options =
"be"

doing the 'setxkbmap be -model pc105' as pointed in the FAQ *does* works
in an xterm

What's the problem here?

Thanks,

Stef

[-- Attachment #2: S/MIME Cryptografische ondertekening --]
[-- Type: application/x-pkcs7-signature, Size: 1957 bytes --]

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

end of thread, other threads:[~2004-03-17 21:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-17 20:55 be / international keyboard with xserv 4.3.0-57 Stefaan Simoens
2004-03-17 21:06 ` Alexander Gottwald
  -- strict thread matches above, loose matches on Subject: below --
2004-03-17 19:53 Stefaan Simoens
2004-03-17 20:24 ` Alexander Gottwald
2004-03-17 19:23 Stefaan Simoens
2004-03-17 19:40 ` Alexander Gottwald
2004-03-17 17:54 Stefaan Simoens
2004-03-17 18:49 ` Alexander Gottwald
2004-03-17 19:05   ` Alexander Gottwald
2004-03-17 19:15     ` Harold L Hunt II
2004-03-17 19:35       ` Alexander Gottwald
2004-03-17 19:49         ` Harold L Hunt II

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).