delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/18/17:04:26

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <200906181209.n5IC9qW6023601@mail.bln1.bf.nsn-intra.net>
References: <20090512173153 DOT GY21324 AT calimero DOT vinschen DOT de> <200906051625 DOT n55GP6t3028411 AT mail DOT bln1 DOT bf DOT nsn-intra DOT net> <3f0ad08d0906060242t275a78e7tb9913bf78d1c5e83 AT mail DOT gmail DOT com> <200906121538 DOT n5CFcSld014997 AT mail DOT bln1 DOT bf DOT nsn-intra DOT net> <3f0ad08d0906140604y49c470eeu68c6c307ec1cd073 AT mail DOT gmail DOT com> <3f0ad08d0906140618w53c82556ye709c70efc1c65e0 AT mail DOT gmail DOT com> <20090615084443 DOT GO5039 AT calimero DOT vinschen DOT de> <3f0ad08d0906150735g27576d41t7207970465e5d884 AT mail DOT gmail DOT com> <20090615151420 DOT GT5039 AT calimero DOT vinschen DOT de> <200906181209 DOT n5IC9qW6023601 AT mail DOT bln1 DOT bf DOT nsn-intra DOT net>
Date: Thu, 18 Jun 2009 22:04:03 +0100
Message-ID: <416096c60906181404q5a21e062uffdb9dc3dd2ae93e@mail.gmail.com>
Subject: Re: [PATCH] Add "@cjknarrow" modifier (was Re: [Fwd: [1.7] wcwidth failing configure tests])
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

2009/6/18 Thomas.Wolff:
> And as a matter of fact,
> you can run both xterm and MinTTY with a non-CJK locale and ambiguous
> characters being wide. This is achieved by invoking xterm -cjk_width or
> by selecting an according font in MinTTY, e.g. Ming, SimSun, MS Mincho,
> or even just the popular Lucida Typewriter.
> (Although it occurs to me that in the case of Lucida Typewriter this
> might be a bug since the wideness of ambiguous characters is just
> simulated in this configuration rather than using wide font characters -
> Andy, can you please check this?)

Yep, there's a problem here, thanks. I haven't got Lucida Typewriter,
but found my Vista install has Lucida Sans Typewriter. That font
doesn't actually have Greek or box drawing characters, so all I'm
getting is the square replacement character, but it does indeed take
up two cells for those. Turns out that's because Latin characters are
reported as having a width of 0.5 (of whatever unit) whereas the
replacement character is reported as being 0.625 wide. I'll adjust the
ambiguous-width detection.

Andy

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019