From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#19872: 24.4; UTF8 characters of unusual width (Gnus markers) Date: Wed, 18 Feb 2015 05:43:51 +0200 Message-ID: <83k2zf6g08.fsf@gnu.org> References: <86bnkvilxl.fsf@example.com> <86r3tqchqt.fsf@example.com> <83zj8dua5s.fsf@gnu.org> <87oaotyxwn.fsf@building.gnus.org> <83fva47dak.fsf@gnu.org> <878ufwcamp.fsf@building.gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1424231070 12669 80.91.229.3 (18 Feb 2015 03:44:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2015 03:44:30 +0000 (UTC) Cc: sva-news@mygooglest.com, 19872@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 18 04:44:19 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YNvYc-0007Yr-AK for geb-bug-gnu-emacs@m.gmane.org; Wed, 18 Feb 2015 04:44:14 +0100 Original-Received: from localhost ([::1]:48230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNvYb-00006l-OR for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Feb 2015 22:44:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNvYV-0008U4-8G for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 22:44:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNvYR-0000oN-EJ for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 22:44:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNvYR-0000oA-Bp for bug-gnu-emacs@gnu.org; Tue, 17 Feb 2015 22:44:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YNvYQ-0003jx-Jy; Tue, 17 Feb 2015 22:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 18 Feb 2015 03:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19872 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 19872-submit@debbugs.gnu.org id=B19872.142423103714329 (code B ref 19872); Wed, 18 Feb 2015 03:44:02 +0000 Original-Received: (at 19872) by debbugs.gnu.org; 18 Feb 2015 03:43:57 +0000 Original-Received: from localhost ([127.0.0.1]:46829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNvYH-0003iz-5E for submit@debbugs.gnu.org; Tue, 17 Feb 2015 22:43:56 -0500 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:59813) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YNvYB-0003ii-JR for 19872@debbugs.gnu.org; Tue, 17 Feb 2015 22:43:51 -0500 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NJY00300723A400@mtaout29.012.net.il> for 19872@debbugs.gnu.org; Wed, 18 Feb 2015 05:39:39 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJY00K807I36080@mtaout29.012.net.il>; Wed, 18 Feb 2015 05:39:39 +0200 (IST) In-reply-to: <878ufwcamp.fsf@building.gnus.org> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99529 Archived-At: > From: Lars Ingebrigtsen > Cc: sva-news@mygooglest.com, 19872@debbugs.gnu.org > Date: Wed, 18 Feb 2015 11:43:26 +1100 > > Eli Zaretskii writes: > > > I don't see why would you need to do all that. First, you already do > > these calculations, to know how many blanks to insert, right? So you > > already know whether a string is too long, at least in terms of > > characters, right? And :align-to can work in character units as well > > as in pixels. > > Well, the problem here is that some fonts are wider than others. If > Gnus says "this should be 20 characters wide", then if some of the > glyphs are wider than the normal 20 characters, then things won't line > up any more. AFAIR, :align-to works in units of canonical character width, so this problem does not exist. > > And second, AFAIU you are talking about an additional feature. The OP > > presented a use case where no string is too long, AFAICT. So it would > > get you bonus points to handle long strings as well, but that's not > > what this bug report is about: the same problem exists with the > > current "alignment" using whitespace, right? > > Gnus truncates the strings if they're too long and inserts spaces if > they're too short. Then I think you already have everything in place, just replace insertion of blanks with a :align-to display property.