From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Zamboni Subject: Converting AsciiDoc to org-mode, preserving index entries Date: Mon, 19 Feb 2018 20:54:40 +0100 Message-ID: <101025EC-FDB2-4467-9AED-D77437D2EC16@zzamboni.org> Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_A83F16EF-60A6-4FDD-9708-0A4FACF5F7EB" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1enrWf-00076N-4B for emacs-orgmode@gnu.org; Mon, 19 Feb 2018 14:55:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1enrWb-0004Pv-Mo for emacs-orgmode@gnu.org; Mon, 19 Feb 2018 14:55:01 -0500 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]:51271) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1enrWb-0004P6-Dv for emacs-orgmode@gnu.org; Mon, 19 Feb 2018 14:54:57 -0500 Received: by mail-wm0-x229.google.com with SMTP id h21so9901130wmd.1 for ; Mon, 19 Feb 2018 11:54:57 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode Cc: Diego Zamboni --Apple-Mail=_A83F16EF-60A6-4FDD-9708-0A4FACF5F7EB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, I have a large document (a book) written in AsciiDoc, and I=E2=80=99ve = been thinking of converting it to org-mode, which I find eminently more = readable. The method I=E2=80=99ve 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 =E2=80=98((( =E2=80=A6 )))=E2=80=99 = syntax (http://asciidoctor.org/docs/user-manual/#index-terms = ). Step 1 converts = them correctly into tags, but pandoc inserts them as part of = the main text instead of producing=E2=80=98#+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! =E2=80=94Diego --Apple-Mail=_A83F16EF-60A6-4FDD-9708-0A4FACF5F7EB Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

I = have a large document (a book) written in AsciiDoc, and I=E2=80=99ve = been thinking of converting it to org-mode, which I find eminently more = readable. The method I=E2=80=99ve 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 =E2=80=98((( =E2=80=A6 = )))=E2=80=99 syntax (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=E2=80=98#+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!

=E2=80=94Diego

= --Apple-Mail=_A83F16EF-60A6-4FDD-9708-0A4FACF5F7EB--