From: Chad Brown <yandros@MIT.EDU>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: Linking Emacs with libxml2
Date: Mon, 6 Sep 2010 18:40:47 -0700 [thread overview]
Message-ID: <4E31CBF2-095D-449C-B97A-9E35A6412263@mit.edu> (raw)
In-Reply-To: <m3hbi2zi4m.fsf@quimbies.gnus.org>
I was assuming that people would object to adding a dependency on
libxml2. It seems that I was the only one making that assumption,
especially since it's pulled in for libsrvg already. My apologies for not
saying that up-front.
On Sep 6, 2010, at 2:17 PM, Lars Magne Ingebrigtsen wrote:
>> - parsing HTML is the easy part, rendering it in Emacs is a lot
>> more difficult.
>
> Well, parsing real work HTML is quite tricky, but you're right in that
> the major part of this work wouldn't be hooking libxml2 into Emacs
> (probably a day's work for somebody who knows what they're doing, and
> three days for me?), but writing an HTML renderer. I've been looking to
> see whether there are any C libraries for rendering HTML, but I haven't
> found anything. (Well, except Gecko and Webkit, but 1) we probably
> don't want to make Emacs dependent on those very large libraries, and 2)
> they're oriented towards more graphical environments than Emacs.)
>
> But I'm kinda unsure how much work writing an HTML renderer would be, if
> you had access to a sensible parse tree. My guess would be that you
> could have something that rendered 80% of pages very nicely with one
> week's worth of work. And I take those numbers out of the air, but
> that's the vague feeling I have...
You might want to take a look at w3m (MIT License) or links 2 (GPL) for some
examples of text-based rendering with emacs-like image support. I don't know
that either will be preferable to rendering in elisp, but they might at least suggest
where to expect difficulty. I would personally expect the troubles to pop up around
tables, CSS, and javascript.
http://sourceforge.net/projects/w3m/
http://links.twibright.com/
*Chad
next prev parent reply other threads:[~2010-09-07 1:40 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-06 15:21 Linking Emacs with libxml2 Lars Magne Ingebrigtsen
2010-09-06 15:54 ` Wojciech Meyer
2010-09-06 18:26 ` Chad Brown
2010-09-06 21:01 ` Lars Magne Ingebrigtsen
2010-09-06 18:44 ` Lennart Borgman
2010-09-06 18:56 ` Chad Brown
2010-09-06 19:08 ` Chong Yidong
2010-09-06 19:17 ` joakim
2010-09-07 0:36 ` Jason Rumney
2010-09-07 0:58 ` Lars Magne Ingebrigtsen
2010-09-08 14:10 ` Lars Magne Ingebrigtsen
2010-09-08 14:25 ` Andreas Schwab
2010-09-08 14:40 ` Stefan Monnier
2010-09-08 15:16 ` Lars Magne Ingebrigtsen
2010-09-08 16:15 ` Lars Magne Ingebrigtsen
2010-09-08 18:17 ` joakim
2010-09-08 18:19 ` Lars Magne Ingebrigtsen
2010-09-08 19:10 ` Andreas Schwab
2010-09-08 20:11 ` Lars Magne Ingebrigtsen
2010-09-08 20:30 ` Lars Magne Ingebrigtsen
2010-09-08 20:58 ` Lars Magne Ingebrigtsen
2010-09-08 21:51 ` Andreas Schwab
2010-09-08 21:54 ` Lars Magne Ingebrigtsen
2010-09-09 17:00 ` Stefan Monnier
2010-09-09 21:56 ` Lars Magne Ingebrigtsen
2010-09-09 22:28 ` Stefan Monnier
2010-09-09 22:37 ` Lars Magne Ingebrigtsen
2010-09-10 8:14 ` Andreas Schwab
2010-09-10 10:46 ` Stefan Monnier
2010-09-10 10:56 ` Lars Magne Ingebrigtsen
2010-09-10 12:37 ` Lars Magne Ingebrigtsen
2010-09-10 16:47 ` Lars Magne Ingebrigtsen
2010-09-10 16:54 ` Lars Magne Ingebrigtsen
2010-09-10 17:05 ` Ted Zlatanov
2010-09-10 17:14 ` Lars Magne Ingebrigtsen
2010-09-10 17:34 ` Glenn Morris
2010-09-10 17:41 ` Glenn Morris
2010-09-10 17:44 ` Lars Magne Ingebrigtsen
2010-09-10 18:39 ` Ted Zlatanov
2010-09-12 16:56 ` Andreas Schwab
2010-09-12 17:05 ` Lars Magne Ingebrigtsen
2010-09-10 21:12 ` Chad Brown
2010-09-10 21:40 ` Lars Magne Ingebrigtsen
2010-09-10 22:45 ` chad
2010-09-10 23:19 ` Lars Magne Ingebrigtsen
2010-09-11 7:18 ` Andreas Schwab
2010-09-11 12:48 ` Lars Magne Ingebrigtsen
2010-09-13 18:37 ` Leo
2010-09-13 18:49 ` Lars Magne Ingebrigtsen
2010-09-13 19:08 ` Leo
2010-09-13 19:16 ` Chad Brown
2010-09-13 19:23 ` Chad Brown
2010-09-13 22:24 ` Leo
2010-09-13 16:06 ` Christian Faulhammer
2010-09-10 11:37 ` Andreas Schwab
2010-09-10 14:12 ` Andrew W. Nosenko
2010-09-09 8:35 ` Christian Faulhammer
2010-09-09 10:33 ` Lars Magne Ingebrigtsen
2010-09-09 11:07 ` Christian Faulhammer
2010-09-09 11:09 ` Lars Magne Ingebrigtsen
2010-09-06 19:19 ` Chong Yidong
2010-09-06 21:03 ` Lars Magne Ingebrigtsen
2010-09-15 0:55 ` Eric M. Ludlam
2010-09-15 15:52 ` Ted Zlatanov
2010-09-06 21:08 ` Stefan Monnier
2010-09-06 21:17 ` Lars Magne Ingebrigtsen
2010-09-06 21:30 ` joakim
2010-09-07 1:40 ` Chad Brown [this message]
2010-09-07 1:47 ` Lars Magne Ingebrigtsen
2010-09-06 21:18 ` Lennart Borgman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E31CBF2-095D-449C-B97A-9E35A6412263@mit.edu \
--to=yandros@mit.edu \
--cc=emacs-devel@gnu.org \
--cc=larsi@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).