(html2text-replace-list): Add new entities.
authorRomain Francoise <romain@orebokech.com>
Sun, 11 Sep 2005 18:40:12 +0000 (18:40 +0000)
committerRomain Francoise <romain@orebokech.com>
Sun, 11 Sep 2005 18:40:12 +0000 (18:40 +0000)
From Jari Aalto <jari.aalto@cante.net>.

lisp/ChangeLog
lisp/html2text.el

index ca9f392..415c98a 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-11  Jari Aalto  <jari.aalto@cante.net>
+
+       * html2text.el: (html2text-replace-list): Add new entities.
+
 2005-09-11  Romain Francoise  <romain@orebokech.com>
 
        * message.el (message-alternative-emails): Improve docstring.
index e42872a..27dc599 100644 (file)
 (defvar html2text-format-single-element-list '(("hr" . html2text-clean-hr)))
 
 (defvar html2text-replace-list
-  '(("&nbsp;" . " ") ("&gt;" . ">") ("&lt;" . "<") ("&quot;" . "\"")
-    ("&amp;" . "&") ("&apos;" . "'"))
+  '(("&acute;" . "`")
+    ("&amp;" . "&")
+    ("&apos;" . "'")
+    ("&brvbar;" . "|")
+    ("&cent;" . "c")
+    ("&circ;" . "^")
+    ("&copy;" . "(C)")
+    ("&curren;" . "(#)")
+    ("&deg;" . "degree")
+    ("&divide;" . "/")
+    ("&euro;" . "e")
+    ("&frac12;" . "1/2")
+    ("&gt;" . ">")
+    ("&iquest;" . "?")
+    ("&laquo;" . "<<")
+    ("&ldquo" . "\"")
+    ("&lsaquo;" . "(")
+    ("&lsquo;" . "`")
+    ("&lt;" . "<")
+    ("&mdash;" . "--")
+    ("&nbsp;" . " ")
+    ("&ndash;" . "-")
+    ("&permil;" . "%%")
+    ("&plusmn;" . "+-")
+    ("&pound;" . "£")
+    ("&quot;" . "\"")
+    ("&raquo;" . ">>")
+    ("&rdquo" . "\"")
+    ("&reg;" . "(R)")
+    ("&rsaquo;" . ")")
+    ("&rsquo;" . "'")
+    ("&sect;" . "§")
+    ("&sup1;" . "^1")
+    ("&sup2;" . "^2")
+    ("&sup3;" . "^3")
+    ("&tilde;" . "~"))
   "The map of entity to text.
 
 This is an alist were each element is a dotted pair consisting of an