Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Subject: Re: [PATCH] cvs 2005-09-11: html2text.el::html2text-replace-list updates
Date: Mon, 19 Sep 2005 18:21:39 +0200	[thread overview]
Message-ID: <v9zmq9m3jg.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87slwbtpkk.fsf@pacem.orebokech.com>

On Sun, Sep 11 2005, Romain Francoise wrote:

> Jari Aalto <jari.aalto@cante.net> writes:
>
>> 2005-09-11  Jari Aalto  <jari dot aalto A T cante dot net>
>>
>>         * html2text.el: (html2text-replace-list): Added new entities.
>
> Applied; thanks!

I still doubt that maintaining yet another list of entities is a good
idea...

,----[ <news:v9oei6d4mv.fsf@marauder.physik.uni-ulm.de> ]
| From: Reiner Steib <reinersteib+gmane@imap.cc>
| Subject: Re: html2text
| To: <emacs-devel@gnu.org>
| Cc: [...] (Jari Aalto+mail.emacs)
| Date: Tue, 09 Nov 2004 23:44:24 +0100
| Message-ID: <v9oei6d4mv.fsf@marauder.physik.uni-ulm.de>
| 
| [...]
| >  (defvar html2text-replace-list
| > -  '(("&nbsp;" . " ") ("&gt;" . ">") ("&lt;" . "<") ("&quot;" . "\"")
| > -    ("&amp;" . "&") ("&apos;" . "'"))
| > +  '(("&acute;" . "`")
| 
| This should be "´".
| 
| > +    ("&amp;" . "&")
| > +    ("&apos;" . "'")
| > +    ("&brvbar;" . "|")
| > +    ("&cent;" . "c")
| > +    ("&circ;" . "^")
| > +    ("&copy;" . "(C)")
| > +    ("&curren;" . "¤")
| > +    ("&deg;" . "degree")
| > +    ("&divide;" . "/")
| > +    ("&euro;" . "e")
| > +    ("&frac12;" . "½")
| [...]
| 
| 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/




  reply	other threads:[~2005-09-19 16:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-11  8:19 Jari Aalto
2005-09-11 18:41 ` Romain Francoise
2005-09-19 16:21   ` Reiner Steib [this message]
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=v9zmq9m3jg.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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).