From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: How to handle mixed LtR and RtL scripts in tabulated lists Date: Tue, 15 Sep 2020 19:59:57 +0200 Message-ID: <87wo0uzzs2.fsf@fastmail.fm> References: <87ft7j1cwh.fsf@fastmail.fm> <83h7rz8269.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26313"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.5; emacs 27.1.50 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 15 20:01:54 2020 Return-path: Envelope-to: geh-help-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 1kIFH6-0006kD-EC for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 15 Sep 2020 20:01:52 +0200 Original-Received: from localhost ([::1]:40864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kIFH5-0004pu-EP for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 15 Sep 2020 14:01:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55400) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIFFU-0004ny-QI for help-gnu-emacs@gnu.org; Tue, 15 Sep 2020 14:00:13 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:41419) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kIFFP-0000l6-3D for help-gnu-emacs@gnu.org; Tue, 15 Sep 2020 14:00:12 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 328BC5C01F2 for ; Tue, 15 Sep 2020 14:00:05 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 15 Sep 2020 14:00:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm1; bh=jxAKjoUMv1dUpUXoNl1M2nRa1E ZZmTgJXs6G23TrpqY=; b=I8+cmMiiw4yuN7AU8ZTPUaFVgHzi023SuZEknH1txM q8ThwZs/iTiub0YVO2V//BHdvDwhl1tUnSm07PgCqLw5ADLv6p4eKevoGjSYBmO9 LeytB3U8rJMxzfrFr/rcNI3nnNvWAGZy9hyoXhO9SBljrOyWrUbcC73fIzvzRjce sDCZ6EAXee0BS3kgCXpySNRIAUbK0nqPh9PK3sbgwMScnI9UqSqMUSsJR7FTXTPs OUbwbE38gcCZ6yQnQ55geEPSyHqNyW+DImMMv3SX/EH8jt/iEL2RnUu0dcM4q8N5 vbbAT2vk2nQrUxfpiKLRwjJIJvkQkfdrVbL2TayxiEAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=jxAKjo UMv1dUpUXoNl1M2nRa1EZZmTgJXs6G23TrpqY=; b=NZUaoivUihlXtOiLv/CO+8 eSZz59jSlHMxzF6DVtMIjJfk7mk7LR4tAyO2KuN/GSfyTam0eGgJjPm6LEndzh/v 4+Jt8RJwniwJIMWOw7lPOV3brff0WDegiTenMCcr/6ezQbR7oc+SvHSqB0TyiTzR iGMdacilYWwRiinkbEQUAL9bAepYoD4s+1qrDBPnMnQuYZ0XxW/Mi+eukBIHaspX s3A/vZwOTTkIfQBDN/3EVsTmaGiB7vWItVgaJibYSZogLz92W6cRhIjadnJAxfBl c+/BMAdTaJH/JR4z2moW6Thp99XKjT/I7DYn+PyfppjbwLRYnhyJnP6DgFNFCDWA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrtddtgdeklecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufgjfffkgggtsehttdertd dtredtnecuhfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgv rhhssehfrghsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpefhudffuefhudelhf fgleeukeegudevtedtudduhfefteeugedvvedtuddugffffeenucfkphepleehrdeltddr vddvgedrvdegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from Swift.fastmail.com (ip5f5ae0f5.dynamic.kabel-deutschland.de [95.90.224.245]) by mail.messagingengine.com (Postfix) with ESMTPA id B2962328005D for ; Tue, 15 Sep 2020 14:00:03 -0400 (EDT) In-reply-to: <83h7rz8269.fsf@gnu.org> Received-SPF: pass client-ip=66.111.4.29; envelope-from=joostkremers@fastmail.fm; helo=out5-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/15 14:00:05 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124068 Archived-At: On Tue, Sep 15 2020, Eli Zaretskii wrote: > This is actually covered in the ELisp manual, in the node > "Bidirectional Display". It suggests several different ways of > handling this, I'm quite sure one of them will satisfy your > needs > without being too much of a burden. Thanks, Eli, that's indeed the place I needed to look. I thought `truncate-width-to-string` was part of the problem, so I didn't think to look elsewhere in the manual... I'm now passing the strings that make up the individual cells to `bidi-string-mark-left-to-right`, which solves the problem, at least for the test case that I have. >> Currently, I'm using the built-in function >> `truncate-string-to-width` to create the rows of the tabulated >> list. > > Not sure this part is related. If there are bidi aspects that > interfere with this truncation, please tell the details. I suspect you are right. If I do run into additional issues, I'll post here, but for the moment, it looks alright. Thanks again, -- Joost Kremers Life has its moments