From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60974 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: [PATCH] cvs 2005-09-11: html2text.el::html2text-replace-list updates Date: Mon, 19 Sep 2005 18:21:39 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: <87slwbtpkk.fsf@pacem.orebokech.com> Reply-To: Reiner Steib 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 1127147122 29399 80.91.229.2 (19 Sep 2005 16:25:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 19 Sep 2005 16:25:22 +0000 (UTC) Original-X-From: ding-owner+m9506@lists.math.uh.edu Mon Sep 19 18:25:15 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EHOS2-0008Ci-4T for ding-account@gmane.org; Mon, 19 Sep 2005 18:25:06 +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 1EHORx-0001q8-00; Mon, 19 Sep 2005 11:25:02 -0500 Original-Received: from nas01.math.uh.edu ([129.7.128.39]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EHORK-0001q3-00 for ding@lists.math.uh.edu; Mon, 19 Sep 2005 11:24:22 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas01.math.uh.edu with esmtp (Exim 4.52) id 1EHORH-0000Wa-NM for ding@lists.math.uh.edu; Mon, 19 Sep 2005 11:24:22 -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 1EHORG-00009r-00 for ; Mon, 19 Sep 2005 18:24:18 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EHOPy-0007Tj-Bi for ding@gnus.org; Mon, 19 Sep 2005 18:22:58 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de ([134.60.10.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Sep 2005 18:22:58 +0200 Original-Received: from Reiner.Steib by bridgekeeper.physik.uni-ulm.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Sep 2005 18:22:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 65 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgekeeper.physik.uni-ulm.de X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od On Sun, Sep 11 2005, Romain Francoise wrote: > Jari Aalto writes: > >> 2005-09-11 Jari Aalto >> >> * html2text.el: (html2text-replace-list): Added new entities. > > Applied; thanks! I still doubt that maintaining yet another list of entities is a good idea... ,----[ ] | From: Reiner Steib | Subject: Re: html2text | To: | Cc: [...] (Jari Aalto+mail.emacs) | Date: Tue, 09 Nov 2004 23:44:24 +0100 | Message-ID: | | [...] | > (defvar html2text-replace-list | > - '((" " . " ") (">" . ">") ("<" . "<") (""" . "\"") | > - ("&" . "&") ("'" . "'")) | > + '(("´" . "`") | | This should be "´". | | > + ("&" . "&") | > + ("'" . "'") | > + ("¦" . "|") | > + ("¢" . "c") | > + ("ˆ" . "^") | > + ("©" . "(C)") | > + ("¤" . "¤") | > + ("°" . "degree") | > + ("÷" . "/") | > + ("€" . "e") | > + ("½" . "½") | [...] | | It seems strange to use Latin-1 characters for some entities, but not | for all encodable by Latin-1. | | On a second thought, it looks like there are already more or less | complete lists[1] e.g. in `mm-url-html-entities' (from Gnus), | `sgml-char-names', `sgml-char-names-table', `iso-iso2sgml-trans-tab' | (Emacs) or `w3m-entity-alist' (emacs-w3m). | | Probably one of these could be used. Hm, maybe the function | `iso-sgml2iso' could be used in `html2text.el'? | | Bye, Reiner. | | [1] Might be checked with | http://www.w3.org/TR/REC-html40/sgml/entities.html or other | tables. `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/