January 13th, 2009

Apollo 4 on column of fire

Free stuff: Adobe Glyph List code

I’ve put some C code for Adobe Glyph List lookup at http://home.comcast.net/~crudfactory/glyph_name.2009.01.13.12.17.57.zip. The list is compressed as a trie packed into a 46816-byte string.

Normally I would have just used whatever map type was provided by the programming language (which for C would be a simple binary search, if I were to use C, which I wouldn’t), and my painful hands are punishing me for straying from that relatively low-labor technique. :)

There is a C source file for the table lookup. There is also C for converting multicomponent glyph names to Unicode strings (actually UTF-16BE), the writing of which reminded me not to use C. There’s also the Python code that converts the AGL to the packed trie and a copy of the Adobe Glyph List. Don’t be surprised if any of these programs look vaguely ML- or Lisp-like, with recursive calls where one usually sees loops.

All the stuff but the AGL is placed by me into the public domain. Bugs are left as an exercise for the reader.

I had considered patching Cairo to use this code but decided it wasn’t worth my labor, and also I was afraid of screwing things up. In my practice I’m always using pure glyph indices with left-to-right text, and don’t know how to avoid screwing up other schemes. You still ought to be able to use this code with Cairo, though, and thus avoid having to keep track of the source text—use the code to convert glyph indices to Unicode which you then feed to Cairo.
Apollo 4 on column of fire

What’s new is old

Ron Kuby’s show just started and he began with the subject of White Phosphorus. This reminded me that recently Kuby referred to WP as the new Napalm, but WP has been used by terrorists since the 19th century and as a military weapon since the First World War.

I don’t remember what they call the actual new Napalms.
Apollo 4 on column of fire

It was Sorensen

Returning to an ancient topic either hereabouts or chez barking_iguana:

Ron Kuby just said that Ted Sorensen is widely credited for Jack Kennedy’s ‘Ask not’ line, a part of the generally decent speech that I, unlike so many others, happen to dislike. (Superficially this is like TS Eliot claiming that Hamlet was a bad play, but more likely TS Eliot was a jerk.)

Previously I had said the line was written by Bill Ayers; apparently that is not the case.
Apollo 4 on column of fire

What we are up against

AAR’s Ron Kuby seems to have concluded that Barack Obama is having a gay Episcopalian bishop do the invocation at a pre-inaugural event as a lamentable ‘antidote’ to having Rick Warren do the invocation at the inauguration.

Barack Obama lives for nothing but to mollify irritable blowhards, you see. If I were Barack ‘Bender Bending Rodriguez’ Obama, I would instruct Ron Kuby to kiss my shiny metal ass.