From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60937 Path: news.gmane.org!not-for-mail From: Jari Aalto Newsgroups: gmane.emacs.gnus.general Subject: [PATCH] cvs 2005-09-11: html2text.el::html2text-replace-list updates Date: Sun, 11 Sep 2005 11:19:10 +0300 Organization: Private Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1126462522 21274 80.91.229.2 (11 Sep 2005 18:15:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2005 18:15:22 +0000 (UTC) Original-X-From: ding-owner+m9469@lists.math.uh.edu Sun Sep 11 20:15:20 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EEWMC-0000Zi-1T for ding-account@gmane.org; Sun, 11 Sep 2005 20:15:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EEWM2-0002XV-00; Sun, 11 Sep 2005 13:15:02 -0500 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EEWIi-0002XP-00 for ding@lists.math.uh.edu; Sun, 11 Sep 2005 13:11:36 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EEWIb-0007r1-Km for ding@lists.math.uh.edu; Sun, 11 Sep 2005 13:11:36 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EEWIZ-0001Yh-00 for ; Sun, 11 Sep 2005 20:11:27 +0200 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1EEWHj-0006oP-Ee for ding@gnus.org; Sun, 11 Sep 2005 20:10:35 +0200 Original-Received: from a81-197-0-130.elisa-laajakaista.fi ([81.197.0.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Sep 2005 20:10:35 +0200 Original-Received: from jari.aalto by a81-197-0-130.elisa-laajakaista.fi with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 11 Sep 2005 20:10:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 61 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: a81-197-0-130.elisa-laajakaista.fi User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:SUeM412qJ796LfDxH+/iUVhEUXE= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60937 Archived-At: 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 * 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