emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Canonical way to strip off all markup from an element in Org exporter backend?
Date: Wed, 20 Dec 2017 22:41:34 +0000	[thread overview]
Message-ID: <CAFyQvY1NnSoPe-74_sxb3uZmam53TO35y_P-bvFCrWdDWFzBCg@mail.gmail.com> (raw)
In-Reply-To: <87o9mthw6t.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 1226 bytes --]

On Wed, Dec 20, 2017 at 5:27 PM Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> You must be kidding. It must be around 8 locs. See for example
> `org-export-toc-entry-backend'.
>

Thank you! That function is educational. I'll play more with that idea. It
will be a lot more verbose than the 3 line solution I have right now.. but
I am intrigued enough to still try that out to see how it turns out.

I fail to see how it could be generally useful.
>

It can be used wherever just the element content is needed without
formatting properties, like in my case where the element title is needed to
be extracted without any formatting.


> What are you doing with entities, footnotes, latex-snippets...?
>

I haven't yet invested any time into serious development of this "base
class" backend. The idea of this exporter is to give formatting-free output
(like when you select plain text option in an email client).. so at whim,
entities will be translated to the correct unicode chars, footnotes
behavior could be the same as ox-ascii, and latex-snippets can stay in the
raw ascii form.

If there is an interest to move this forward, I can come up with a "raw"
backend spec, and we can discuss on the details.
-- 

Kaushal Modi

[-- Attachment #2: Type: text/html, Size: 1984 bytes --]

  reply	other threads:[~2017-12-20 22:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-20 18:30 Canonical way to strip off all markup from an element in Org exporter backend? Kaushal Modi
2017-12-20 22:04 ` Nicolas Goaziou
2017-12-20 22:11   ` Kaushal Modi
2017-12-20 22:27     ` Nicolas Goaziou
2017-12-20 22:41       ` Kaushal Modi [this message]
2017-12-21 14:22         ` Nicolas Goaziou
2017-12-22 20:31           ` Kaushal Modi

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=CAFyQvY1NnSoPe-74_sxb3uZmam53TO35y_P-bvFCrWdDWFzBCg@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /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).