emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Stacey Marshall <stacey.marshall@gmail.com>
To: yantar92@posteo.net
Cc: emacs-orgmode@gnu.org, tom@fizz.buzz
Subject: Re: COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporter
Date: Fri,  5 Apr 2024 18:06:25 +0100	[thread overview]
Message-ID: <20240405170625.16111-1-stacey.marshall@gmail.com> (raw)
In-Reply-To: <87o7hazpxg.fsf@localhost>

Regarding https://list.orgmode.org/orgmode/36a62fbf-6484-456f-9537-a7aa40530068@app.fastmail.com/

Was the intention with this change to remove alphabetical lists from
text (ascii) exporter?

----
#+begin_src 
,#+title: Test document

,#+options: toc:nil author:nil
,* test of alphabetical export

,#+begin_src emacs-lisp :exports both :eval yes
(format "%S\n%S\norg-list-allow-alphabetical: %S\n"
	(emacs-version) (org-version) org-list-allow-alphabetical)
,#+end_src

a. Point A
b. Point B
c. Point C
d. [@z] Point Z
#+end_src

Latest 9.7 alpha results in the alphabetical labels being replaced
with numbers::
#+begin_example
1 test of alphabetical export
=============================

  ,----
  | (format "%S\n%S\norg-list-allow-alphabetical: %S\n"
  | 	(emacs-version) (org-version) org-list-allow-alphabetical)
  `----

  ,----
  | "GNU Emacs 29.1 (build 1, aarch64-apple-darwin23.3.0, Carbon Version 170 AppKit 2487.4)
  |  of 2024-02-26"
  | "9.7-pre"
  | org-list-allow-alphabetical: t
  `----


  1. Point A
  2. Point B
  3. Point C
  26. Point Z
#+end_example

Removing the change to ox-ascii.el restores it, but leaves the original issue:

#+begin_src diff :eval no :exports code
$ git diff lisp/ox-ascii.el
diff --git a/lisp/ox-ascii.el b/lisp/ox-ascii.el
index db4356ec6..78641f1db 100644
--- a/lisp/ox-ascii.el
+++ b/lisp/ox-ascii.el
@@ -1485,7 +1485,7 @@ contextual information."
                                      struct
                                      (org-list-prevs-alist struct)
                                      (org-list-parents-alist struct)))))))
-              (replace-regexp-in-string "[0-9A-Za-z]+" num bul)))
+              (replace-regexp-in-string "[0-9]+" num bul)))
            (_ (let ((bul (org-list-bullet-string
                           (org-element-property :bullet item))))
                 ;; Change bullets into more visible form if UTF-8 is active.
#+end_src

#+begin_example
1 test of alphabetical export
=============================

  ,----
  | (format "%S\n%S\norg-list-allow-alphabetical: %S\n"
  | 	(emacs-version) (org-version) org-list-allow-alphabetical)
  `----

  ,----
  | "GNU Emacs 29.1 (build 1, aarch64-apple-darwin23.3.0, Carbon Version 170 AppKit 2487.4)
  |  of 2024-02-26"
  | "9.7-pre"
  | org-list-allow-alphabetical: t
  `----


  a. Point A
  b. Point B
  c. Point C
  d. Point Z
#+end_example

I must admit that I had not noticed that other exporters converted
the letter to a number.  Going forward I shall stop using them.

If it is obsoleted or deprecated then a mention to etc/ORG-NEWS
would be appreciated.

yours faithfully,

Stacey Marshall






  parent reply	other threads:[~2024-04-05 17:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-29 18:16 COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporter Tom Alexander
2023-10-07 10:29 ` Ihor Radchenko
2023-10-11 14:28   ` Tom Alexander
2023-10-20 10:15     ` [PATCH] [DISCUSSION] Force `tab-width' to be 8 in Org mode (was: COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporter) Ihor Radchenko
2023-12-05 13:13       ` Ihor Radchenko
2023-10-20 10:18     ` COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporter Ihor Radchenko
2024-04-05 17:06   ` Stacey Marshall [this message]
2024-04-06 12:02     ` Ihor Radchenko
2024-04-06 12:25       ` Stacey Marshall

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=20240405170625.16111-1-stacey.marshall@gmail.com \
    --to=stacey.marshall@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=tom@fizz.buzz \
    --cc=yantar92@posteo.net \
    /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).