From: Katsumi Yamaoka <yamaoka@jpl.org>
To: ding@gnus.org
Subject: Re: numeric entities
Date: Tue, 07 Dec 2010 14:06:20 +0900 [thread overview]
Message-ID: <b4mr5ducgtv.fsf@jpl.org> (raw)
In-Reply-To: <m38w03yn9p.fsf@quimbies.gnus.org>
Lars Magne Ingebrigtsen wrote:
> 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?
`gnus-article-dumbquotes-map' uses only ASCII characters, so it
seems still helpful to people who use an old terminal emulator.
That is for normal text, not html, isn't it? So, if we make
`article-treat-dumbquotes' do "\200;"->"€" things, it may have
to be for only environments that support such non-ASCII characters.
OTOH, those who use `shr' or `gnus-w3m' will probably use a modern
terminal or Emacs' display engine.
>> 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.
Done for `mm-shr' and `gnus-w3m'. If it slows Gnus, making
`mm-extra-numeric-entities' a char-table may be better. Maybe so
is `mm-url-html-entities'.
next prev parent reply other threads:[~2010-12-07 5:06 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
2010-12-07 5:06 ` Katsumi Yamaoka [this message]
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=b4mr5ducgtv.fsf@jpl.org \
--to=yamaoka@jpl.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).