I Did Some Code!

Yesterday evening, I had an itch that needed scratching.

I was lacking some convenience features in an XMetaL-based authoring environment I am finalising for a client. There is a structure in the DTD that I am presenting as a table using some CSS in the editor, which makes perfect sense since it’s always going to be formatted that way when published. Presenting a structure as a table in XMetaL, however, means that XMetaL will hide the elements defined as table rows; it’s a side effect of how tables are presented in the editor and most editors have similar problems.

But where HTML or CALS tables are supported by XMetaL‘s customisations for tables (with adding or deleting rows or cells), my custom structure isn’t. It only looks like a table, it isn’t one because the actual semantics are quite different when studied in detail, and so the standard table functionality is not available. I needed custom code for my table-like structure.

Under normal circumstances, I’d simply walk over to a colleague, describe my problem and let him do his magic. There is something slightly twisted and evil in any object-oriented programming, and I usually want no part of it. You have an “object” that, depending on things you very often can’t see or would not fully fathom anyway, have special magical abilities you can use to solve your problem, which is all fine and well, but very often, you also have a seemingly similar “object” that doesn’t have those magical abilities. It instead possesses different ones, and because you are but a learner and only borrowing the magic wand, you eventually leave it be.

It’s evil.

But this time, I thought “how hard can it be?” and started writing, aided by other people’s efforts, an XMetaL Programmer’s Guide, and an Ouija board (no, not really; just Notepad ++). Soon, those magical objects appeared with their special abilities, and I started invoking magic using while loops and other features I know from scripting languages. Remember Mickey Mouse in Fantasia? That’s me, thinking “how hard can it be?”

The difference was that the magic here is better protected. Mickey never had access to Ctrl+Z.

Two hours later, I had my little convenience functions. The sorcerer has yet to return, but I am confident that my code works. The broom does what it’s told to do.

Eric Ericson Has Passed Away

Eric Ericson, world famous conductor and choir leader, has passed away at the age of 94. Some might remember him indirectly as he was responsible for arranging and conducting Ingmar Bergman’s The Magic Flute. Me, I’ve come to appreciate his interpretations of Bach’s oratorios, in particular the St Matthew Passion recording from 1994, arranged using contemporary instruments only.

He will be missed.

The Death of a Profession

The 36th edition (actually the 35th, but that’s another story) of the Göteborg International Film Festival started yesterday. I’ve been running projectors for the festival since 1987 and since 1990 as the projectionist at the festival’s main auditorium, the Draken.

This year (and to some extent, last) is different from every other year.

When I did my first year at the Draken, out of around 50 feature film prints most were in 35mm. Those that weren’t–I’m guessing one or two, without bothering to check the actual figures–were in 16mm. One (1) had stereo sound. All of the others were in mono.

This changed rapidly. In only a few years, all prints, excepting, perhaps, an occasional third-world effort, had stereo soundtracks. By 2000, several used Dolby Digital, Dolby’s six-channel digital sound.

And by 2010, all had Dolby Digital, excepting restored archive prints from bygone days, screened as parts of retrospectives and such.

When the digital sound arrived, we didn’t really consider it to be a revolution. Better sound, sure, but revolution, no. The prints were still in 35mm, handled about the same as always by the projectionists and causing the people who carried them from one cinema to the next bad backs and strained muscles. 35mm prints are heavy and carrying them around for ten days will cause you grief.

Last year, though, they installed a digital projector in my projection booth. Most films were still in 35mm, but I also ran a dozen or so shows digitally, many of them shorts. I’d upload a digital file from a hard drive to the server housed with the projector, “program” the show by dragging and dropping film clips, including the feature film itself, to a flow chart-like user interface on a flat screen, and finally click on Play when given the go ahead signal from the ushers.

The 35mm prints, on the other hand, are (and have been, for the last several decades) assembled from the six or so reels they arrive on to (usually) two larger ones. Those are then threaded into large projectors and handled manually, with a “change-over” taking place in the middle of the screening, hopefully invisible to the patrons.

Times, they are a-changin’.

Last year was just a mere warning of things to come, though. This year, the festival will be halfway over when I finally get to run my first 35mm print, and I’m only expecting four or five more of them.

But worse in some (to me) ever-so-subtle way is that they no longer provide us with a 35mm festival vignette to be spliced onto the first reel before shows. There are still a few 35mm prints, yes, but there are very few labs left to make them. One of the festival techs mentioned to me that he’d given up the idea after some research.

We had no vignettes when I worked my first festival in 1987, either. That was because the festival could not afford to make them. Now, 26 years later, they’d probably be too expensive to make, again. It doesn’t feel like a full circle to me, but I guess maybe it is.

Worst, however, is that with the death of the 35mm format follows the death of a century-old profession, that of the projectionist. We are being replaced by IT people, people who know their way around a computer. A colleague who’s been in the business since 1970 has real trouble using his new equipment at another festival cinema. He knows how to run a show but doesn’t realise that you can “click” on weird symbols on a screen to access functions he needs. A window to him is something you draw the blinds on during shows, a mouse a living thing and a menu something posh restaurants give you.

In only a year or two, we are not only no longer needed, what we do now can be done by IT people from home.

And that’s more than a little sad.

oXygen Customisation

I finally got around to doing an oXygen-based authoring environment for a client. Well, what I did is a DocBook variant, plus some bits and pieces that differ from the oXygen standard DocBook offering. Be as it may, it was among the easiest, most straight-forward customisations I’ve done, and I’ve done a few. I did receive a few pointers from George Bina from Syncro Soft, the makers of oXygen (thanks, George!), but I really am amazed by the ease with which this is done.

The authoring environment is integrated with eXist, the XML database, and that part was very easy. It’s all there. I didn’t have to do anything beyond creating a few collections, user groups and new users. It simply works, and yet I’m implementing the Release Candidate (of eXist) rather than a stable version.

Pretty damned cool.

No, I’m not associated with Syncro Soft or the eXist development, and I’m not paid by them in any way, quite the opposite, but I’ve always heard that you should give credit where credit is due.

XML Prague 2013

Somewhat surprisingly, the XML Prague 2013 paper I mentioned in an earlier post was accepted. Considering how little time I had to write it (“writing” is probably a bit of a stretch, “drafting” is more to the point), I have to say I’m extremely pleased. I’m very much looking forward to presenting it.

I’m going to talk about the eXist-based publishing solution I’ve been busy doing for a client. It began as a humble PDF-on-demand service but came to include a lot of stuff I find cool in and slightly outside the world of XML. There’s XProc, XQuery, RelaxNG, the process XML abstraction I have been working on, XML authoring, nightly mirroring from SQL databases to eXist, and more. And it all seems to come together quite well. I’ve had fun working with all this so I’m hoping it might be of interest to others, too.

XML Prague, of course, is worth a visit regardless. Think of it as an XML weekend about cool new things frequently starting with an “X”, interesting people, Czech hospitality (including Czech beer), and one of my favourite cities, Prague.

XML Prague Whitepaper Woes

Why is it that every year, I promise myself to finish my (XML Prague and otherwise) whitepapers early in order to avoid spending the last few nights before a deadline writing furiously but always end up doing just that, very frequently having to share whatever little time that remains with customer projects, family engagements and various Christmas preparations, seeing that yes, Christmas arrives at around the same time this year as every other?