emacs-orgmode
[Top][All Lists]
Advanced

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

Bug: ox-rss encodes Fußnoten in German with ß which is illegal for


From: Dr. Arne Babenhauserheide
Subject: Bug: ox-rss encodes Fußnoten in German with ß which is illegal for xml [9.4.4 ( @ /home/arne/.guix-profile/share/emacs/site-lisp/)]
Date: Sun, 07 Mar 2021 12:47:12 +0100
User-agent: mu4e 1.4.15; emacs 27.1


Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------

To reproduce:

Create an org-mode file with
#+LANGUAGE: de

Create a footnote.

Export as RSS.

The created xml is malformed, because ß is only legal for html,
not for xml. As far as I can tell, this is caused by calling

(org-export-data-with-backend headline 'html info)

in 

(defun org-rss-headline (headline contents info)
  "Transcode HEADLINE element into RSS format.
CONTENTS is the headline contents.  INFO is a plist used as a
communication channel."
  (if (> (org-export-get-relative-level headline info) 1)
      (org-export-data-with-backend headline 'html info)

This then uses the html-version of Footnotes, while it *should* use the
default.

See org-export-dictionary ("Footnotes" ("de" :html vs. :default)).


Example:
#+begin_src org
,#+LANGUAGE: de
,* Foo
  :PROPERTIES:
  :ID:       1fc24c32-0d07-49a5-a96b-d3860f5ec61b
  :PUBDATE:  <2021-03-07 So 12:42>
  :END:

note[fn:1]

,* Footnotes
  :PROPERTIES:
  :ID:       6431ba45-818f-4e58-b16e-bbc9f4e49509
  :PUBDATE:  <2021-03-07 So 12:42>
  :END:

[fn:1] bar 
#+end_src

M-x org-rss-export-as-rss

The exported buffer:

#+begin_src xml
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
         xmlns:content="http://purl.org/rss/1.0/modules/content/";
         xmlns:wfw="http://wellformedweb.org/CommentAPI/";
         xmlns:dc="http://purl.org/dc/elements/1.1/";
         xmlns:atom="http://www.w3.org/2005/Atom";
         xmlns:sy="http://purl.org/rss/1.0/modules/syndication/";
         xmlns:slash="http://purl.org/rss/1.0/modules/slash/";
         xmlns:georss="http://www.georss.org/georss";
     xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#";
     xmlns:media="http://search.yahoo.com/mrss/";><channel>
  <title></title>
  <atom:link href="./foot.xml" rel="self" type="application/rss+xml" />
  <link></link>
  <description><![CDATA[]]></description>
  <language>de</language>
  <pubDate>Sun, 07 Mar 2021 12:42:58 +0100</pubDate>
  <lastBuildDate>Sun, 07 Mar 2021 12:42:58 +0100</lastBuildDate>
  <generator>Emacs 27.1 Org-mode 9.4.4</generator>
  <webMaster>arne_bab@web.de (Dr. Arne Babenhauserheide)</webMaster>
  <image>
    <url>https://orgmode.org/img/org-mode-unicorn-logo.png</url>
    <title></title>
    <link></link>
  </image>

  <item>
    <title>Foo</title>
    <link>./foot.html#org80b3da5</link>
    <author>arne_bab@web.de (Dr. Arne Babenhauserheide)</author>
    <guid isPermaLink="false">./foot.html#org80b3da5</guid>
    <pubDate>Sun, 07 Mar 2021 12:42:00 +0100</pubDate>

    <description><![CDATA[<p>
    note<sup><a id="fnr.1" class="footref" href="#fn.1">1</a></sup>
    </p>
    ]]></description>
  </item>
  <div id="footnotes">
    <h2 class="footnotes">Fu&szlig;noten: </h2>
    <div id="text-footnotes">

      <div class="footdef"><sup><a id="fn.1" class="footnum" 
href="#fnr.1">1</a></sup> <div class="footpara"><p class="footpara">
      bar 
      </p></div></div>


    </div>
  </div></channel>
</rss>
#+end_src

Best wishes,
Arne

Emacs  : GNU Emacs 27.1 (build 1, x86_64-unknown-linux-gnu, GTK+ Version 
3.24.24, cairo version 1.16.0)
Package: Org mode version 9.4.4 ( @ 
/home/arne/.guix-profile/share/emacs/site-lisp/)
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

Attachment: signature.asc
Description: PGP signature


reply via email to

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