Home / Blog Menu ↓

Blog: #web

52 posts / tag feed / about the blog / archive / tags

Ruby glosses

A while ago I came across the CSS3 Ruby spec, but it seemed to only apply to East Asian texts. Then today I ran across it again (see User Agent Man’s post) and realized it’s perfect for glossing texts.

For example, here are the first few verses of the Chapter 2 exercise in Bennett’s An Introduction to the Gothic Language:

  1. In ( in, into ) dagam ( days ) Hērōdis ( of Herod ) þiudanis ( king ) qēmun ( came (3 pl.) ) Iōsēf ( Joseph ) jah ( and, also ) Maria ( Mary ) in ( into ) Bēþlahaím ( Bethlehem ) .
  2. jah ( and, also ) jáinar ( there, yonder ) gabar ( bore (3 sg.) ) Maria ( Mary ) Iēsu ( Jesus ) .
  3. jah ( and, also ) haírdjōs ( herdsmen ) wēsun ( were (3 pl.) ) jáinar ( there, yonder ) ana ( on, upon, in ) akra ( field )

The syntax:


    In
     (
    in, into
    ) 


    dagam
     (
    days
    ) 


    Hērōdis
     (
    of Herod
    ) 

Kind of verbose, though. If I end up using this a lot, I’ll probably write a preprocessor that lets me use abbreviated syntax — something like this:

In::(in, into) dagam::(days) Hērōdis::(of Herod)

Sidenote: I was originally using a combining macron for the macrons (U+0304), but Georgia doesn’t do the combining correctly. Times New Roman does, though. Weird. I ended up just going with the precomposed characters. Oh well.


Reply via email

Pedigree chart sharing

I needed a web app to share pedigree charts with my sister on the other side of the country, so I wrote one. It’s called Pedigree, and all I have to do now is fill in the chart online, save it, and send the URL to my sister.

Here’s what the pedigree looks like:

You can put anything you want in the boxes, actually, which means you can do family pedigree charts that look like this:

Or you can make a chart listing each person’s occupation, or their age at death, or whatever else you want. It’s flexible.

Pedigree is still very much a work in progress — you can only do three-generation charts for now, and all pedigree charts are public to anyone who knows the URL, you need a Google Account to sign in, and the code isn’t very beautiful — but it’s a start.

Behind the scenes

I took those table-based pedigree charts I worked on a few years ago and wrote a Python program to automatically generate them, then expanded it into a Google App Engine app yesterday.

The Pedigree code is open source and is on Github. If anyone wants to help out, feel free to tackle any of the issues posted there. (I also feel compelled to add that the chart display algorithm isn’t particularly beautiful.)

I do plan to extend it eventually to take JSON or XML input so you can automatically generate a pedigree from another program, rather than having to type it in manually. And I want to come up with a better manual input method.


Reply via email