From: Jari Aalto <jari.aalto@cante.net>
Subject: [PATCH] cvs 2005-09-11: html2text.el::html2text-replace-list updates
Date: Sun, 11 Sep 2005 11:19:10 +0300 [thread overview]
Message-ID: <br30ow3l.fsf@cante.net> (raw)
Here is small patch to update the list. I left out the "real" Euro and
Cent signs so that the text would be is as close pure ascii as
possible. Patch is against CVS.
2005-09-11 Jari Aalto <jari dot aalto A T cante dot net>
* html2text.el: (html2text-replace-list): Added new entities.
Index: lisp/html2text.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/lisp/html2text.el,v
retrieving revision 7.13
diff -u -IId: -b -w -u -r7.13 html2text.el
--- lisp/html2text.el 26 Aug 2005 00:05:02 -0000 7.13
+++ lisp/html2text.el 11 Sep 2005 07:36:20 -0000
@@ -43,8 +43,42 @@
(defvar html2text-format-single-element-list '(("hr" . html2text-clean-hr)))
(defvar html2text-replace-list
- '((" " . " ") (">" . ">") ("<" . "<") (""" . "\"")
- ("&" . "&") ("'" . "'"))
+ '(("´" . "`")
+ ("&" . "&")
+ ("'" . "'")
+ ("¦" . "|")
+ ("¢" . "c")
+ ("ˆ" . "^")
+ ("©" . "(C)")
+ ("¤" . "(#)")
+ ("°" . "degree")
+ ("÷" . "/")
+ ("€" . "e")
+ ("½" . "1/2")
+ (">" . ">")
+ ("¿" . "?")
+ ("«" . "<<")
+ ("&ldquo" . "\"")
+ ("‹" . "(")
+ ("‘" . "`")
+ ("<" . "<")
+ ("—" . "--")
+ (" " . " ")
+ ("–" . "-")
+ ("‰" . "%%")
+ ("±" . "+-")
+ ("£" . "£")
+ (""" . "\"")
+ ("»" . ">>")
+ ("&rdquo" . "\"")
+ ("®" . "(R)")
+ ("›" . ")")
+ ("’" . "'")
+ ("§" . "§")
+ ("¹" . "^1")
+ ("²" . "^2")
+ ("³" . "^3")
+ ("˜" . "~"))
"The map of entity to text.
This is an alist were each element is a dotted pair consisting of an
next reply other threads:[~2005-09-11 8:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-11 8:19 Jari Aalto [this message]
2005-09-11 18:41 ` Romain Francoise
2005-09-19 16:21 ` Reiner Steib
2005-09-19 16:44 ` Romain Francoise
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=br30ow3l.fsf@cante.net \
--to=jari.aalto@cante.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).