From: Julien Danjou <julien@danjou.info>
To: ding@gnus.org
Cc: Julien Danjou <julien@danjou.info>
Subject: [PATCH] (gnus-html-wash-tags): Add better support for <ul> tags symbols.
Date: Sun, 19 Sep 2010 11:00:25 +0200 [thread overview]
Message-ID: <1284886825-24991-1-git-send-email-julien@danjou.info> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1750 bytes --]
Signed-off-by: Julien Danjou <julien@danjou.info>
---
lisp/ChangeLog | 1 +
lisp/gnus-html.el | 16 ++++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 565706c..5246c94 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -7,6 +7,7 @@
(gnus-html-wash-tags): Fix tag case.
Add support for `s' and `ins' tags. Use gnus-emphasis-* faces.
(gnus-article-html): Add -o display_ins_del=2 option.
+ (gnus-html-wash-tags): Add better support for <ul> tags symbols.
2010-09-19 Lars Magne Ingebrigtsen <larsi@gnus.org>
diff --git a/lisp/gnus-html.el b/lisp/gnus-html.el
index ba4a020..aff9e56 100644
--- a/lisp/gnus-html.el
+++ b/lisp/gnus-html.el
@@ -270,6 +270,22 @@ fit these criteria."
((or (equal tag "ins")
(equal tag "INS"))
(gnus-overlay-put (gnus-make-overlay start end) 'face 'gnus-emphasis-underline))
+ ;; Handle different UL types
+ ((equal tag "_SYMBOL")
+ (when (string-match "TYPE=\\(.+\\)" parameters)
+ (let ((type (string-to-number (match-string 1 parameters))))
+ (delete-region start end)
+ (cond ((= type 33) (insert "▸"))
+ ((= type 34) (insert "◾"))
+ ((= type 35) (insert "◆"))
+ ((= type 36) (insert "▰"))
+ ((= type 37) (insert "○"))
+ ((= type 38) (insert "▹"))
+ ((= type 39) (insert "□"))
+ ((= type 40) (insert "◇"))
+ ((= type 42) (insert "○"))
+ ((= type 43) (insert "◾"))
+ (t (insert "●"))))))
;; Whatever. Just ignore the tag.
(t
))
--
1.7.1
next reply other threads:[~2010-09-19 9:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-19 9:00 Julien Danjou [this message]
2010-09-19 12:06 ` Lars Magne Ingebrigtsen
2010-09-19 12:22 ` Julien Danjou
2010-09-20 2:16 ` Ted Zlatanov
2010-09-20 8:15 ` 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=1284886825-24991-1-git-send-email-julien@danjou.info \
--to=julien@danjou.info \
--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).