Skip site navigation (1)Skip section navigation (2)
Date:      16 Mar 2000 00:17:12 +0100
From:      naddy@mips.rhein-neckar.de (Christian Weisgerber)
To:        freebsd-questions@freebsd.org
Subject:   Re: Foreign characters (Mainly Norsk) on a U.S. Keyboard...
Message-ID:  <8ap5lo$e3k$1@bigeye.rhein-neckar.de>
References:  <20000314233933.A3360@student.csd.uu.se> <Pine.BSF.4.21.0003141508520.75538-100000@svalbard.nominum.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Peter Losher <Peter.Losher@nominum.com> wrote:

> And how would I find the correct codes for the characters? (I don't have a
> Norsk keyboard to refer to, and you can't really tell looking at the
> norwegian.iso.kbd)

If you're on the console, make sure that an ISO 8859-1 font is loaded.

/etc/rc.conf:
font8x16="iso-8x16"

Also see vidcontrol(1) for how to load fonts manually.
Your default xterm font probably is already a ISO 8859-1 one.

Now you can simply print out a table, say, like

$ perl -e 'for$i(0xA0..0xFF){printf"%3d=%c%c",$i,$i,($i%8==7)?10:32}'
160=  161=¡ 162=¢ 163=£ 164=¤ 165=¥ 166=¦ 167=§
168=¨ 169=© 170=ª 171=« 172=¬ 173=­ 174=® 175=¯
176=° 177=± 178=² 179=³ 180=´ 181=µ 182=¶ 183=·
184=¸ 185=¹ 186=º 187=» 188=¼ 189=½ 190=¾ 191=¿
192=À 193=Á 194=Â 195=Ã 196=Ä 197=Å 198=Æ 199=Ç
200=È 201=É 202=Ê 203=Ë 204=Ì 205=Í 206=Î 207=Ï
208=Ð 209=Ñ 210=Ò 211=Ó 212=Ô 213=Õ 214=Ö 215=×
216=Ø 217=Ù 218=Ú 219=Û 220=Ü 221=Ý 222=Þ 223=ß
224=à 225=á 226=â 227=ã 228=ä 229=å 230=æ 231=ç
232=è 233=é 234=ê 235=ë 236=ì 237=í 238=î 239=ï
240=ð 241=ñ 242=ò 243=ó 244=ô 245=õ 246=ö 247=÷
248=ø 249=ù 250=ú 251=û 252=ü 253=ý 254=þ 255=ÿ

(ISO 8859-x fonts don't have any printable characters in positions
0x80..0x9F).

> > In X-windows you might also wish to take a look at 'xmodmap' which can
> > be used to modify your keyboard mappings in X.
> 
> So I would have to change it in both places, or would just changing the
> .kbd file do it?

The syscons and X11 keyboard tables are entirely independant, both
in capabilities and actual layout.

-- 
Christian "naddy" Weisgerber                  naddy@mips.rhein-neckar.de



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8ap5lo$e3k$1>