|
| <prev next> |
Re: export to .txt, .html: msg#00000emacs.bbdb.user
Aldo> How about bbdb2html (http://valente.de/aldo/bbdb)? Looks complicated plus I gotta download an extra .pl that isn't even in Debian. My goal is to read it on a turn of the century black and white PDA, oh 33 characters wide. So I whipped up this Makefile: bbdb.html:tmp.txt echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">'\ '<HTML><HEAD><TITLE>'BBDB of $$USER'</TITLE></HEAD><BODY><DL>'>$@ perl -npe 's/\&/&/g;s/^/<DT>/;\ if(!s/\t+/<\/DT><DD>/){s/$$/<\/DT>/;next}\ s/$$/<\/DD>/' $? >> $@ echo '</DL></BODY></HTML>'>>$@ tmp.txt:~/.bbdb emacs -batch -eval '(progn(bbdb "." t)(other-window 1)\ (setq backup-inhibited t)(write-file "/dev/stdout"))'|\ perl -nlwe 's/\S+\@public\.gmane\.org//g;s/\s+$$//;print'>$@ .INTERMEDIATE: tmp.txt As you can see I was doing marvelously until I noticed that the BBDB authors don't always place tabs on every line! If they were consistent, then I would be in <DT><DD> heaven. (Hey, DTDD rhymes with BBDB.) But no. ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ bbdb-info@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Next by Date: | error "record doubleplus unpresent!": 00000, Dan Jacobson |
|---|---|
| Next by Thread: | error "record doubleplus unpresent!": 00000, Dan Jacobson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |