Hah, funny – I’m working at uni and garnome has failed to install the libecal documentation, so I search for ‘libecal documentation’. The first hit is an old blog posting of mine, saying how bad it is 🙂]]>
Done lots of work on gtkhtml2 and Web in the past few weeks – I’ll be taking a break from this for a little while though to concentrate on Contacts and Dates in time for FOSDEM. Some of the patches I’ve written are already in, or are heading to gtkhtml2 CVS, others won’t hit for a little while I imagine. The current maintainer, dobey, has been a great help though.
Managed to fix a long-time odd bug of gtkhtml2 yesterday – That of altering the colours of surrounding widgets in the window. Ends up the code to set the background colour of pages (which follows the theme’s base colour) was broken. Also fixed margin inheritance, min/max width/height on images. These patches are mostly in CVS already and will be completely in soon I should think 🙂
Perhaps, one day, the Gnome browser will be gtkhtml2-based 😉
So, another new page – and with proper hosting too! As you can hopefully see, I’ve flawlessly transitioned (thanks mostly to Ross Burton) from blogger to PyBlosxom. If anyone’s interested in the script I wrote to do this, here it is (I warn you, it isn’t pretty!):
A script to convert blogger html to PyBlosxom entries
12345678910111213141516171819202122232425262728 for file in */*/*.html; doexport filename=`basename $file|sed -e 's:\.html::'`-`dirname $file|sed -e 's:/.*::'`-`dirname $file|sed -e 's:.*/::'`-`grep \"date\-header\" $file|sed -e 's:.*, [^ ]* ::'|sed -e 's:,.*::'`-00-00.txtecho "Generating $filename"export var=0cat $file|while read line; doif [ $var -eq 0 ]; thenif [ "`echo $line|grep '<div class=\"post-body\">'`" -o "`echo $line|grep '<h3 class=\"post-title\">'`" ]; thenexport var=1line=`echo $line|sed -e "s:.*<div class=\"post-body\">::"|sed -e "s:.*<h3 class=\"post-title\">::"`fifiif [ $var -gt 0 ]; thenwhile [ "`echo $line|grep '</div>'`" -o "`echo $line|grep '</h3>'`" ]; doline=`echo $line|sed -e "s:</div>::"|sed -e "s:</h3>::"`export var=`expr $var \- 1`donewhile [ "`echo $line|grep '<div'`" -o "`echo $line|grep '<h3'`" ]; doline=`echo $line|sed -e "s:<div[^>]*>::"|sed -e "s:<h3[^>]*>::"`export var=`expr $var \+ 1`doneif echo $line|grep -q '\w'; thenecho $line|sed -e "s:</*div[^>]*>::g"|sed -e "s:</h3>::g" >> pyblosxom/$filenamefifidonedoneunset varunset filename