From: Emil Vatai <emil.vatai@gmail.com>
To: Emacs-orgmode@gnu.org
Subject: Re: Possible feature request (but more of a request for comment/opinion)
Date: Sat, 27 Oct 2018 18:54:50 +0900 [thread overview]
Message-ID: <CA+AfvvCMY4Q8ByfZ=DpdMoWs0oyFRX1nT0tGKEyQx4-AOwHUng@mail.gmail.com> (raw)
In-Reply-To: <87va5nd919.fsf@nicolasgoaziou.fr>
[-- Attachment #1: Type: text/plain, Size: 2906 bytes --]
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="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 <mail@nicolasgoaziou.fr>
wrote:
> Hello,
>
> Emil Vatai <emil.vatai@gmail.com> 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
[-- Attachment #2: Type: text/html, Size: 4084 bytes --]
next prev parent reply other threads:[~2018-10-27 9:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-27 7:40 Possible feature request (but more of a request for comment/opinion) Emil Vatai
2018-10-27 9:38 ` Nicolas Goaziou
2018-10-27 9:54 ` Emil Vatai [this message]
2018-10-27 15:01 ` Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+AfvvCMY4Q8ByfZ=DpdMoWs0oyFRX1nT0tGKEyQx4-AOwHUng@mail.gmail.com' \
--to=emil.vatai@gmail.com \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.