Re: toggle between english and french (how?)

2007-02-12 Thread Peter
Le Vendredi 9 Février 2007 16:15, Giorgos Keramidas a écrit :
 On 2007-02-09 11:42, Peter [EMAIL PROTECTED] wrote:
 Le Vendredi 9 F??vrier 2007 10:26, Giorgos Keramidas a ??crit :
  Not really.  I'm just trying to understand why you have to change
  the *remote* keyboard map.  The local keyboard map is what really
  matters, and this should work fine with the remote shell
  enrivonment for any locale/language.
 
  Ok.  What I want to be able to do is *occasionally* edit files in
  French *remotely*.  That's all.

 Then you don't have to change the 'remote' keymap.  Especially not
 the remote *console* keymap.

I was always able to emit French characters locally while in X.

Remotely my shell is bash.  I put:

~/.profile

# Locale setup.
export LANG=C
export LC_CTYPE=fr_CA.ISO8859-1
export LC_COLLATE=fr_CA.ISO8859-1

~/.inputrc

# Locale setup.
set convert-meta Off
set editing-mode emacs
set input-meta On
set output-meta On

I noticed that a test of creating a directory containing a French 
character failed (it showed a question mark where the character lay) 
until I set up .inputrc.

So everything seems to work now although I haven't tried the console 
method yet.

Thanks a lot for your help.

PM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-09 Thread Giorgos Keramidas
On 2007-02-09 00:53, Peter [EMAIL PROTECTED] wrote:
Le Jeudi 8 F??vrier 2007 21:24, Giorgos Keramidas a ??crit :
On 2007-02-08 18:57, Peter [EMAIL PROTECTED] wrote:
Le Jeudi 8 F??vrier 2007 16:32, Apatewna a ??crit :
O/H Peter έγραψε:
 Darn.  Now I see that these commands cannot be used via an
 xterm (remotely via SSH).  Any ideas?

 I always change the locale settings in ~/.login_conf
 For example for the greek language I use :

 me:\

 :charset=iso-8859-7:\
 :lang=el_GR.UTF-8:

 I guess I'm achieving the same thing via ~/.profile.  I just need a
 way to change keyboard layouts remotely.

 Do you *really* have to?  I'm setting an X11 keyboard layout on my
 FreeBSD laptop locally, and it works fine for remote servers which
 I access through ssh too...

 The French keyboard is significantly different.  I suppose I could have
 a French keyboard by default but it would be quite annoying to work on.
 Is that what you're proposing?

Not really.  I'm just trying to understand why you have to change the
*remote* keyboard map.  The local keyboard map is what really matters,
and this should work fine with the remote shell enrivonment for any
locale/language.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-09 Thread Peter
Le Vendredi 9 Février 2007 10:26, Giorgos Keramidas a écrit :
 On 2007-02-09 00:53, Peter [EMAIL PROTECTED] wrote:
 Le Jeudi 8 F??vrier 2007 21:24, Giorgos Keramidas a ??crit :
 On 2007-02-08 18:57, Peter [EMAIL PROTECTED] wrote:
 Le Jeudi 8 F??vrier 2007 16:32, Apatewna a ??crit :
 O/H Peter έγραψε:
  Darn.  Now I see that these commands cannot be used via an
  xterm (remotely via SSH).  Any ideas?
 
  I always change the locale settings in ~/.login_conf
  For example for the greek language I use :
 
  me:\
 
  :charset=iso-8859-7:\
  :lang=el_GR.UTF-8:
 
  I guess I'm achieving the same thing via ~/.profile.  I just need
  a way to change keyboard layouts remotely.
 
  Do you *really* have to?  I'm setting an X11 keyboard layout on my
  FreeBSD laptop locally, and it works fine for remote servers which
  I access through ssh too...
 
  The French keyboard is significantly different.  I suppose I could
  have a French keyboard by default but it would be quite annoying to
  work on. Is that what you're proposing?

 Not really.  I'm just trying to understand why you have to change the
 *remote* keyboard map.  The local keyboard map is what really
 matters, and this should work fine with the remote shell enrivonment
 for any locale/language.

Ok.  What I want to be able to do is *occasionally* edit files in French 
*remotely*.  That's all.

PM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-09 Thread Kevin Downey

On 2/9/07, Peter [EMAIL PROTECTED] wrote:

