From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4NRyGYJujmCJmAAAgWs5BA (envelope-from ) for ; Sun, 02 May 2021 11:18:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SI0kFYJujmD5JAAAB5/wlQ (envelope-from ) for ; Sun, 02 May 2021 09:18:58 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C18B7218F1 for ; Sun, 2 May 2021 11:18:57 +0200 (CEST) Received: from localhost ([::1]:51242 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ld8Fa-0003Tw-Pd for larch@yhetil.org; Sun, 02 May 2021 05:18:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39262) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ld8Dm-0003BU-Ny; Sun, 02 May 2021 05:17:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ld8Dm-0002rk-F4; Sun, 02 May 2021 05:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ld8Dm-0004Cr-AB; Sun, 02 May 2021 05:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48149: 27.2; Wrong underline width when the line char has a width of 2 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: emacs-orgmode@gnu.org, bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 May 2021 09:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48149 X-GNU-PR-Package: org-mode,emacs X-GNU-PR-Keywords: To: Rudolf Schlatte Received: via spool by 48149-submit@debbugs.gnu.org id=B48149.161994702116114 (code B ref 48149); Sun, 02 May 2021 09:17:02 +0000 Received: (at 48149) by debbugs.gnu.org; 2 May 2021 09:17:01 +0000 Received: from localhost ([127.0.0.1]:41741 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ld8Dl-0004Be-5d for submit@debbugs.gnu.org; Sun, 02 May 2021 05:17:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59162) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ld8Dj-00046u-SO for 48149@debbugs.gnu.org; Sun, 02 May 2021 05:17:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58378) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ld8Dd-0002mB-3i; Sun, 02 May 2021 05:16:54 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2010 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ld8Dc-0002Ba-HZ; Sun, 02 May 2021 05:16:52 -0400 Date: Sun, 02 May 2021 12:16:32 +0300 Message-Id: <831rap8phr.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Rudolf Schlatte on Sun, 02 May 2021 10:36:14 +0200) References: <87fsz62b1w.wl-shingo.fg8@gmail.com> <837dkh8uzi.fsf__22492.4155323365$1619940077$gmane$org@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: emacs-orgmode@gnu.org List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 48149@debbugs.gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1619947138; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=7el4dVcaZAgp4ENrukqr98vwxY0EokmBD0o4yyqPmPc=; b=Vn3UiUIp7a2e5HSUaf6En2Zx5JHfc0JvQyLLwedaYHTX1oLvPJ0u6fXtDhg6Jd7dEdURfU lZX9c9mVgOtjZnljDnp59dJnIui1Z8vhjzLNAdATrBhsIhmJ2iijSLbvsgrYOwLS0fhDHO hcN4RlRD/MtfhAD3enAaHj9UK64815iBcJCGgYiBQdpx7MpNMzTD7F66QpC36dmn4ZU8w1 dVC/fnE9pyqxrPErlv2t1sBYOclXVrc7bU7iCkJ+6EsGwA84uLfAyWMvU8N3ZTsfjZ2/O6 8Ju9AIqEFKlJPJznN8tQUIqWpxQo8m4BVYkVV4eJxSohf6oAgCwp9mMsLv8OyA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619947138; a=rsa-sha256; cv=none; b=m8eTOFltjuxxmULoqum8ri0EE4gpz7oxXh7TFs6o85JMA4h6qNpns841+hLzfmFiy6Vxyh rT5C8JDRNueZENq/anHwig9sOJXc/QnumKDRlmIaVgKfGnxZqCldk78s1vYjeiqLariI0E mR1vWapZ64bdnmnacvqcaKGcCnbX2BYflgu27Rau5tiwlP9TbzRS+K7DIabmIrPV8e2R3N UDy5X+zHAiavG5Wo7WWwpIVaXQN80JwsWtHj7zcQHXtkxWTTBQuQAWU3CSQVeZTGVV5W4S GErUO0FMzAE8Q1JsBfwRvn/CvzjvUahFkJBJwQjvsUhZx5OIgtfycfNnM3Glsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.96 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: C18B7218F1 X-Spam-Score: -2.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: 4YyJ4W51LnXb > From: Rudolf Schlatte > Date: Sun, 02 May 2021 10:36:14 +0200 > > > You reported a similar bug already, and I replied there that TRT in > > these cases is to use window-text-pixel-size, which will automatically > > account for the actual width on display of any characters and any > > fonts specified for displaying them. char-width is an approximation, > > and is accurate only on TTY frames. > > Isn't the primary result of org-export a plain (UTF-8) text file, > instead of an emacs buffer to be displayed in a GUI or TTY frame? > > If so, maybe the criterion for correctness should be that "cat > filename.txt" looks as expected in a terminal, even if opening that file > in Emacs shows lines of different lengths due to variable-pitch faces > etc. If the result is supposed to be displayed only on text-mode terminals, then indeed string-width is the way to go (assuming that the terminal in question will use fonts that will not break the alignment). However, if the result is supposed to be displayed by a GUI program such as Emacs, then string-width will not produce accurate results. Maybe this is not important in this kind of export, in which case I apologize for the noise.