From mboxrd@z Thu Jan 1 00:00:00 1970 From: Emil Vatai Subject: Re: Possible feature request (but more of a request for comment/opinion) Date: Sat, 27 Oct 2018 18:54:50 +0900 Message-ID: References: <87va5nd919.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000005cabe4057932d4a3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGLJA-0005PM-Oj for Emacs-orgmode@gnu.org; Sat, 27 Oct 2018 05:55:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGLJ9-0002SW-I7 for Emacs-orgmode@gnu.org; Sat, 27 Oct 2018 05:55:04 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:44552) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gGLJ9-0002S6-75 for Emacs-orgmode@gnu.org; Sat, 27 Oct 2018 05:55:03 -0400 Received: by mail-wr1-x429.google.com with SMTP id d17-v6so3349172wre.11 for ; Sat, 27 Oct 2018 02:55:03 -0700 (PDT) In-Reply-To: <87va5nd919.fsf@nicolasgoaziou.fr> 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: Emacs-orgmode@gnu.org --0000000000005cabe4057932d4a3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear Nicolas, Thank you for the quick response. According to the developer.mozilla.org link, a quote and a citation should look like this:

Words can be like X-rays, if you use them properly =E2=80=93 they= 'll go through anything. You read and you're pierced.

=E2=80=93 Aldous Huxley, Brave New World 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 =E2=80=93 they'll go= through anything. You read and you're pierced. #+end_quote But what to do with the: =E2=80=93 Aldous Huxley, Brave New World 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 wrote: > Hello, > > Emil Vatai writes: > > > So I have a web page generated by org-mode which has a fancy quote at t= he > > 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 > > > tag after the
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 proje= ct > > (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 t= he > > html export backend. I need it only in one place - so probably not wort= h > 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 > --=20 Emil Vatai --0000000000005cabe4057932d4a3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Dear Nicolas,

Thank you for the quick response.


<= div>
=C2=A0 =C2=A0<blockquote cite=3D"https://www.huxley.net/bnw/four.html"><= /div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0<p>Words can be like X-rays, if = you use them properly =E2=80=93 they'll go through anything. You read a= nd you're pierced.</p>
=C2=A0 =C2=A0</blockquote>=
=C2=A0 =C2=A0<cite>=E2=80=93 Aldous Huxley, Brave New Worl= d</cite>

The quote part is straightfor= ward in org-mode:

=C2=A0 =C2=A0 #+attr_html: :cite= https://www.huxley.net/bn= w/four.html
=C2=A0 =C2=A0 #+begin_quote
=C2=A0 =C2=A0 Words = can be like X-rays, if you use them properly =E2=80=93 they'll go throu= gh anything. You read and you're pierced.
=C2=A0 =C2=A0 #+end_quot= e

But what to do with the:
=C2=A0 <ci= te>=E2=80=93 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 mak= e much sense to do so. I can implement it simply by adding an export html b= lock (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 <em= il.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 hav= e 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 nee= d to
> implement the same thing in them as well... which might not be a meani= ngful
> 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 wha= t 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 wor= th it.
>
> But still, any opinion on this? (I got really good encouragement on IR= C to
> write here)

You can add a feature per export back-end, using, e.g., "ATTR_HTML&quo= t;
keyword:

=C2=A0 =C2=A0 #+attr_html: :cite The source
=C2=A0 =C2=A0 #+begin_quote
=C2=A0 =C2=A0 ...
=C2=A0 =C2=A0 #+end_quote

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

=C2=A0 =C2=A0 #+attr_texinfo: :author ...
=C2=A0 =C2=A0 #+begin_quote
=C2=A0 =C2=A0 ...
=C2=A0 =C2=A0 #+end_quote

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

Regards,

--
Nicolas Goaziou


--
Emil Vatai --0000000000005cabe4057932d4a3--