From owner-freebsd-questions@FreeBSD.ORG Mon Jun 16 11:51:18 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C6557D29 for ; Mon, 16 Jun 2014 11:51:18 +0000 (UTC) Received: from mailrelay008.isp.belgacom.be (mailrelay008.isp.belgacom.be [195.238.6.174]) by mx1.freebsd.org (Postfix) with ESMTP id 5EDAD27BD for ; Mon, 16 Jun 2014 11:51:18 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AnYGAHbZnlNbsVLb/2dsb2JhbABagw3BM4MSAYEQF3WEAwEBBVYTAQ8QCxgJDQEXDyoeBohZAc8bF45DMwcSAYQwAQOYBoI8k1mDQjuBMwcX Received: from 219.82-177-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.177.82.219]) by relay.skynet.be with ESMTP; 16 Jun 2014 13:51:10 +0200 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.9/8.14.9) with ESMTP id s5GBp9cM042062; Mon, 16 Jun 2014 13:51:09 +0200 (CEST) (envelope-from tijl@FreeBSD.org) Date: Mon, 16 Jun 2014 13:51:08 +0200 From: Tijl Coosemans To: ddddd dddd Subject: Re: Language in FreeBSD Message-ID: <20140616135108.40d4ac41@kalimero.tijl.coosemans.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jun 2014 11:51:18 -0000 On Mon, 16 Jun 2014 02:09:26 +0200 ddddd dddd wrote: > Hello. I am trying to change FreeBSD to Norwegian. Setting :lang in > ~/.login_conf didn't work. Also, I don't know how much of FreeBSD is > actually translated, if any. So if I can't get that to work, getting > Norwegian letters working will be enough. When I installed, I selected > Norwegian ISO keyboard map, Norwegian with code page 850 weren't > available. However the extra Norwegian letters aren't working in csh, > sh or vi, they show up as "\330" or something similar, at least in csh > (I could give all details of how each program handle the keys if that > will help). >=20 > I'm able to use the letters almost correctly in ee and the login-screen. > The "=E5" and "=E6" looks ok, but there's still problems there too when > using ttyv:=20 > -The "=F8" looks like an "o", this might be a bug with the fonts in FreeB= SD, > because it still looks like an "o" in all the fonts I have tried, even > when changing the ttyv from text mode to graphics mode with vidcontrol. I > know it's not an actual "o", because I can't log in as root by typing > r=F8=F8t, even if it looks identical on the screen. >=20 > -I can't use combining accents, when I write "=B4" , it is shown immediat= ely > and I can't combine it with letters. >=20 > Neither of these two problems are there when running ee in xterm, but > xterm still has the identical problem with csh, sh and vi not accepting > the extra letters. Also, the Euro sign is not working in ttyv or xterm. I > have none problem at all in Firefox, both the letters and Euro sign is > working. >=20 > Does anyone know what to do? For the euro sign you need iso-8859-15 so add something like this to ~/.login_conf: me:\ :charset=3DISO-8859-15:\ :lang=3Dno_NO.ISO8859-15: Then you must also use the iso15 console font. In /etc/rc.conf: font8x16=3D"iso15-8x16" font8x14=3D"iso15-8x14" font8x8=3D"iso15-8x8" For the keyboard it seems there's only norwegian.iso. Other languages also have a .iso.acc version which allows combining accents. The format of keymap files is very simple though. They are simple text files located in /usr/share/syscons/keymaps (described in keymap(5)). You could copy norwegian.iso.kbd to norwegian.iso.acc.kbd and then look at "diff -u us.iso.kbd us.iso.acc.kbd" to see what changes can be made. Then set keymap in rc.conf: keymap=3D"norwegian.iso.acc" Once you are satisfied please submit the keymap in a bug report.