Le Vendredi 9 Février 2007 10:26, Giorgos Keramidas a écrit:
 On 2007-02-09 00:53, Peter [EMAIL PROTECTED] wrote:
 Le Jeudi 8 F??vrier 2007 21:24, Giorgos Keramidas a ??crit:
 On 2007-02-08 18:57, Peter [EMAIL PROTECTED] wrote:
 Le Jeudi 8 F??vrier 2007 16:32, Apatewna a ??crit:
 O/H Peter έγραψε:
  Darn.  Now I see that these commands cannot be used via an
  xterm (remotely via SSH).  Any ideas?
 
  I always change the locale settings in ~/.login_conf
  For example for the greek language I use :
 
  me:\
 
  :charset=iso-8859-7:\
  :lang=el_GR.UTF-8:
 
  I guess I'm achieving the same thing via ~/.profile.  I just need
  a way to change keyboard layouts remotely.
 
  Do you *really* have to?  I'm setting an X11 keyboard layout on my
  FreeBSD laptop locally, and it works fine for remote servers which
  I access through ssh too...
 
  The French keyboard is significantly different.  I suppose I could
  have a French keyboard by default but it would be quite annoying to
  work on. Is that what you're proposing?

 Not really.  I'm just trying to understand why you have to change the
 *remote* keyboard map.  The local keyboard map is what really
 matters, and this should work fine with the remote shell enrivonment
 for any locale/language.

Ok.  What I want to be able to do is *occasionally* edit files in French
*remotely*.  That's all.

PM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


You have the server and the workstation. What matters is the keymap
setup on the workstation. If you are running Gnome\GTK on the
workstation SCIM is a nice way to control keyboard layouts. I think
SCIM may also work with KDE\QT

--
The biggest problem with communication is the illusion that it has occurred.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: toggle between english and french (how?)

2007-02-09 Thread Giorgos Keramidas
On 2007-02-09 11:42, Peter [EMAIL PROTECTED] wrote:
Le Vendredi 9 F??vrier 2007 10:26, Giorgos Keramidas a ??crit :
 Not really.  I'm just trying to understand why you have to change the
 *remote* keyboard map.  The local keyboard map is what really
 matters, and this should work fine with the remote shell enrivonment
 for any locale/language.
 
 Ok.  What I want to be able to do is *occasionally* edit files in French 
 *remotely*.  That's all.

Then you don't have to change the 'remote' keymap.  Especially not the
remote *console* keymap.

I'm often editing files in Greek (el_GR.ISO8859-7) over an SSH
connection to a Solaris machine somewhere else.  The setup I use is
described below:

[1] My .bashrc contains:

,-
| # Locale setup.
| export LANG=C
| export LC_CTYPE=el_GR.ISO8859-7
| export LC_COLLATE=el_GR.ISO8859-7
| unset LC_ALL LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME
`-

This makes sure that bash (even the shell I'm using as a login shell
before X11 fires up) knows that my local language environment is
`el_GR.ISO8859-7', that it is ok to display characters from this
locale (LC_CTYPE), and that I want sorting to be done according to
the sorting rules of the `el_GR.ISO8859-7' locale.

[2] I'm firing up X11 and I have made sure my .xinitrc file does not
override the LANG or LC_XXX environment variables mentioned below.

[3] My /etc/X11/xorg.conf contains:

,-
| Section InputDevice
| Identifier  Keyboard0
| Driver  keyboard
| Option  XkbRules xorg
| Option  XkbModel pc105
| 
  + | # Support for Greek input.  You must also have a matching locale
  + | # setup in the environment of your xinit process.
  + | Option  XkbLayout  us,el
  + | Option  XkbOptions 
grp:alt_shift_toggle,grp_led:scroll,compose:ralt
| EndSection
`-

Note the lines marked with a '+'.  These let my X11 desktop switch
from Greek to English keyboard input, by hitting the left ALT and
left SHIFT keys together.

What characters are sent to applications is entirely a matter of
this local setup, and is not really controlled by a remote server.

For the remote server it doesn't really matter if you are typing on
a keyboard, pasting text from a web browser, copying text using
screen(1) from one terminal and pasting it to an ssh window, etc.

Now, even with these three options, remote servers need just a small
tweak to be able to 'read' what you sent over an SSH connection and
correctly grok it as Greek (or French, in your case) text.  They have to
be notified that your locale permits these characters to be printed.

This is done by setting in your *remote* .bashrc file the same locale
environment variables:

,-
| # Locale setup.
| export LANG=C
| export LC_CTYPE=el_GR.ISO8859-7
| export LC_COLLATE=el_GR.ISO8859-7
| unset LC_ALL LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME
`-

That is all it should take to let the remote server know that it is ok
to display Greek characters.

Some applications, i.e. bash(1) may need additional tweaks to allow
input and/or display of 8-bit character sets (like Greek or French).
For instance, in my .inputrc file (configuration file for the 'readline'
library, and all the programs that use it; i.e. bash), I also have:

,-
| set convert-meta Off
| set editing-mode emacs
| set input-meta On
| set output-meta On
`-

