Re: Setting up a danish locale

2005-03-14 Thread Steve Kargl
On Sat, Mar 12, 2005 at 05:07:24PM +0100, Erik Norgaard wrote:
 For X I have the following in my XF86Config:
 
 Section InputDevice
 Identifier  Keyboard0
 Driver  keyboard
 Option  XkbRules xfree86
 Option  XkbModel pc102
 Option  XkbLayout dk
 

Erik, Thanks for the pointer.  The above partially solved
out problem.  My colleague would like to use the US keyboard
layout and switch to a Danish layout when he's interacting with
someone back home.  Do you know if this is possible with xmodmap?
I'm hoping that I can set up some shell aliases that do

setenv do_danish  xmodmap danish.keys
setenv do_english xmodmap english.keys

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


Re: Setting up a danish locale

2005-03-14 Thread Erik Norgaard
Steve Kargl wrote:
Erik, Thanks for the pointer.  The above partially solved
out problem.  My colleague would like to use the US keyboard
layout and switch to a Danish layout when he's interacting with
someone back home.  Do you know if this is possible with xmodmap?
I'm hoping that I can set up some shell aliases that do
setenv do_danish  xmodmap danish.keys
setenv do_english xmodmap english.keys
No, I personally don't like switching keyboard layouts - I want it to be 
the keys shown on the actual keyboard I use. It it is a matter of having 
the danish characters available and less important where they are, then 
it is posible to define meta-keys - If you or your visiting professor 
understands german there is an article here:

http://user.cs.tu-berlin.de/~eserte/FreeBSD/doc/umlaute/umlaute.html
It seems to cover how to use xmodmap:
   xmodmap ${HOME}/.xmodmaprc
- section 2.2.2
I generally stick with the danish keyboard - with exception of 
c-circonflex I don't know of any latin character I can't reproduce, so I 
haven't tried.

Erik
--
Ph: +34.666334818   web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up a danish locale

2005-03-12 Thread Erik Norgaard
Steve Kargl wrote:
Problem:  We have a visiting scientist from Denmark, whose laptop
  died a horrible death.  A colleagued asked if I would loan him
  a currently unused system in my office.  I've set up FreeBSD 5.3
  on the system and everything appears to work except for setting
  up a Danish locale.
From my rc.conf: The keymap sets the keyboard - doesn't make sense to 
set it per account I think? The font stuff is for the console.

##
###  System console options  #
##
keymap=danish.iso # keymap in /usr/share/syscons/keymaps/* (or NO).
font8x16=iso-8x16 # font 8x16 from /usr/share/syscons/fonts/* (or NO).
font8x14=iso-8x14 # font 8x14 from /usr/share/syscons/fonts/* (or NO).
font8x8=iso-8x8   # font 8x8 from /usr/share/syscons/fonts/* (or NO).

Disclaimer:  I searched the Handbook, used google, and spent a
  few hours reading up of login.conf, locale support, etc.  But,
  we are stuck without the danish locale.
Yes, it's not trivial, what have bothered me is that some programs seems 
to have their own overriding settings.

I have setup a ~/,login_conf in the user home directory that 
contains

dhcp-78-77:kargl[201] cat .login_conf
me:\
:charset=ISO8859-1:\
:lang=da_DK.ISO8859-1:
Should you get a future visiting scientist from Denmark, maybe you 
should create a class in /etc/login.conf, I have:

da_DK:Danish users:\
:charset=iso-8859-1:\
:lang=da_DK.ISO8859-1:\
:tc=default:
In master.passwd you then set the class for the user to da_DK.
Finally, in /etc/ttys you need to select a console that supports latin1 
characters instead of plain ascii, cons25l1 is recomended:

ttyv0   /usr/libexec/getty Pc cons25l1on  secure
All this stuff is to make the console behave. X has it's own life, I 
have had things working in X but not on the console - and I guess the 
oposite is possible too.

For X I have the following in my XF86Config:
Section InputDevice
Identifier  Keyboard0
Driver  keyboard
Option  XkbRules xfree86
Option  XkbModel pc102
Option  XkbLayout dk
I haven't installed anything particular for international support, I 
think that is only required for non latin based character sets.

If you still have problems, you may try and ask in the danish BUG (is it 
 called a BUG??) bsd-dk.dk - don't worry, you can write in english.

Cheers, Erik
--
Ph: +34.666334818   web: http://www.locolomo.org
S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt
Subject ID:  A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9
Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Setting up a danish locale

2005-03-11 Thread Steve Kargl
Problem:  We have a visiting scientist from Denmark, whose laptop
  died a horrible death.  A colleagued asked if I would loan him
  a currently unused system in my office.  I've set up FreeBSD 5.3
  on the system and everything appears to work except for setting
  up a Danish locale.

Disclaimer:  I searched the Handbook, used google, and spent a
  few hours reading up of login.conf, locale support, etc.  But,
  we are stuck without the danish locale.

I have setup a ~/,login_conf in the user home directory that 
contains

dhcp-78-77:kargl[201] cat .login_conf
me:\
:charset=ISO8859-1:\
:lang=da_DK.ISO8859-1:

When we login, we see that the locale is set

dhcp-78-77:kargl[202] locale
LANG=da_DK.ISO8859-1
LC_CTYPE=da_DK.ISO8859-1
LC_COLLATE=da_DK.ISO8859-1
LC_TIME=da_DK.ISO8859-1
LC_NUMERIC=da_DK.ISO8859-1
LC_MONETARY=da_DK.ISO8859-1
LC_MESSAGES=da_DK.ISO8859-1
LC_ALL=

But any attempt to enter a danish character in for examples xemacs
fails.  From my colleagues comment a Right-Alt / o should yield
a lower case o with a slash through it.  His system is running
Xorg 6.7.0_9.  I suspect that I need to change/update his xorg.conf
file.  Any insight into setting up the Danish environment would be
appreciate.

-- 
Steve


- End forwarded message -

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


Re: Setting up a danish locale

2005-03-11 Thread Paul Schmehl
--On Friday, March 11, 2005 09:21:22 AM -0800 Steve Kargl 
[EMAIL PROTECTED] wrote:
But any attempt to enter a danish character in for examples xemacs
fails.  From my colleagues comment a Right-Alt / o should yield
a lower case o with a slash through it.  His system is running
Xorg 6.7.0_9.  I suspect that I need to change/update his xorg.conf
file.  Any insight into setting up the Danish environment would be
appreciate.
Just guessing, but did you install /usr/ports/x11-fonts/intlfonts?  You may 
need that for the Danish characters to work right.

Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Setting up a danish locale

2005-03-11 Thread Steve Kargl
On Fri, Mar 11, 2005 at 11:30:08AM -0600, Paul Schmehl wrote:
 --On Friday, March 11, 2005 09:21:22 AM -0800 Steve Kargl 
 [EMAIL PROTECTED] wrote:
 
 But any attempt to enter a danish character in for examples xemacs
 fails.  From my colleagues comment a Right-Alt / o should yield
 a lower case o with a slash through it.  His system is running
 Xorg 6.7.0_9.  I suspect that I need to change/update his xorg.conf
 file.  Any insight into setting up the Danish environment would be
 appreciate.
 
 Just guessing, but did you install /usr/ports/x11-fonts/intlfonts?  You may 
 need that for the Danish characters to work right.
 

intlfonts is not installed.  I'll add those and update xorg.conf.
I suspect that I need to update the Keyboard section of xorg.conf
to ensure the meta-keys are mapped correctly.

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