On 28-Jan-2010, at 07:32, TGC wrote: > > Last I checked, WebKit is not curses-based.
Yeah, I have no idea why you said that the first time. What are you on about? We're talking about converting an HTML to a plain text message. This has nothing to do with a 'curses-based web browser'. lynx -dump is fast and efficient and is certainly an option (I used to use it in procmail to deal with messages that were tagged as text/html in the headers); though I think using WebKit for 'free' is a much better idea. Here's a page (not mine) <http://www.david-dodge.com/> and here's the time it took lynx -dump to convert it to plain text: $ time lynx -dump /www/david-dodge.com/index.html ` real 0m0.006s user 0m0.000s sys 0m0.007s and here's the output: <http://home.kreme.com/dd.txt> There are some issues with lynx -dump, but I think in terms of email they are not going to crop up much (for example, it does not work or play well with frames). But, I am not suggesting we use lynx. I think WebKit is the answer. Just if WebKit is not, for some developer reason, NOT the answer, we don't have to have someone write a HTML->TXT converter. It's been done, and it's been done well. links might be a better choice (I forgot it now has a -dump as well) but it is a tad larger. Almost 3MB!! (zooms! bloat!) > It's also a rendering engine, not a full-fledged browser. And? Why do we need a full-fledged browser? We're talking about displaying HTMLized crap as plain text. > I was talking about lynx. In that case it would have been useful if you had only quoted the part about lynx and not the entire paragraph about WebKit that mentioned lynx. I said we should use Webkit, but if that wasn't an option, incorporating a binary of lynx to hand off to is an option rather than writing our own thing. lynx is 1.2MB. Even compiling it with 32bit and 64bit binaries the entire executable isn't going to be over 3MB, and it will require *no coding* other than the hook that says "When you display this, pass it to lynx -dump and display the output" -- HIGH EXPLOSIVES AND SCHOOL DON'T MIX Bart chalkboard Ep. 8F03 _______________________________________________ [email protected] mailing list List help: http://lists.ranchero.com/listinfo.cgi/email-init-ranchero.com