This is present in all my .bashrc files (both local and remote ones).

For reading, inputting and displaying French characters using an X11
desktop, you will have to do something similar, but `el_GR.ISO8859-7'
will have to be replaced with one of the French locales.

For reading, inputting and displaying French characters using a console
session (i.e. one where your local system hasn't started X11 yet), you
will have to do something similar *plus* change the *local* console
keymap to support French input.  The rest of the necessary settings for
the environment and the LANG/LC_XXX values remain the same as in X11
(except, obviously, the ones inside `xorg.conf').

I hope this clarifies things a bit :)  If not, feel free to provide us
with more details about the setup you are trying to configure.

- Giorgos


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To 

Re: toggle between english and french (how?)

2007-02-08 Thread Giorgos Keramidas
On 2007-02-08 00:38, Peter [EMAIL PROTECTED] wrote:
Le Mercredi 7 F?vrier 2007 16:03, Giorgos Keramidas a ?crit :
 Yes, I tried

 fr.iso.acc.kbd
 fr.iso.kbd
 fr_CA.iso.acc.kbd

 Maybe I need to inform FreeBSD about the layout of my keyboard. 
 All I get are beeps when I hit the special French accent keys.

 This usually means that you are typing 8-bit (i.e. French) characters
 at a shell prompt, but you have not set or configured any locale
 environment yet, or you have the wrong locale environment.

 If this is true, and you are hearing the beeps when typing at a shell
 prompt, then please tell us which shell you are using and what you
 see by typing:

 % locale
 
 This is what I get:
 
 LANG=
 LC_CTYPE=C
 LC_COLLATE=C
 LC_TIME=C
 LC_NUMERIC=C
 LC_MONETARY=C
 LC_MESSAGES=C
 LC_ALL=

Right.  You haven't set any LANG or LC_xxx environment variables.

Try using one of the French locales, and set the following in your shell
startup scripts:

LANG='C'
LC_COLLATE='fr_CA.ISO8859-1'
LC_CTYPE='fr_CA.ISO8859-1'

If you are using GNU bash, you can set in your `.bashrc' file:

export LANG='C'
export LC_COLLATE='fr_CA.ISO8859-1'
export LC_CTYPE='fr_CA.ISO8859-1'

If you are using tcsh, the commands for `.cshrc' are slightly different:

