From owner-freebsd-questions@FreeBSD.ORG Sun Oct 7 10:43:20 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 61B30106564A for ; Sun, 7 Oct 2012 10:43:20 +0000 (UTC) (envelope-from dickey@saltmine.radix.net) Received: from saltmine.radix.net (saltmine.radix.net [207.192.128.40]) by mx1.freebsd.org (Postfix) with ESMTP id 2D8118FC1C for ; Sun, 7 Oct 2012 10:43:19 +0000 (UTC) Received: from saltmine.radix.net (localhost [127.0.0.1]) by saltmine.radix.net (8.12.2/8.12.2) with ESMTP id q97AhJnA001226 for ; Sun, 7 Oct 2012 06:43:19 -0400 (EDT) Received: (from dickey@localhost) by saltmine.radix.net (8.12.2/8.12.2/Submit) id q97AhImS001212 for freebsd-questions@freebsd.org; Sun, 7 Oct 2012 06:43:18 -0400 (EDT) Date: Sun, 7 Oct 2012 06:43:18 -0400 From: Thomas Dickey To: freebsd-questions@freebsd.org Message-ID: <20121007104318.GA329@saltmine.radix.net> References: <99771.1349515504@tristatelogic.com> <20121006094552.GA39590@kontrol.kode5.net> <20121006113107.GA29404@saltmine.radix.net> <20121006113200.GB29404@saltmine.radix.net> <20121007080913.GB7105@kontrol.kode5.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline In-Reply-To: <20121007080913.GB7105@kontrol.kode5.net> User-Agent: Mutt/1.3.27i Subject: Re: Xterm options for correct man page display? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Oct 2012 10:43:20 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Oct 07, 2012 at 09:09:13AM +0100, Jamie Paul Griffin wrote: > [ Thomas Dickey wrote on Sat 6.Oct'12 at 7:32:00 -0400 ] >=20 > > On Sat, Oct 06, 2012 at 07:31:07AM -0400, Thomas Dickey wrote: > > > On Sat, Oct 06, 2012 at 10:45:52AM +0100, Jamie Paul Griffin wrote: > > > > [ Ronald F. Guilmette wrote on Sat 6.Oct'12 at 2:25:04 -0700 ] > > > >=20 > > > > >=20 > > > > > When I view man pages in a xterm window, some parts of them are c= oming > > > > > out a bit garbled. > > > > >=20 > > > > > I'm sure that there must be some recommended option or options for > > > > > xterm that will cause man pages to display properly. If someone = would > > > > > tell me what those options are, I would appreciate it. Thanks. > > > >=20 > > > > It will most likely be due to your locale settings. Also, I experim= ented with fonts in xterm and uxterm, only the default font allowed unicode= charaters to display, so I am now using urxvt and it works great. I also c= hanged my pager option in the shell start up file to less as opposed to mor= e, and set lesscharset environment variable, man pages display fine now for= me. > > >=20 > > > For people using UTF-8, the uxterm script works out of the box... > > >=20 > > > The usual problem with fonts is from overwriting the utf8Fonts resour= ce > > > setting via a too-wide "fonts" wildcard pattern. > >=20 > > For example > >=20 > > http://invisible-island.net/xterm/xterm.faq.html#utf8_fonts >=20 > Hi Thomas - is understand what your saying about uxterm - it does display > utf8 fonts correctly when leaving the font resource alone, but the default > font is very small, too small for my eyes.=20 >=20 > I installed a large number of utf8 supported X fonts, the ones I've tried > don't display Chinese or Korean, or Russian fonts etc. It became a little > frustrating which made me change to another terminal. The link you provi= ded > doesn't appear to be active. Would you be kind enough to show the resour= ce > settings you have used? Well - the default size is a compromise (there are people who apparently use the smallest size regularly - looking at urxvt out-of-the-box, it's true there)(*). I generally use the font-size switching feature which I adapted from rxvt (one of the features which was omitted in urxvt), and switch to one of the two largest sizes using shift-keypad-plus. There are differences in the default fonts' coverage for CJK fonts, but between those two sizes I can see almost all characters. =20 > I spent a long time reading through the man page and trying out different > resource settings and combinations of them, European fonts were never a > problem, just the east Asian characters and Russian characters as I > mentioned. I haven't noticed a problem (with uxterm) for Russian characters - more info might help. =20 > I've set my locale to en_GB.UTF-8 using /etc/login.conf and then cap_mkdb > /etc/login.conf. As I said in my previous email, urxvt has no problem > displaying these characters but I'd like to get uxterm working properly n= one > the less, as I'm sure the OP does as well. (*) the default size when switching to TrueType fonts is roughly what I use normally for the bitmap fonts (much larger than the default), and I should have made it consistent. It's configurable, and I later added a note in the manpage explaining how to do this... The default font for xterm has "always" been the "fixed" font, which as noted above I find too small for normal use. --=20 Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (SunOS) Comment: For info see http://www.gnupg.org iD8DBQFQcVzEtIqByHxlDocRAp6qAJ9/GnSEH28OJueA2PI91S3ClCLJQACfRc3F I3jGn6ZoX1eHuonF7kdQp1Q= =H9Fp -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--