From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64420: string-width of =?UTF-8?Q?=E2=80=A6?= is 2 in CJK environments Date: Fri, 11 Aug 2023 21:36:53 +0300 Message-ID: <83v8dlfmt6.fsf@gnu.org> References: <83jzuz93rh.fsf@gnu.org> <837cq9sfcc.fsf@gnu.org> <83wmy2gm5h.fsf@gnu.org> <4B239A5E-0878-4304-8C28-FEEC1EBC1B4E@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17133"; mail-complaints-to="usenet@ciao.gmane.io" Cc: itaemu@gmail.com, dmitry@gutov.dev, 64420@debbugs.gnu.org To: Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 11 20:37:29 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qUX0p-0004HX-Fn for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Aug 2023 20:37:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qUX0R-0000GO-Np; Fri, 11 Aug 2023 14:37:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUX0Q-0000GD-61 for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2023 14:37:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qUX0P-0006GZ-UF for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2023 14:37:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qUX0P-0007QF-Jl for bug-gnu-emacs@gnu.org; Fri, 11 Aug 2023 14:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Aug 2023 18:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64420 X-GNU-PR-Package: emacs Original-Received: via spool by 64420-submit@debbugs.gnu.org id=B64420.169177899128495 (code B ref 64420); Fri, 11 Aug 2023 18:37:01 +0000 Original-Received: (at 64420) by debbugs.gnu.org; 11 Aug 2023 18:36:31 +0000 Original-Received: from localhost ([127.0.0.1]:47955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUWzv-0007PW-7B for submit@debbugs.gnu.org; Fri, 11 Aug 2023 14:36:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUWzt-0007PJ-8H for 64420@debbugs.gnu.org; Fri, 11 Aug 2023 14:36:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qUWzn-0006Ds-PJ; Fri, 11 Aug 2023 14:36:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=8T+F/iSRuzThWY5S2wusfvB1eC4bHRBqfHRv1ax7qNI=; b=meQl+pSkToFmu9ZKoGCW FQXiMmTDgsycUmxJiJe07fcThGmu2p22gMYqgC3bUpHdhQC8hfpXjCe7lGK+MX06FMPCHjICLiu8/ 4SqyegN4XIXh7GPQotzbcZSrYM39R8ozjwRruTrhVOiuuYzL8BC2Z3nnigi0v2DMvhQyZ0nT1+Wo5 McZYDQFHfm2h344X2jek+btiHXwynbUfGRZqRXbeTeDjPSXH553qqWDPN/GiTJoGiX6MsvYefYUOS fE8Bdm9lHU8c8XpaJxiFmuXjAYa2vah9+luPCxfxbbIfZA8LwRTttob4LIbiAMga8yu6pxoubA8ej YAGleMV+fnM3YQ==; In-Reply-To: <4B239A5E-0878-4304-8C28-FEEC1EBC1B4E@gmail.com> (message from Yuan Fu on Fri, 11 Aug 2023 11:07:26 -0700) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:267228 Archived-At: > From: Yuan Fu > Date: Fri, 11 Aug 2023 11:07:26 -0700 > Cc: dmitry@gutov.dev, > itaemu@gmail.com, > 64420@debbugs.gnu.org > > On terminal, I saw an interesting option, “Ambiguous characters are double-width” (terminal-setting.png), which is the same as cjk-ambiguous-chars-are-wide. If I turn it on all the ambiguous characters are indeed displayed in double-width. (terminal-narrow.png, terminal-wide.png) And in that case, you need to set cjk-ambiguous-chars-are-wide non-nil to have Emacs display those characters correctly? Or does that option have no effect on the correctness of the |Emacs display on that terminal? > On GUI display, the later-half of the ambiguous characters are definitely wider than one char, but they aren’t quite 2 chars wide either. But I guess it doesn’t matter too much since one should use pixel size on GUI anyway. Is the actual width closer to 1 or to 2? Thanks.