From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: numeric entities
Date: Mon, 06 Dec 2010 15:44:02 +0100 [thread overview]
Message-ID: <m38w03yn9p.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <b4msjybfj9b.fsf@jpl.org>
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> When reading html articles, I sometimes see numeric entities like
> "›". Currently `shr' and `gnus-w3m' render it as "\233", but
> it should be "›", i.e. U+8250. Here is a conversion table stolen
> from emacs-w3m (#155 is there as #x9B):
>
> (defvar mm-url-extra-numeric-entities
It's this mostly the same as `gnus-article-dumbquotes-map'? Looks
somewhat bigger, though. So perhaps that should be installed, and then
`article-treat-dumbquotes' could just use that map instead?
> I can implement it in mm-url.el, that is effective to `gnus-w3m',
> but I hesitate to use it in `mm-shr' before calling
> `libxml-parse-html-region'. WDYT? (IOW, isn't it better to make
> `libxml-parse-html-region' do it by itself? It's too much for me
> though.)
I think `libxml-parse-html-region' should just mainly parse what it's
given, for greater flexibility. But perhaps `mm-shr' and `gnus-w3m'
should just convert these automatically -- they never actually make much
sense.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
next prev parent reply other threads:[~2010-12-06 14:44 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-06 7:33 Katsumi Yamaoka
2010-12-06 11:49 ` Julien Danjou
2010-12-06 18:35 ` Andreas Schwab
2010-12-07 0:06 ` Katsumi Yamaoka
2010-12-07 9:28 ` Julien Danjou
2010-12-06 14:44 ` Lars Magne Ingebrigtsen [this message]
2010-12-07 5:06 ` Katsumi Yamaoka
2010-12-16 17:42 ` Lars Magne Ingebrigtsen
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=m38w03yn9p.fsf@quimbies.gnus.org \
--to=larsi@gnus.org \
--cc=ding@gnus.org \
/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).