gtkhtml2 JavaScript?

I handed in my progress report for my dissertation, and one of the sentiments made in it was that the methods I’m using for small-screen-rendering (which is the subject of the dissertation) would likely not work with gtkhtml2 due to its lack of JavaScript support… But like many a coder, as soon as those words were committed to hand-in, I realised it was a challenge that I had to take on 🙂 And so, the very preliminary results (using spidermonkey):
This html:

JavaScript test:
This should appear after the Hello World.

produces this result:

As it should. At the moment, only document.write is handled, but given that’s probably one of the hardest functions to handle, I’ve got a good start 🙂 As an aside, also implemented tooltips with gtkhtml2 – I should probably patch liferea for that, it’s the only reason I use the mozilla engine in it…

]]>

Web, Contacts, Dates, etc.

Been a while since my last update… Lots of work has gone into Contacts since the release – highlights include general bug-fixing, single-instance code, command-line vCard loading and gnome-vfs support. It’s quite nice as the default vCard handler, as you can click on a vCard link and have it open in Contacts and optionally imported into your evo address book. 0.2 will be quite a step up from 0.1 in terms of functionality. Dates has progressed quite a lot too – You can now edit all the important aspects of events (such as summary, time, location, details). There have been fixes to do with timezones and it now supports multiple calendars (although at the moment, there is no UI to pick them – WIP). Hopefully it’ll be fully functioning within a month or two and I can make a release to go alongside Contacts (of which 0.2 will probably be coming soon). The drawing code still needs some major work though unfortunately. Web has received a major overhaul over the past couple of days – I’ve abstracted all the rendering code and made the rendering engine a plug-in system using g_module. I plan on writing a mozilla plug-in, as seeing as it’s related to my dissertation, I need a well-featured stable platform to work with and gtkhtml2 doesn’t yet cut it (perhaps I’ll have some time to hack on it in the holidays, like I wanted to a while ago). I’m very busy at the moment with uni work, again… They like to push us at Southampton. What gets me is that none of the work is incredibly hard, it’s just there’s a lot of it and it’s all scheduled to be handed in at the exact same time. Very inconvenient. Work aside, had a great Christmas and new year, got to catch up with a couple of friends, spend some time with my girlfriend, play some games. Got a Nintendo DS for Christmas and its really revived my love for gaming – it’s nice to play something that isn’t just the same old recycled crap again (or if it is recycled, it wasn’t crap – in the case of Mario 64 :)). Oh, and looks like I’m quite well suited to Computer Science, according to QuizFarm.com:

You scored as Mathematics. You should be a Math major! Like Pythagoras, you are analytical, rational, and when are always ready to tackle the problem head-on!

Mathematics

92%

Philosophy

83%

Engineering

83%

Theater

75%

Journalism

75%

Psychology

75%

Sociology

75%

Linguistics

67%

English

67%

Art

50%

Dance

42%

Chemistry

42%

Anthropology

42%

Biology

25%

What is your Perfect Major? (PLEASE RATE ME!!<3)
created with QuizFarm.com

]]>