From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 4MLBNgYQc2eEFQEAe85BDQ:P1 (envelope-from ) for ; Mon, 30 Dec 2024 21:26:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4MLBNgYQc2eEFQEAe85BDQ (envelope-from ) for ; Mon, 30 Dec 2024 22:26:31 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm3 header.b=L73zxkP8; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="H gPUemT"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=adamkovic.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735593990; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=NdsajzYuT3IeqNV+6e0lW7CuwbIDSawR3XAG1kZg1oM=; b=EC71wmSOna0NUOBTByg4fAQI/gRTaUVi6TNtRWZMVgV3AkrMZ38FU5VOKRv0BHRs79y0oQ MZX4oktGrvJzqUIrj6Yp11LgwsRbtGuGaeiTf3gfwGLnQ7XhGVn5B/Ad2jWjFxzygi20fP pri9qn31sdxw1zZfTLSO4hnDurzzDkilAy8LIy0PA/y6EsMPcTItI4yEp0ZhY7m8ZgmfxU 1mKv+91pvmCa68H/NPIB13wBDpPoZxAi/VHho1h0DO2jvQFtzE82LEs1E6nYWtnXFlItq7 vZ41pvyv/InvLDFwVb85Im/e7+H50KM7wihUIFfA1lPxj+dDge3CVcwqPpIDPQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=adamkovic.org header.s=fm3 header.b=L73zxkP8; dkim=pass header.d=messagingengine.com header.s=fm2 header.b="H gPUemT"; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=adamkovic.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735593990; a=rsa-sha256; cv=none; b=hQUdazZ1GLAixrkPfi8hQhK+FjqSDsmPl56UFQysN3hPOXBXfKUiUByYYa6cnWGWbhDizf 68++mM/a65CDtgnHQDe/SVVzLtjcrizaEvqOq0YLaQ8VGhC64fSKmxa87DsztPv7v4P5Q5 zmX/y/6KB11w6ACtXCu3EQsxbXE7SSBz+N5hjNukYnH9MJmVBAor6qV/+BPCK+3K6YKf2D hiR5dwsOxgLdRoMRPS0Dk46BmwLRXzWNlYg3+aLYOWFbAyZaXRfJp+mYr2K/j5mRLO6ati sDAyh4vDDwcvQqf5QbRrqD1obLK8ynHWg1otVFZnsX9Z1cHV91VhATLXPbMSQg== 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 CAC08DD1 for ; Mon, 30 Dec 2024 22:26:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSNGf-0003uw-Gj; Mon, 30 Dec 2024 16:25:42 -0500 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 1tSNGV-0003uT-7g for emacs-orgmode@gnu.org; Mon, 30 Dec 2024 16:25:31 -0500 Received: from fhigh-a8-smtp.messagingengine.com ([103.168.172.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tSNGT-0006FK-29 for emacs-orgmode@gnu.org; Mon, 30 Dec 2024 16:25:30 -0500 Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.phl.internal (Postfix) with ESMTP id CD584114020A; Mon, 30 Dec 2024 16:25:27 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Mon, 30 Dec 2024 16:25:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamkovic.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm3; t=1735593927; x=1735680327; bh=NdsajzYuT3IeqNV+6e0lW7CuwbIDSawR 3XAG1kZg1oM=; b=L73zxkP8kNSZHF+L8N8LJ1S5IR5YQfJl8JAPMJRJ28NuVdfS iMuISaOm4oc4V62EnCkA2ldWmTGghDI4ujffWfeIFtWlwzr5ncuGvO6/zTpA7bIW v2M2//s31VsHlEP/fRyIG35n0zmvDPwULsRdFyJO5lnl0hkt5+jzZ4l5YQOzPqfg IpqWs6YGuN+AivXYbcAQX6m3vsiP9uzxqNGFf1ZQb6U8Z5gJl2eEKuTRsk85XuaG BB4Yn805orM1kXmSiO4a4tPVV52I6uAYg+OIT/CoJ5xJbHrmJhOxZJ3CjH1KwBeP IgPIJIBV/iKysQV6MFnFMStillXFi275XSi53w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1735593927; x= 1735680327; bh=NdsajzYuT3IeqNV+6e0lW7CuwbIDSawR3XAG1kZg1oM=; b=H gPUemTf/ePKIuN9hi00zYZASRmcgdQwAPE5OA2Rb214EwPpfhF07FoMOinc2BSUt YM8vNtmbv8J3TrzzivlO+O1w3SXGNY63iZDCQvl3nPwOM2nLa3Cf+KLHFeFFmTTJ KUARFDtprRXWU++zOcBUu21F1OmrFRWtJWF3V3SbDuoDF/3Jv8EnEtHmV0CbizXV 9AuxPnopRAmjIR6Bql5lXBiFIKJZnal7LQHRGQGM12Lhz8J0l4yZoFYhMX2qssPg PYKhEZqpbqKCh22/G5NqGQNgUysquUy5Hrwv+joe5Q2Yrw/MHha2MGhL6EPeypfC YWPjS3Ie+WpY7T5rtAKxQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddviedgudehudcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhffkfggtgfgsehtqhertddttdej necuhfhrohhmpeftuhguohhlfhcutegurghmkhhovhhitgcuoehruhguohhlfhesrggurg hmkhhovhhitgdrohhrgheqnecuggftrfgrthhtvghrnhepieeuteehffdugffhgeegveeh vedvtdekffelhfeuledugfetgfffledthfdujeegnecuffhomhgrihhnpegruggrmhhkoh hvihgtrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomheprhhuugholhhfsegruggrmhhkohhvihgtrdhorhhgpdhnsggprhgtphhtthhope dvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvmhgrtghsqdhorhhgmhhouggv sehgnhhurdhorhhgpdhrtghpthhtohepmhgrnhhikhhulhhinhesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: i88214938:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 30 Dec 2024 16:25:26 -0500 (EST) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: The less ambiguous math delimiters in tables In-Reply-To: References: <87ldw5igab.fsf@localhost> Date: Mon, 30 Dec 2024 22:25:25 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=103.168.172.159; envelope-from=rudolf@adamkovic.org; helo=fhigh-a8-smtp.messagingengine.com 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: CAC08DD1 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -1.39 X-Spam-Score: -1.39 X-TUID: tzLt2IGYosxr Max Nikulin writes: > E.g. pandoc uses another approach: > > printf '%s\n' '| \(|x|\) | \(|x|\) |' | pandoc -f org -t latex > \begin{longtable}[]{@{}ll@{}} > \toprule > \endhead > \(|x|\) & \(|x|\) \\ > \bottomrule > \end{longtable} > > Likely you would be unhappy if some of you document were exported in a=20 > different way due to change of parsing rules. On the other hand, I do=20 > not have a collection of pitfalls for pandoc. That Pandoc output looks correct to me. Is there a gotcha I do not see? If not, then that is exactly what I would expect from the Org parser. > An extensive test suite is necessary to consider alternatives for=20 > parsing rules. Yes, that much is given. Without an extensive test suite, working on a parser would be nothing but a waste of time, and the end result would be, at least for us humans, an infinite stream of bugs. > Current logic may be roughly describes as the following. When Org=20 > recognizes start of some element, it tries to find its end, mostly=20 > neglecting opening markers. A fragment is parsed for nested elements=20 > *after* boundaries of the parent element are determined. Honestly? That sounds like a wrong approach to parsing. (And if that is the case, then that could explain why I keep fighting the Org parser on a daily basis, compared to practically never in every other language I use.) Rudy --=20 "We shall not cease from exploration And the end of all our exploring Will be to arrive where we started And know the place for the first time" --- T. S. Eliot, Little Gidding, Four Quarters, 1943 Rudolf Adamkovi=C4=8D [he/him] http://adamkovic.org