[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporte
|
From: |
Stacey Marshall |
|
Subject: |
Re: COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporter |
|
Date: |
Fri, 5 Apr 2024 18:06:25 +0100 |
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
- Re: COUNTER-SET for alphabetical ordered lists ignored for utf-8 exporter,
Stacey Marshall <=