setenv LANG 'C'
setenv LC_COLLATE 'fr_CA.ISO8859-1'
setenv LC_CTYPE 'fr_CA.ISO8859-1'

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-08 Thread Peter
Le Jeudi 8 Février 2007 06:16, Giorgos Keramidas a écrit :
 On 2007-02-08 00:38, Peter [EMAIL PROTECTED] wrote:
 Le Mercredi 7 F?vrier 2007 16:03, Giorgos Keramidas a ?crit :
  Yes, I tried
 
  fr.iso.acc.kbd
  fr.iso.kbd
  fr_CA.iso.acc.kbd
 
  Maybe I need to inform FreeBSD about the layout of my keyboard.
  All I get are beeps when I hit the special French accent keys.
 
  This usually means that you are typing 8-bit (i.e. French)
  characters at a shell prompt, but you have not set or configured
  any locale environment yet, or you have the wrong locale
  environment.
 
  If this is true, and you are hearing the beeps when typing at a
  shell prompt, then please tell us which shell you are using and
  what you see by typing:
 
  % locale
 
  This is what I get:
 
  LANG=
  LC_CTYPE=C
  LC_COLLATE=C
  LC_TIME=C
  LC_NUMERIC=C
  LC_MONETARY=C
  LC_MESSAGES=C
  LC_ALL=

 Right.  You haven't set any LANG or LC_xxx environment variables.

 Try using one of the French locales, and set the following in your
 shell startup scripts:

 LANG='C'
 LC_COLLATE='fr_CA.ISO8859-1'
 LC_CTYPE='fr_CA.ISO8859-1'

 If you are using GNU bash, you can set in your `.bashrc' file:

 export LANG='C'
 export LC_COLLATE='fr_CA.ISO8859-1'
 export LC_CTYPE='fr_CA.ISO8859-1'

Thanks a lot Giorgos.  It works now.  I used the bash method and then 
set up a couple of aliases:

alias french='/usr/sbin/kbdcontrol -l fr_CA.iso.acc.kbd'
alias english='/usr/sbin/kbdcontrol -l us.iso.acc.kbd'

PM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-08 Thread Peter
Le Jeudi 8 Février 2007 14:44, Peter a écrit :
 Le Jeudi 8 Février 2007 06:16, Giorgos Keramidas a écrit :
  On 2007-02-08 00:38, Peter [EMAIL PROTECTED] wrote:
  Le Mercredi 7 F?vrier 2007 16:03, Giorgos Keramidas a ?crit :
   Yes, I tried
  
   fr.iso.acc.kbd
   fr.iso.kbd
   fr_CA.iso.acc.kbd
  
   Maybe I need to inform FreeBSD about the layout of my keyboard.
   All I get are beeps when I hit the special French accent keys.
  
   This usually means that you are typing 8-bit (i.e. French)
   characters at a shell prompt, but you have not set or configured
   any locale environment yet, or you have the wrong locale
   environment.
  
   If this is true, and you are hearing the beeps when typing at a
   shell prompt, then please tell us which shell you are using and
   what you see by typing:
  
   % locale
  
   This is what I get:
  
   LANG=
   LC_CTYPE=C
   LC_COLLATE=C
   LC_TIME=C
   LC_NUMERIC=C
   LC_MONETARY=C
   LC_MESSAGES=C
   LC_ALL=
 
  Right.  You haven't set any LANG or LC_xxx environment variables.
 
  Try using one of the French locales, and set the following in your
  shell startup scripts:
 
  LANG='C'
  LC_COLLATE='fr_CA.ISO8859-1'
  LC_CTYPE='fr_CA.ISO8859-1'
 
  If you are using GNU bash, you can set in your `.bashrc' file:
 
  export LANG='C'
  export LC_COLLATE='fr_CA.ISO8859-1'
  export LC_CTYPE='fr_CA.ISO8859-1'

 Thanks a lot Giorgos.  It works now.  I used the bash method and then
 set up a couple of aliases:

 alias french='/usr/sbin/kbdcontrol -l fr_CA.iso.acc.kbd'
 alias english='/usr/sbin/kbdcontrol -l us.iso.acc.kbd'


Darn.  Now I see that these commands cannot be used via an xterm 
(remotely via SSH).  Any ideas?

PM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-08 Thread Apatewna

O/H Peter έγραψε:
Darn.  Now I see that these commands cannot be used via an xterm 
(remotely via SSH).  Any ideas?


I always change the locale settings in ~/.login_conf
For example for the greek language I use :

me:\
:charset=iso-8859-7:\
:lang=el_GR.UTF-8:
--
RTFM and STFW before anything bad happens
-
Thanasis Rizoulis
Electronic Computing Systems Engineer
Larissa, Greece
Linux User #358384
FreeBSD/PCBSD user
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-08 Thread Peter
Le Jeudi 8 Février 2007 16:32, Apatewna a écrit :
 O/H Peter έγραψε:
  Darn.  Now I see that these commands cannot be used via an xterm
  (remotely via SSH).  Any ideas?

 I always change the locale settings in ~/.login_conf
 For example for the greek language I use :

 me:\

 :charset=iso-8859-7:\
 :lang=el_GR.UTF-8:

I guess I'm achieving the same thing via ~/.profile.  I just need a way 
to change keyboard layouts remotely.

