RE: Cygwin doesn't recognize the Canadian French keyboard

2005-07-07 Thread Daniel Landry
On Wed, 6 Jul 2005, Igor Pechtchanski wrote:
Ah.  I'm going to venture a guess and say that it's not simply an xterm,
but an xterm running bash[*] that doesn't work, and direct you to
http://cygwin.com/faq/faq_3.html#SEC48.

[*] bash uses readline, and, most likely, so does the python interpreter 
environment (top-level?).


Your guess is right.  I have followed the link and adapt to my specific 
need but it seems that I have missed something.  Accented characters are 
printed as if convert-meta is set to on.  As an example e (e acute) is 
displayed as \351.  These are my home configuration files

# .bashrc
?
alias less='less -r'
alias ls='ls -F --color=tty --show-control-chars'
export LANG=fr
export LC_ALL=fr_CA
export LC_CTYPE=iso-8859-1
export OUTPUT_CHARSET=iso-8859-1
export LESSCHARSET=iso8859
setxkbmap ca_enhanced

# .inputrc
set meta-flag on# enable 8-bit input
set convert-meta off# don't strip 8-bit characters
set input-meta on   # enable 8-bit input
set output-meta on  # display 8-bit characters correctly

Daniel Landry



RE: Cygwin doesn't recognize the Canadian French keyboard

2005-07-07 Thread Igor Pechtchanski
Daniel,

Please make sure your mailer respects the Reply-To: header -- I set it for
a reason.  There was no need to Cc: me -- I read the list.

On Thu, 7 Jul 2005, Daniel Landry wrote:

 On Wed, 6 Jul 2005, Igor Pechtchanski wrote:
 Ah.  I'm going to venture a guess and say that it's not simply an xterm,
 but an xterm running bash[*] that doesn't work, and direct you to
 http://cygwin.com/faq/faq_3.html#SEC48.

 [*] bash uses readline, and, most likely, so does the python interpreter
 environment (top-level?).

 Your guess is right.

At which point this stops being an X-related problem, and is better
discussed on the main list.  I've set the Reply-To: accordingly (though
the xfree list is likely to add another pointing to itself).

 I have followed the link and adapt to my specific need but it seems that
 I have missed something.  Accented characters are printed as if
 convert-meta is set to on.  As an example e (e acute) is displayed as
 \351.

Displayed by what?  If you type echo é at the bash prompt, does that
display properly?  What about echo -e '\0351'?

 These are my home configuration files

 # .bashrc
 ?
  ^
Huh?

 alias less='less -r'
 alias ls='ls -F --color=tty --show-control-chars'
 export LANG=fr
 export LC_ALL=fr_CA
 export LC_CTYPE=iso-8859-1
 export OUTPUT_CHARSET=iso-8859-1
 export LESSCHARSET=iso8859
 setxkbmap ca_enhanced

 # .inputrc
 set meta-flag on  # enable 8-bit input
 set convert-meta off  # don't strip 8-bit characters
 set input-meta on # enable 8-bit input
 set output-meta on# display 8-bit characters correctly

What does bind -v | grep meta show when run from bash?
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

RE: Cygwin doesn't recognize the Canadian French keyboard

2005-07-07 Thread Daniel Landry
In Xterm, running bash, the result is:

$ echo \351
e   (e acute is displayed correctly)

$ bind -v | grep meta
set convert-meta off
set input-meta off
set meta-flag off
set output-meta off

My complete .bashrc is (I have removed only the line beginning by #):

# User dependent .bashrc file

eval 'dircolors -b'
alias whereis=which
alias xterm='xterm -sl 5000'

# Requis pour accent francais dans certaines applications
alias less='less -r'
alias ls='ls -F --color=tty --show-control-chars'
export LANG=fr
export LC_ALL=fr_CA
export LC_CTYPE=iso-8859-1
export OUTPUT_CHARSET=iso-8859-1
export LESSCHARSET=iso8859
# Requis lorsque la dedection automatique de Xwin ne fonctionne pas
setxkbmap ca_enhanced



On Thu, 7 Jul 2005, Igor Pechtchanski wrote:

At which point this stops being an X-related problem, and is better
discussed on the main list.  I've set the Reply-To: accordingly (though
the xfree list is likely to add another pointing to itself).

 I have followed the link and adapt to my specific need but it seems that
 I have missed something.  Accented characters are printed as if
 convert-meta is set to on.  As an example e (e acute) is displayed as
 \351.

