emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Possible feature request (but more of a request for comment/opin


From: Emil Vatai
Subject: Re: [O] Possible feature request (but more of a request for comment/opinion)
Date: Sat, 27 Oct 2018 18:54:50 +0900

Dear Nicolas,

Thank you for the quick response.

According to the developer.mozilla.org link, a quote and a citation should look like this:

   <blockquote cite="" href="https://www.huxley.net/bnw/four.html">https://www.huxley.net/bnw/four.html">
       <p>Words can be like X-rays, if you use them properly – they'll go through anything. You read and you're pierced.</p>
   </blockquote>
   <cite>– Aldous Huxley, Brave New World</cite>

The quote part is straightforward in org-mode:

    #+attr_html: :cite https://www.huxley.net/bnw/four.html
    #+begin_quote
    Words can be like X-rays, if you use them properly – they'll go through anything. You read and you're pierced.
    #+end_quote

But what to do with the:
  <cite>– Aldous Huxley, Brave New World</cite>
part?

So I was (for a brief moment) motivated to implement #BEGIN/END_CITE for org-mode, but now it doesn't seem to make much sense to do so. I can implement it simply by adding an export html block (for the one situation I need it).

Hopefully this example clarifies what my question is about.

Regards,
Emil

On Sat, Oct 27, 2018 at 6:38 PM Nicolas Goaziou <address@hidden> wrote:
Hello,

Emil Vatai <address@hidden> writes:

> So I have a web page generated by org-mode which has a fancy quote at the
> beginning, generated by #+BEGIN/END_QUOTE of course... and the
> signature/citation/reference at the end seemed off so I googled "html
> blockquote" and apparently the proper way to use it [1] is to have a <cite>
> tag after the <blockquote> tag. So I thought, this can't be so hard...
> let's do it... a few copy/pastes and search-and-replaces later... I
> realized that the #+BEGIN/END_QUOTE block is processed not just by ox-html
> but also buy the other backends... so to make things nice, I'd need to
> implement the same thing in them as well... which might not be a meaningful
> thing to do.

Could you be a bit more explicit about what you want to do, possibly
giving an example?

> I just had that urge that "wow, I want to contribute to that cool project
> (org-mode) which I use so much"... but it's not something what I thing
> should be extra useful. It can be done without adding a CITE block to the
> html export backend. I need it only in one place - so probably not worth it.
>
> But still, any opinion on this? (I got really good encouragement on IRC to
> write here)

You can add a feature per export back-end, using, e.g., "ATTR_HTML"
keyword:

    #+attr_html: :cite The source
    #+begin_quote
    ...
    #+end_quote

For example, ox-texinfo supports :author for quotes:

    #+attr_texinfo: :author ...
    #+begin_quote
    ...
    #+end_quote

See `org-texinfo-quote-block' for details.

Regards,

--
Nicolas Goaziou


--
Emil Vatai

reply via email to

[Prev in Thread] Current Thread [Next in Thread]