PM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-08 Thread Giorgos Keramidas
On 2007-02-08 15:09, Peter [EMAIL PROTECTED] wrote:
 Le Jeudi 8 F?vrier 2007 14:44, Peter a ?crit :
  Le Jeudi 8 F?vrier 2007 06:16, Giorgos Keramidas a ?crit :
   Try using one of the French locales, and set the following in your
   shell startup scripts:
  
   LANG='C'
   LC_COLLATE='fr_CA.ISO8859-1'
   LC_CTYPE='fr_CA.ISO8859-1'
  
   If you are using GNU bash, you can set in your `.bashrc' file:
  
   export LANG='C'
   export LC_COLLATE='fr_CA.ISO8859-1'
   export LC_CTYPE='fr_CA.ISO8859-1'
 
  Thanks a lot Giorgos.  It works now.  I used the bash method and then
  set up a couple of aliases:
 
  alias french='/usr/sbin/kbdcontrol -l fr_CA.iso.acc.kbd'
  alias english='/usr/sbin/kbdcontrol -l us.iso.acc.kbd'

 Darn.  Now I see that these commands cannot be used via an xterm
 (remotely via SSH).  Any ideas?

When you are sitting on an xterm in machine A and you ssh into FreeBSD
system B, it's the local client's responsibility to set a proper locale
and internationalization environment for *displaying* stuff and its
FreeBSD's responsibility for letting you type French if your FreeBSD
locale is French too.

Setting the console keyboard map with kbdcontrol on a remote FreeBSD
system cannot affect your local xterm window.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-08 Thread Giorgos Keramidas
On 2007-02-08 18:57, Peter [EMAIL PROTECTED] wrote:
 Le Jeudi 8 F??vrier 2007 16:32, Apatewna a ??crit :
  O/H Peter έγραψε:
   Darn.  Now I see that these commands cannot be used via an xterm
   (remotely via SSH).  Any ideas?
 
  I always change the locale settings in ~/.login_conf
  For example for the greek language I use :
 
  me:\
 
  :charset=iso-8859-7:\
  :lang=el_GR.UTF-8:

 I guess I'm achieving the same thing via ~/.profile.  I just need a
 way to change keyboard layouts remotely.

Do you *really* have to?  I'm setting an X11 keyboard layout on my
FreeBSD laptop locally, and it works fine for remote servers which
I access through ssh too...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-08 Thread Peter
Le Jeudi 8 Février 2007 21:24, Giorgos Keramidas a écrit :
 On 2007-02-08 18:57, Peter [EMAIL PROTECTED] wrote:
  Le Jeudi 8 F??vrier 2007 16:32, Apatewna a ??crit :
   O/H Peter έγραψε:
Darn.  Now I see that these commands cannot be used via an
xterm (remotely via SSH).  Any ideas?
  
   I always change the locale settings in ~/.login_conf
   For example for the greek language I use :
  
   me:\
  
   :charset=iso-8859-7:\
   :lang=el_GR.UTF-8:
 
  I guess I'm achieving the same thing via ~/.profile.  I just need a
  way to change keyboard layouts remotely.

 Do you *really* have to?  I'm setting an X11 keyboard layout on my
 FreeBSD laptop locally, and it works fine for remote servers which
 I access through ssh too...

The French keyboard is significantly different.  I suppose I could have 
a French keyboard by default but it would be quite annoying to work on.
Is that what you're proposing?

PM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-07 Thread Giorgos Keramidas
On 2007-02-06 17:29, Peter [EMAIL PROTECTED] wrote:
 I have a 6.2 box on which I intend to set up a web server (lighttpd)
 and a file server (samba).  The kicker is that I will need to allow
 for French characters (?, ?, ?, etc).  I had such an issue before but
 only managed to solve it at the X level (via xorg.conf).  Now I need
 to solve it at the console level.

 The Handbook has a lot of ideas but it seems focused on a per user
 basis instead of on a system level basis.  Then again, maybe I just
 don't understand what its trying to say.

 I would also need to toggle back and forth between English and French.

Have a look at the keymaps for French in /usr/share/syscons/keymaps':

  $ ( cd /usr/share/syscons/keymaps; ls -l *fr* )
  -r--r--r--  1 root  wheel  - 9148 Feb  2 15:29 fr.dvorak.acc.kbd
  -r--r--r--  1 root  wheel  - 7702 Feb  2 15:29 fr.dvorak.kbd
  -r--r--r--  1 root  wheel  - 8613 Feb  2 15:29 fr.iso.acc.kbd
  -r--r--r--  1 root  wheel  - 7659 Feb  2 15:29 fr.iso.kbd
  -r--r--r--  1 root  wheel  - 8715 Feb  2 15:29 fr_CA.iso.acc.kbd
  -r--r--r--  1 root  wheel  - 7825 Feb  2 15:29 swissfrench.cp850.kbd
  -r--r--r--  1 root  wheel  - 8577 Feb  2 15:29 swissfrench.iso.acc.kbd
  -r--r--r--  1 root  wheel  - 7766 Feb  2 15:29 swissfrench.iso.kbd
  $

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-07 Thread Peter
Le Mercredi 7 Février 2007 12:48, Giorgos Keramidas a écrit :
 On 2007-02-06 17:29, Peter [EMAIL PROTECTED] wrote:
  I have a 6.2 box on which I intend to set up a web server
  (lighttpd) and a file server (samba).  The kicker is that I will
  need to allow for French characters (?, ?, ?, etc).  I had such an
  issue before but only managed to solve it at the X level (via
  xorg.conf).  Now I need to solve it at the console level.
 
  The Handbook has a lot of ideas but it seems focused on a per user
  basis instead of on a system level basis.  Then again, maybe I just
  don't understand what its trying to say.
 
  I would also need to toggle back and forth between English and
  French.

 Have a look at the keymaps for French in /usr/share/syscons/keymaps':

   $ ( cd /usr/share/syscons/keymaps; ls -l *fr* )
   -r--r--r--  1 root  wheel  - 9148 Feb  2 15:29 fr.dvorak.acc.kbd
   -r--r--r--  1 root  wheel  - 7702 Feb  2 15:29 fr.dvorak.kbd
   -r--r--r--  1 root  wheel  - 8613 Feb  2 15:29 fr.iso.acc.kbd
   -r--r--r--  1 root  wheel  - 7659 Feb  2 15:29 fr.iso.kbd
   -r--r--r--  1 root  wheel  - 8715 Feb  2 15:29 fr_CA.iso.acc.kbd
   -r--r--r--  1 root  wheel  - 7825 Feb  2 15:29
 swissfrench.cp850.kbd -r--r--r--  1 root  wheel  - 8577 Feb  2 15:29
 swissfrench.iso.acc.kbd -r--r--r--  1 root  wheel  - 7766 Feb  2
 15:29 swissfrench.iso.kbd $

Yes, I tried

fr.iso.acc.kbd
fr.iso.kbd
fr_CA.iso.acc.kbd

Maybe I need to inform FreeBSD about the layout of my keyboard.  All I 
get are beeps when I hit the special French accent keys.

PM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-07 Thread Giorgos Keramidas
On 2007-02-07 13:02, Peter [EMAIL PROTECTED] wrote:
 Le Mercredi 7 F?vrier 2007 12:48, Giorgos Keramidas a ?crit :
  Have a look at the keymaps for French in /usr/share/syscons/keymaps':
 
$ ( cd /usr/share/syscons/keymaps; ls -l *fr* )
-r--r--r--  1 root  wheel  - 9148 Feb  2 15:29 fr.dvorak.acc.kbd
-r--r--r--  1 root  wheel  - 7702 Feb  2 15:29 fr.dvorak.kbd
-r--r--r--  1 root  wheel  - 8613 Feb  2 15:29 fr.iso.acc.kbd
-r--r--r--  1 root  wheel  - 7659 Feb  2 15:29 fr.iso.kbd
-r--r--r--  1 root  wheel  - 8715 Feb  2 15:29 fr_CA.iso.acc.kbd
-r--r--r--  1 root  wheel  - 7825 Feb  2 15:29
  swissfrench.cp850.kbd -r--r--r--  1 root  wheel  - 8577 Feb  2 15:29
  swissfrench.iso.acc.kbd -r--r--r--  1 root  wheel  - 7766 Feb  2
  15:29 swissfrench.iso.kbd $

 Yes, I tried

 fr.iso.acc.kbd
 fr.iso.kbd
 fr_CA.iso.acc.kbd

 Maybe I need to inform FreeBSD about the layout of my keyboard.  All I
 get are beeps when I hit the special French accent keys.

This usually means that you are typing 8-bit (i.e. French) characters at
a shell prompt, but you have not set or configured any locale environment
yet, or you have the wrong locale environment.

If this is true, and you are hearing the beeps when typing at a shell
prompt, then please tell us which shell you are using and what you see
by typing:

% locale


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-07 Thread Peter
Le Mercredi 7 Février 2007 16:03, Giorgos Keramidas a écrit :
 On 2007-02-07 13:02, Peter [EMAIL PROTECTED] wrote:
  Le Mercredi 7 F?vrier 2007 12:48, Giorgos Keramidas a ?crit :
   Have a look at the keymaps for French in
   /usr/share/syscons/keymaps':
  
 $ ( cd /usr/share/syscons/keymaps; ls -l *fr* )
 -r--r--r--  1 root  wheel  - 9148 Feb  2 15:29
   fr.dvorak.acc.kbd -r--r--r--  1 root  wheel  - 7702 Feb  2 15:29
   fr.dvorak.kbd -r--r--r--  1 root  wheel  - 8613 Feb  2 15:29
   fr.iso.acc.kbd -r--r--r--  1 root  wheel  - 7659 Feb  2 15:29
   fr.iso.kbd -r--r--r--  1 root  wheel  - 8715 Feb  2 15:29
   fr_CA.iso.acc.kbd -r--r--r--  1 root  wheel  - 7825 Feb  2 15:29
   swissfrench.cp850.kbd -r--r--r--  1 root  wheel  - 8577 Feb  2
   15:29 swissfrench.iso.acc.kbd -r--r--r--  1 root  wheel  - 7766
   Feb  2 15:29 swissfrench.iso.kbd $
 
  Yes, I tried
 
  fr.iso.acc.kbd
  fr.iso.kbd
  fr_CA.iso.acc.kbd
 
  Maybe I need to inform FreeBSD about the layout of my keyboard. 
  All I get are beeps when I hit the special French accent keys.

 This usually means that you are typing 8-bit (i.e. French) characters
 at a shell prompt, but you have not set or configured any locale
 environment yet, or you have the wrong locale environment.

 If this is true, and you are hearing the beeps when typing at a shell
 prompt, then please tell us which shell you are using and what you
 see by typing:

 % locale

This is what I get:

LANG=
LC_CTYPE=C
LC_COLLATE=C
LC_TIME=C
LC_NUMERIC=C
LC_MONETARY=C
LC_MESSAGES=C
LC_ALL=
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


toggle between english and french (how?)

2007-02-06 Thread Peter
I have a 6.2 box on which I intend to set up a web server (lighttpd) and 
a file server (samba).  The kicker is that I will need to allow for 
French characters (é, à, ç, etc).  I had such an issue before but only 
managed to solve it at the X level (via xorg.conf).  Now I need to 
solve it at the console level.

The Handbook has a lot of ideas but it seems focused on a per user basis 
instead of on a system level basis.  Then again, maybe I just don't 
understand what its trying to say.

I would also need to toggle back and forth between English and French.

Thanks in advance to any responders,

PM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-06 Thread Andrew Pantyukhin

On 2/7/07, Peter [EMAIL PROTECTED] wrote:

I have a 6.2 box on which I intend to set up a web server (lighttpd) and
a file server (samba).  The kicker is that I will need to allow for
French characters (é, à, ç, etc).  I had such an issue before but only
managed to solve it at the X level (via xorg.conf).  Now I need to
solve it at the console level.

The Handbook has a lot of ideas but it seems focused on a per user basis
instead of on a system level basis.  Then again, maybe I just don't
understand what its trying to say.

I would also need to toggle back and forth between English and French.

Thanks in advance to any responders,


Are you sure about the console level? If you plan
to access the server via ssh, you only need to
set server-side locale right, the rest is handled
at the client side.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: toggle between english and french (how?)

2007-02-06 Thread Pietro Cerutti

On 2/6/07, Peter [EMAIL PROTECTED] wrote:

I have a 6.2 box on which I intend to set up a web server (lighttpd) and
a file server (samba).  The kicker is that I will need to allow for
French characters (é, à, ç, etc).  I had such an issue before but only
managed to solve it at the X level (via xorg.conf).  Now I need to
solve it at the console level.


put a line like this one in your /etc/rc.conf
keymap=your_keymap

where your_keymap is one of the filenames in
/usr/share/syscons/keymaps, without the ending .kbd (e.g. for my swiss
french console I use
keymap=swissfrench.iso.acc


I would also need to toggle back and forth between English and French.


man kbdcontrol
man kbdmap



Thanks in advance to any responders,


Hope this helps,


PM



--
Pietro Cerutti
ICQ: 117293691
PGP: 0x9571F78E

- ASCII Ribbon Campaign -
against HTML e-mail and
proprietary attachments
  www.asciiribbon.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-06 Thread Peter
Le Mardi 6 Février 2007 17:45, Andrew Pantyukhin a écrit :
 On 2/7/07, Peter [EMAIL PROTECTED] wrote:
  I have a 6.2 box on which I intend to set up a web server
  (lighttpd) and a file server (samba).  The kicker is that I will
  need to allow for French characters (é, à, ç, etc).  I had such an
  issue before but only managed to solve it at the X level (via
  xorg.conf).  Now I need to solve it at the console level.
 
  The Handbook has a lot of ideas but it seems focused on a per user
  basis instead of on a system level basis.  Then again, maybe I just
  don't understand what its trying to say.
 
  I would also need to toggle back and forth between English and
  French.
 
  Thanks in advance to any responders,

 Are you sure about the console level? If you plan
 to access the server via ssh, you only need to
 set server-side locale right, the rest is handled
 at the client side.

I assume by server-side you mean within samba and lighttpd.  Yes, as 
long as these two can output the characters then I'm happy.  I just 
copied the first paragraph of my posting into lighttpd and this is what 
came back in my browser:

I have a 6.2 box on which I intend to set up a web server (lighttpd) and 
a file server (samba). The kicker is that I will need to allow for 
French characters (é,ç, etc). I had such an issue before but only 
managed to solve it at the X level (via xorg.conf). Now I need to 
solve it at the console level.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-06 Thread Kevin Downey

On 2/6/07, Peter [EMAIL PROTECTED] wrote:

Le Mardi 6 Février 2007 17:45, Andrew Pantyukhin a écrit:
 On 2/7/07, Peter [EMAIL PROTECTED] wrote:
  I have a 6.2 box on which I intend to set up a web server
  (lighttpd) and a file server (samba).  The kicker is that I will
  need to allow for French characters (é, à, ç, etc).  I had such an
  issue before but only managed to solve it at the X level (via
  xorg.conf).  Now I need to solve it at the console level.
 
  The Handbook has a lot of ideas but it seems focused on a per user
  basis instead of on a system level basis.  Then again, maybe I just
  don't understand what its trying to say.
 
  I would also need to toggle back and forth between English and
  French.
 
  Thanks in advance to any responders,

 Are you sure about the console level? If you plan
 to access the server via ssh, you only need to
 set server-side locale right, the rest is handled
 at the client side.

I assume by server-side you mean within samba and lighttpd.  Yes, as
long as these two can output the characters then I'm happy.  I just
copied the first paragraph of my posting into lighttpd and this is what
came back in my browser:

I have a 6.2 box on which I intend to set up a web server (lighttpd) and
a file server (samba). The kicker is that I will need to allow for
French characters (Ã(c),ç, etc). I had such an issue before but only
managed to solve it at the X level (via xorg.conf). Now I need to
solve it at the console level.

I would check to see what charset lighttpd is serving the file as and
what charset your browser is using (and then just set everything to
utf8) and make sure they are all correct.

--
The biggest problem with communication is the illusion that it has occurred.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: toggle between english and french (how?)

2007-02-06 Thread Peter
Le Mardi 6 Février 2007 18:28, Kevin Downey a écrit :
 On 2/6/07, Peter [EMAIL PROTECTED] wrote:
  Le Mardi 6 Février 2007 17:45, Andrew Pantyukhin a écrit:
   On 2/7/07, Peter [EMAIL PROTECTED] wrote:
I have a 6.2 box on which I intend to set up a web server
(lighttpd) and a file server (samba).  The kicker is that I
will need to allow for French characters (é, à, ç, etc).  I had
such an issue before but only managed to solve it at the X
level (via xorg.conf).  Now I need to solve it at the console
level.
   
The Handbook has a lot of ideas but it seems focused on a per
user basis instead of on a system level basis.  Then again,
maybe I just don't understand what its trying to say.
   
I would also need to toggle back and forth between English and
French.
   
Thanks in advance to any responders,
  
   Are you sure about the console level? If you plan
   to access the server via ssh, you only need to
   set server-side locale right, the rest is handled
   at the client side.
 
  I assume by server-side you mean within samba and lighttpd.  Yes,
  as long as these two can output the characters then I'm happy.  I
  just copied the first paragraph of my posting into lighttpd and
  this is what came back in my browser:
 
  I have a 6.2 box on which I intend to set up a web server
  (lighttpd) and a file server (samba). The kicker is that I will
  need to allow for French characters (Ã(c),ç, etc). I had such an
  issue before but only managed to solve it at the X level (via
  xorg.conf). Now I need to solve it at the console level.

 I would check to see what charset lighttpd is serving the file as and
 what charset your browser is using (and then just set everything to
 utf8) and make sure they are all correct.

iso-8859-1 on both

I tried setting both my test html document and my browser to utf8 but my 
browser (FF) did not have it in its list.  However, the server-side 
change allowed me to see the characters.  Weird.

Thanks a lot Kevin.

PM
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: toggle between english and french (how?)

2007-02-06 Thread Peter
Le Mardi 6 Février 2007 17:51, Pietro Cerutti a écrit :
 On 2/6/07, Peter [EMAIL PROTECTED] wrote:
  I have a 6.2 box on which I intend to set up a web server
  (lighttpd) and a file server (samba).  The kicker is that I will
  need to allow for French characters (é, à, ç, etc).  I had such an
  issue before but only managed to solve it at the X level (via
  xorg.conf).  Now I need to solve it at the console level.

 put a line like this one in your /etc/rc.conf
 keymap=your_keymap

 where your_keymap is one of the filenames in
 /usr/share/syscons/keymaps, without the ending .kbd (e.g. for my
 swiss french console I use
 keymap=swissfrench.iso.acc

  I would also need to toggle back and forth between English and
  French.

 man kbdcontrol
 man kbdmap

Tried it.  No dice.

# kbdcontrol -l fr_CA.iso.acc.kbd

Nope.  My (French) keys beep.  That's all.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]