From owner-freebsd-questions Mon Mar 5 22:37:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from solaris.matti.ee (solaris.matti.ee [194.126.98.135]) by hub.freebsd.org (Postfix) with ESMTP id 4D28137B719 for ; Mon, 5 Mar 2001 22:37:57 -0800 (PST) (envelope-from vallo@myhakas.matti.ee) Received: from myhakas.matti.ee (myhakas.matti.ee [194.126.114.87]) by solaris.matti.ee (Postfix) with ESMTP id 6AD492CE48; Tue, 6 Mar 2001 08:37:52 +0200 (EET) Received: (from vallo@localhost) by myhakas.matti.ee (8.11.3/8.11.3) id f266bOF38935; Tue, 6 Mar 2001 08:37:24 +0200 (EET) (envelope-from vallo) Date: Tue, 6 Mar 2001 08:37:24 +0200 From: Vallo Kallaste To: Christopher Farley Cc: freebsd-questions@FreeBSD.ORG Subject: Re: UTF-8/Unicode on FreeBSD? Message-ID: <20010306083724.A38667@myhakas.matti.ee> Reply-To: vallo@matti.ee References: <20010223020843.A6684@northernbrewer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.14i-ja0 In-Reply-To: <20010223020843.A6684@northernbrewer.com>; from chris@northernbrewer.com on Fri, Feb 23, 2001 at 02:08:44AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Feb 23, 2001 at 02:08:44AM -0600, Christopher Farley wrote: > How do I set up xterm, nvi/vim to display UTF-8 fonts? > > Does Emacs (gui-mode) work differently? > > How do I enter extended UTF characters into an xterm/editor with > the keyboard? > > Are there any plans to convert, say, the FreeBSD filesystem to > Unicode/UTF-8? UTF-8 capable xterm is included in the XFree 4.0.x series, alternatively you can get the sourcecode from T.Dickey webpage http://www.clark.net/~dickey/ Use the -u8 switch or *VT100*utf8: 1 resource for setting UTF-8 mode. Vim comes with extensive documentation about UTF-8 and multibyte, read them. Basically you need to set up some variables in your .vimrc and define fonts in .Xdefaults. You'll need to read vim documentation for how to do that. Don't know about nvi, AFAIK it doesn't support UTF-8. You can enter specific characters by modifying your .Xmodmap appropriately, look at xmodmap(1) manpage. Beware of doing experiments with xmodmap, you can hose your keyboard mapping very easily. Gvim (vim with GUI) gives you ability to enter specific characters via special sequence, look at documentation how to use digraphs. Some very preliminary work is underway, but it's practically nothing yet. I'll personally hope for iconv() integration. -- Vallo Kallaste vallo@matti.ee To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message