emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [PATCH] Enhance org-html--build-meta-info


From: Jens Lechtenboerger
Subject: Re: [PATCH] Enhance org-html--build-meta-info
Date: Fri, 18 Sep 2020 10:11:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

On 2020-09-18, TEC wrote:

> Jens Lechtenboerger <lechten@wi.uni-muenster.de> writes:
> [...]
> I was not aware of org-element-interpret-data, and I can't say I can
> really tell what it does. If you'd care to elaborate that would be
> helpful.

Hi Timothy,

I don’t know why that is used.  For this test case:

#+begin_src org
,#+TITLE: A title with *bold* index_1^2 and characters &ß<"
,#+AUTHOR: An /emphasized/ "anonymous" author_1^2 with 
[[https://example.org][hyperlink]] and characters &ß<"
,#+DESCRIPTION: A description_1^2 with /emphasis/ and 
[[https://example.org][hyperlink]] and characters &ß<"

Test
#+end_src

I get this with Org master:

#+begin_src html
<title>A title with <b>bold</b> index<sub>1</sub><sup>2</sup> and characters 
&amp;ß&lt;"</title>
<meta name="author" content="An /emphasized/ &quot;anonymous&quot; author_1^2 
with [[https://example.org][hyperlink]] and characters &amp;ß&lt;&quot;" />
<meta name="description" content="A description_1^2 with /emphasis/ and 
[[https://example.org][hyperlink]] and characters &amp;ß&lt;&quot;"
#+end_src

The title is not valid HTML.  I suggest to export it with Org
syntax.

I cannot see a difference between the handling of author and
description.  So, for this example, org-element-interpret-data is
not necessary for author.  I don’t know whether others have author
information where a difference would be visible.

My suggestion would be to go with the handling of description in all
cases, including the title.

>> Besides, did you forget keywords or remove them on purpose?
>
> This is a deliberate omission. My impression is that the value of
> keywords in HTML documents has evaporated over the past decade, see:
> https://yoast.com/meta-keywords/

I added keywords to my OER presentations because some crawlers use
them to extract topics for classification of documents.  I’d like to
keep that.

Best wishes
Jens



reply via email to

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