Displayed by what?  If you type echo e at the bash prompt, does that
display properly?  What about echo -e '\0351'?

 These are my home configuration files

 # .bashrc ?
 # .inputrc ?

What does bind -v | grep meta show when run from bash?



Re: Cygwin doesn't recognize the Canadian French keyboard

2005-07-06 Thread Alexander Gottwald
On Wed, 6 Jul 2005, Daniel Landry wrote:

 From /tmp/XWin.log 
 (--) winConfigKeyboard - Layout: 1009 (1009) 
 (EE) Keyboardlayout Francais (Canada) (1009) is unknown
 The XKB layout code is ca or fr_CA
 From Microsoft Global Dev 
 http://www.microsoft.com/globaldev/reference/keyboards.aspx  select 
 Canadian French

I've recently added ca_enhanced as French (Canada), but from the french 
group (??0c) instead of the english group (??09). A few months 
ago I also added ca but removed it again since it did not match the actual
layout.

Is there a difference between those two? Which is more correct? ca, ca_enhanced
or fr_CA. Judging from a short test ca_enhanced matches the layout from the 
website best (the key left to 1 produces / instead of # with ca).

you can set the layouts with setxkbmap ca_enhanced. 

bye
ago 
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


RE: Cygwin doesn't recognize the Canadian French keyboard

2005-07-06 Thread Daniel Landry
On Wed, 6 Jul 2005, Daniel Landry wrote:

 From /tmp/XWin.log
 (--) winConfigKeyboard - Layout: 1009 (1009)
 (EE) Keyboardlayout Francais (Canada) (1009) is unknown
 The XKB layout code is ca or fr_CA
 From Microsoft Global Dev 
http://www.microsoft.com/globaldev/reference/keyboards.aspx  select 
Canadian French

On Wed, 6 Jul 2005, Alexander Gottwald wrote:

 I've recently added ca_enhanced as French (Canada), but from the french 

 group (??0c) instead of the english group (??09). A few months
 ago I also added ca but removed it again since it did not match the 
actual
 layout.

 Is there a difference between those two? Which is more correct? ca, 
ca_enhanced
 or fr_CA. Judging from a short test ca_enhanced matches the layout from 
the
 website best (the key left to 1 produces / instead of # with ca).

 you can set the layouts with setxkbmap ca_enhanced.

Running setxkbmap with each layouts (ca, fr_CA, ca_enhanced) don't fix the 
problem.  In all case, the French accents are replaced by a BEEP and any 
character is displayed.  However, I can make a cut and paste from WinXP 
without any problem.

Concerning the key mapping, I'm using fr_CA on my Debian at home and it's 
working great.  However, as Cygwin run on Windows, I presume that the best 
would be to keep the same keyboard mapping that Windows uses.





RE: Cygwin doesn't recognize the Canadian French keyboard

2005-07-06 Thread Alexander Gottwald
On Wed, 6 Jul 2005, Daniel Landry wrote:

 Running setxkbmap with each layouts (ca, fr_CA, ca_enhanced) don't fix the 
 problem.  In all case, the French accents are replaced by a BEEP and any 
 character is displayed.  However, I can make a cut and paste from WinXP 
 without any problem.

ca_enhanced uses deadkeys. I get this layout (not printing modifier, backspace
and stuff)

#1234567890-=
 qwertyuiop^ 
 asdfghjkl;`
 «zxcvbnm,.é 

^,` are deadkeys. pressing ^ and A will compose Â

 Concerning the key mapping, I'm using fr_CA on my Debian at home and it's 
 working great. 

This must be a debian special. There is no such layout in Cygwin/X

 However, as Cygwin run on Windows, I presume that the best 
 would be to keep the same keyboard mapping that Windows uses.

At least in the autedetection list. You can override the defaults with the
-xkblayout parameter anyway and set a different layout.

bye
ago
-- 
 [EMAIL PROTECTED] 
 http://www.gotti.org   ICQ: 126018723


RE: Cygwin doesn't recognize the Canadian French keyboard

2005-07-06 Thread Daniel Landry
I'm familiar with deadkeys, but they don't work on my Cygwin installation. 
 The e character is a special key that doesn't request any deadkey and it 
doesn't work either.  Using any accented character give always the same 
result: BEEP without any character displayed.  All other characters seem to 
work correctly.  I give a try to the fr mapping with the same result. 
 One of my co-workers has also installed Cygwin on his computer and he 
obtained the same results as mine.  I made an upgrade this morning to be 
certain that I'm having the last Cygwin version.  If it can help, my 
computer is a Dell Latitude C840.

The first time that I saw the fr_CA layout on Linux was with Redhat using 
Xfree86 and I also recently saw it with Gentoo (2005.0) using Xorg.  I'm 
presuming it is part of the Xfree86 and Xorg projects. You can also find a 
reference in the Cygwin file /etc/X11/xkb/keymap/xfree86.  However, running 
setxkbmap fr_CA in Cygwin give  Error loading new keyboard description. 
 Note that I can adapt myself to use ca or ca_enhanced without problem.  It 
is easy to adapt us if only few keys are to a different place.

Thanks for your support

-Message d'origine-
De: Alexander Gottwald
Date:   6 juillet 2005 14:56
A:  'cygwin-xfree@cygwin.com'; Daniel Landry
Objet:  RE: Cygwin doesn't recognize the Canadian French keyboard

On Wed, 6 Jul 2005, Daniel Landry wrote:

 Running setxkbmap with each layouts (ca, fr_CA, ca_enhanced) don't fix 
the
 problem.  In all case, the French accents are replaced by a BEEP and any
 character is displayed.  However, I can make a cut and paste from WinXP
 without any problem.

ca_enhanced uses deadkeys. I get this layout (not printing modifier, 
backspace
and stuff)

#1234567890-=
 qwertyuiop^
 asdfghjkl;`
 zxcvbnm,.e

^,` are deadkeys. pressing ^ and A will compose A

 Concerning the key mapping, I'm using fr_CA on my Debian at home and it's 

 working great.

This must be a debian special. There is no such layout in Cygwin/X

 However, as Cygwin run on Windows, I presume that the best
 would be to keep the same keyboard mapping that Windows uses.

At least in the autedetection list. You can override the defaults with the
-xkblayout parameter anyway and set a different layout.

bye
ago
--
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723



RE: Cygwin doesn't recognize the Canadian French keyboard

2005-07-06 Thread Daniel Landry
I have found my problem.  I had tried cut and paste functions in Emacs but 
try the new keyboard mapping in Xterm.  In fact, ca_enhanced keyboard was 
working in some application, but not on others.  Emacs, vim, nano see well 
the new mapping.  Xterm and some other applications like python interpreter 
environment don't see it, but I can't make any cut and paste with accented 
character either.  I'll see case by case for the configuration of these 
applications but it is no more a keyboard-mapping problem.

Take note also that ca_enhanced  keyboard is a nice one that fit exactly 
with the symbol on my decking keyboard. It seems that the comment in the 
ca_enhanced description is right: Most of the french canadian keyboards 
available on PCs are mapped like this.  It will be great if this mapping 
is selected automatically in the future.  That will help the new users.

Thanks again for your support.

-Message d'origine-
De: Daniel Landry
Date:   6 juillet 2005 16:34
A:  'Alexander Gottwald'; 'cygwin-xfree@cygwin.com'
Objet:  RE: Cygwin doesn't recognize the Canadian French keyboard

I'm familiar with deadkeys, but they don't work on my Cygwin installation. 
 The e character is a special key that doesn't request any deadkey and it 
doesn't work either.  Using any accented character give always the same 
result: BEEP without any character displayed.  All other characters seem to 
work correctly.  I give a try to the fr mapping with the same result. 
 One of my co-workers has also installed Cygwin on his computer and he 
obtained the same results as mine.  I made an upgrade this morning to be 
certain that I'm having the last Cygwin version.  If it can help, my 
computer is a Dell Latitude C840.

The first time that I saw the fr_CA layout on Linux was with Redhat using 
Xfree86 and I also recently saw it with Gentoo (2005.0) using Xorg.  I'm 
presuming it is part of the Xfree86 and Xorg projects. You can also find a 
reference in the Cygwin file /etc/X11/xkb/keymap/xfree86.  However, running 
setxkbmap fr_CA in Cygwin give  Error loading new keyboard description. 
 Note that I can adapt myself to use ca or ca_enhanced without problem.  It 
is easy to adapt us if only few keys are to a different place.

Thanks for your support

-Message d'origine-
De: Alexander Gottwald
Date:   6 juillet 2005 14:56
A:  'cygwin-xfree@cygwin.com'; Daniel Landry
Objet:  RE: Cygwin doesn't recognize the Canadian French keyboard

On Wed, 6 Jul 2005, Daniel Landry wrote:

 Running setxkbmap with each layouts (ca, fr_CA, ca_enhanced) don't fix 
the
 problem.  In all case, the French accents are replaced by a BEEP and any
 character is displayed.  However, I can make a cut and paste from WinXP
 without any problem.

ca_enhanced uses deadkeys. I get this layout (not printing modifier, 
backspace
and stuff)

#1234567890-=
 qwertyuiop^
 asdfghjkl;`
 zxcvbnm,.e

^,` are deadkeys. pressing ^ and A will compose A

 Concerning the key mapping, I'm using fr_CA on my Debian at home and it's 

 working great.

This must be a debian special. There is no such layout in Cygwin/X

 However, as Cygwin run on Windows, I presume that the best
 would be to keep the same keyboard mapping that Windows uses.

At least in the autedetection list. You can override the defaults with the
-xkblayout parameter anyway and set a different layout.

bye
ago
--
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723



RE: Cygwin doesn't recognize the Canadian French keyboard

2005-07-06 Thread Igor Pechtchanski
Ugh, top-posting.  Reformatted.

On Wed, 6 Jul 2005, Daniel Landry wrote:

 -Message d'origine-
 De:   Daniel Landry
 Date: 6 juillet 2005 16:34
 A:'Alexander Gottwald'; 'cygwin-xfreeatcygwin.com'

Also, http://cygwin.com/acronyms/#PCYMTNQREAIYR.  Thanks.

  -Message d'origine-
  De: Alexander Gottwald
  Date:   6 juillet 2005 14:56
 
   On Wed, 6 Jul 2005, Daniel Landry wrote:
  
Running setxkbmap with each layouts (ca, fr_CA, ca_enhanced) don't
fix the problem.  In all case, the French accents are replaced by
a BEEP and any character is displayed.  However, I can make a cut
and paste from WinXP without any problem.
  
   ca_enhanced uses deadkeys.
   ^,` are deadkeys. pressing ^ and A will compose A
   [snip]
 
  I'm familiar with deadkeys, but they don't work on my Cygwin
  installation.  The e character is a special key that doesn't request
  any deadkey and it doesn't work either.  Using any accented character
  give always the same result: BEEP without any character displayed.
  All other characters seem to work correctly.  I give a try to the fr
  mapping with the same result.  One of my co-workers has also installed
  Cygwin on his computer and he obtained the same results as mine.  I
  made an upgrade this morning to be certain that I'm having the last
  Cygwin version.  If it can help, my computer is a Dell Latitude C840.
  [snip]

 I have found my problem.  I had tried cut and paste functions in Emacs
 but try the new keyboard mapping in Xterm.  In fact, ca_enhanced
 keyboard was working in some application, but not on others.  Emacs,
 vim, nano see well the new mapping.  Xterm and some other applications
 like python interpreter environment don't see it, but I can't make any
 cut and paste with accented character either.  I'll see case by case for
 the configuration of these applications but it is no more a
 keyboard-mapping problem.
 [snip]

Ah.  I'm going to venture a guess and say that it's not simply an xterm,
but an xterm running bash[*] that doesn't work, and direct you to
http://cygwin.com/faq/faq_3.html#SEC48.

HTH,
Igor
[*] bash uses readline, and, most likely, so does the python interpreter
environment (top-level?).
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse... -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT