From: Eric Marsden <emarsden@mail.dotcom.fr>
Subject: Re: w3 rendering
Date: 09 Nov 1999 11:39:58 +0100 [thread overview]
Message-ID: <wzi4sewkkxt.fsf@mail.dotcom.fr> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "09 Nov 1999 07:47:15 +0100"
>>>>> "lmi" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
lmi> 1. nnultimate calls w3-parse-buffer
lmi> 2. nnultimate finds the <td> cell in the parsed tree
lmi> 3. nnultimate wants to insert that HTML into the article bufffer so that
lmi> 4. Gnus can let the text/html handler (i.e., w3) render it
I don't know if this helps ... see also `w3-display-parse-tree'.
(defun nnultimate-w3-subtree (tree)
(when (listp tree)
(cond ((eq 'td (car tree))
;; it's (td nil ((p nil ("data"))))
(insert (format "%s\n" (caaddr (caaddr tree)))))
((listp (cdr tree))
(mapcar #'nnultimate-w3-subtree tree)))))
(defun nnultimate-w3-test ()
(let ((source (get-buffer-create " *nnultimate-w3*"))
(parsed (get-buffer-create " *nnultimate-parse*"))
parse-tree)
(switch-to-buffer source)
(erase-buffer)
(url-insert-file-contents "http://www.laas.fr/~emarsden/td-test.html")
(setq parse-tree (w3-parse-buffer source))
(switch-to-buffer parsed)
(erase-buffer)
(while parse-tree
(nnultimate-w3-subtree (car parse-tree))
(setq parse-tree (cdr parse-tree)))))
--
Eric Marsden
It's elephants all the way down
next prev parent reply other threads:[~1999-11-09 10:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-09 6:47 Lars Magne Ingebrigtsen
1999-11-09 10:39 ` Eric Marsden [this message]
1999-11-09 14:21 ` Lars Magne Ingebrigtsen
1999-11-09 15:13 ` William M. Perry
1999-11-10 4:15 ` Lars Magne Ingebrigtsen
1999-11-09 12:12 ` William M. Perry
1999-11-09 14:21 ` Lars Magne Ingebrigtsen
1999-11-14 19:51 ` Greg Stark
1999-11-15 19:53 ` 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=wzi4sewkkxt.fsf@mail.dotcom.fr \
--to=emarsden@mail.dotcom.fr \
/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).