From: Diego Zamboni <diego@zzamboni.org>
To: Org-mode <emacs-orgmode@gnu.org>
Cc: Diego Zamboni <diego@zzamboni.org>
Subject: Converting AsciiDoc to org-mode, preserving index entries
Date: Mon, 19 Feb 2018 20:54:40 +0100 [thread overview]
Message-ID: <101025EC-FDB2-4467-9AED-D77437D2EC16@zzamboni.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 837 bytes --]
Hi,
I have a large document (a book) written in AsciiDoc, and I’ve been thinking of converting it to org-mode, which I find eminently more readable. The method I’ve come up with is:
1. AsciiDoc -> Docbook using asciidoc or asciidoctor
2. Docbook -> org using pandoc
The conversion seems to work well, except for one thing: I have index terms in my AsciiDoc files using the ‘((( … )))’ syntax (http://asciidoctor.org/docs/user-manual/#index-terms <http://asciidoctor.org/docs/user-manual/#index-terms>). Step 1 converts them correctly into <indexterm> tags, but pandoc inserts them as part of the main text instead of producing‘#+INDEX entries.
Before I go report the bug to Pandoc, I was wondering if anyone has tried this and maybe come up with some other way of doing the conversion.
Thanks!
—Diego
[-- Attachment #2: Type: text/html, Size: 1414 bytes --]
next reply other threads:[~2018-02-19 19:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-19 19:54 Diego Zamboni [this message]
2018-02-20 0:25 ` Converting AsciiDoc to org-mode, preserving index entries John Kitchin
2018-02-20 10:07 ` Diego Zamboni
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=101025EC-FDB2-4467-9AED-D77437D2EC16@zzamboni.org \
--to=diego@zzamboni.org \
--cc=emacs-orgmode@gnu.org \
/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).