This is as days pass by, by Stuart Langridge

And this is Roman dates in Wordpress, written , and concerning Web, Sundry Hacks, and Software

In honour of Tom's migration from Blosxom to Wordpress (thus joining the rest of us here in the twenty-first century), and in recognition of how I owe him a present and all, I've decided to alleviate his pain. You see, because Tom's a nutcase, he had all the dates displayed on his previous Blosxom weblog in the Latin form, using a Perl program to convert dates to Roman that he developed. Clever and elegant. Pointless, natch, but he seemed to enjoy it. However, the move to Wordpress has broken that, because Wordpress isn't written in Perl, it's written in PHP. So Perl plugins don't work for it. So, I have taken it upon myself to convert his Perl Roman date converter to a Wordpress PHP plugin. Download the Wordpress Roman Dates plugin here. Install by dropping into your wp-content/plugins folder and naming it romandates.php. Nota bene primus (since we're doing Latin stuff): this isn't very idiomatic PHP; it's a direct conversion from the (not very idiomatic either) Perl original Nota bene secundus: this would have been impossible for anyone who wasn't me, because Tom didn't actually publish the source of his Perl program. But I'm his sysadmin, heh heh heh.

Comments

Tom

Thank you and installed with pride! Excellentissimum est! And it saves me a lot of time I was contemplating putting into this. As to the point of its glorious pointlessness, I need only point out the point that Cicero made on this point: "Supervacuus est pulcher". Probably. It might have been Cato. Anyway, thank you for describing any of my code as "clever and elegant". At least it's better than the good old days of "LET rabbit=1" and "FOR n=1 to dog STEP cat".

Two things though:

1. I did publish the original source. It is available locally on Aurochs.org, but is probably best accessed through the Unofficial Blosxom User Group version 2 plugin registry under date-roman-v0i1.

2. The original template I had on Aurlog displayed the date in sane Gregorian format when you hovered the mouse over it, using the title attribute of a span tag or something elegant like that. I'm not sure it would be wise to add that to the plugin, thinking about it, but when I merciless hack the template to pieces at some point, I'll try to include that.

Roman dates return! « Aurlog

[...] yesterdays lament at the loss of my lovely Roman dates, sil has kindly converted my old Blosxom plugin (get the plugin itself from the Unofficial Blosxom User [...]

sil

Aha. My apologies. I looked on the kalends webpage and found no link -- might wanna add one.

Putting the actual date in a title attribute will, as you note, require template hacking...

Mark .B.

Thanks for the plugin, but can someone pls tell me who tom is?

Google found this blog very quickly.. i was looking for that.

thanks, mark.

This website belongs to Stuart Langridge. Contact details are available. Don't eat yellow snow. Valid HTML5, at least in theory, except for the bits that aren't because I'm that futuristic that I'm ahead of the spec, oh yes. HTML5 help from Bruce Lawson, among others. Fonts from the superb FontSquirrel. End.