emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Rudolf Adamkovič" <rudolf@adamkovic.org>
To: Max Nikulin <manikulin@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: The less ambiguous math delimiters in tables
Date: Mon, 30 Dec 2024 22:25:25 +0100	[thread overview]
Message-ID: <m234i4yibe.fsf@adamkovic.org> (raw)
In-Reply-To: <vkp9k2$ev2$1@ciao.gmane.io>

Max Nikulin <manikulin@gmail.com> 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 
> different way due to change of parsing rules. On the other hand, I do 
> 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 
> 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 
> recognizes start of some element, it tries to find its end, mostly 
> neglecting opening markers. A fragment is parsed for nested elements 
> *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
-- 
"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č <rudolf@adamkovic.org> [he/him]
http://adamkovic.org


  reply	other threads:[~2024-12-30 21:26 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-24  9:20 The less ambiguous math delimiters in tables Rudolf Adamkovič
2024-12-24  9:25 ` Ihor Radchenko
2024-12-25 17:56   ` Rudolf Adamkovič
2024-12-25 18:05     ` Ihor Radchenko
2024-12-25 20:14       ` Rudolf Adamkovič
2024-12-26  9:17         ` Ihor Radchenko
2024-12-26 13:31           ` Rudolf Adamkovič
2024-12-26 13:51             ` Ihor Radchenko
2024-12-27 13:23               ` Rudolf Adamkovič
2024-12-27 13:35                 ` Ihor Radchenko
2024-12-30 21:02                   ` Rudolf Adamkovič
2024-12-31 17:47                     ` Ihor Radchenko
2024-12-27 17:17     ` Leo Butler
2024-12-28 16:39     ` Max Nikulin
2024-12-30 21:25       ` Rudolf Adamkovič [this message]
2025-01-02 17:02         ` Max Nikulin
2024-12-31  5:43       ` Ihor Radchenko
2024-12-31 12:20         ` Rudolf Adamkovič
2024-12-31 13:32           ` Ihor Radchenko
2024-12-31 15:57             ` Rudolf Adamkovič
2024-12-31 16:46               ` Ihor Radchenko
2025-01-02 17:20             ` Max Nikulin
2025-01-02 17:32               ` Ihor Radchenko
2025-01-03 15:14                 ` Max Nikulin
2024-12-24  9:50 ` Rudolf Adamkovič

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m234i4yibe.fsf@adamkovic.org \
    --to=rudolf@adamkovic.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=manikulin@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).