[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedding Html in Lisp

From: T. V. Raman
Subject: Re: Embedding Html in Lisp
Date: Tue, 24 Jun 2008 06:36:13 -0700

A simpler way to do this is to actually hand off the grungy
details of dealing with broken HTML to existing software, and get
back something clean.

Here are some options:

0) libxslt from the Gnome project. It can clean up bad HTML,
turn it into something well formed, and give you something easy
to parse and handle.

1) Connecting to a browser --- at present I use a Firefox
extension called mozrepl to talk to Firefox over a socket from
Emacs. You can send JavaScript to Firefox, and get back relevents
portions of the DOM back as cleaned up HTML.

2) It might be worthwhile to build something similar to the
above, but with Webkit running headless -- since over time that
would give a lighter weight solution.

A truly ambitious thing to try would be to link in the HTML
parser/renderer bits of webkit into Emacs to provide a truly
integrated experience.

>>>>> "A" == A Soare <address@hidden> writes:
    >>  On Mon, Jun 23, 2008 at 03:21:07PM +0200, A Soare wrote:
    >> > 
    >> > > 
    >> > > Html is lisp.
    >> > > 
    >> > > You dignify html a lot more than it deserves!
    >> > 
    >> > With the classical definition of HTML , yes.
    >> > 
    >> > With the new definition, they can be compared.
    >> But only if you squint hard .-)
    >> Of course, at the formal level you are right. But in the
    >> details, *ML lose big time. See for example the quoting
    >> business in tag attributes, for one of my pet peeves. Or
    >> white space handling.
    >> Those folks must have been on acids. Bad ones.
I realised that there are many cases to treat in order to
    A> correctly transform html -> lisp, and that is why I do not
    A> want to write a complete browser, just a minimum for what
    A> I need.
    A> (enough grumbling)
    A> Regards.
    A> ____________________________________________________
    A> En quelques secondes, créez-vous une autre adresse mail !
    A> http://mail.voila.fr

Best Regards,

Email:  address@hidden
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: address@hidden
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC:    irc://irc.freenode.net/#emacs

reply via email to

[Prev in Thread] Current Thread [Next in Thread]