From owner-freebsd-questions Wed Mar 15 15:32: 1 2000 Delivered-To: freebsd-questions@freebsd.org Received: from news-ma.rhein-neckar.de (news-ma.rhein-neckar.de [193.197.90.3]) by hub.freebsd.org (Postfix) with ESMTP id 4DB8737C0BB for ; Wed, 15 Mar 2000 15:31:57 -0800 (PST) (envelope-from daemon@bigeye.rhein-neckar.de) Received: from bigeye.rhein-neckar.de (uucp@localhost) by news-ma.rhein-neckar.de (8.8.8/8.8.8) with bsmtp id AAA03081 for freebsd-questions@freebsd.org; Thu, 16 Mar 2000 00:31:56 +0100 (CET) (envelope-from daemon@bigeye.rhein-neckar.de) Received: (from daemon@localhost) by bigeye.rhein-neckar.de (8.9.3/8.9.3) id AAA14461 for freebsd-questions@freebsd.org; Thu, 16 Mar 2000 00:17:12 +0100 (CET) (envelope-from daemon) From: naddy@mips.rhein-neckar.de (Christian Weisgerber) Subject: Re: Foreign characters (Mainly Norsk) on a U.S. Keyboard... Date: 16 Mar 2000 00:17:12 +0100 Message-ID: <8ap5lo$e3k$1@bigeye.rhein-neckar.de> References: <20000314233933.A3360@student.csd.uu.se> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit To: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Losher 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