At last, I’ve written my own jQuery plugin.
My plugin tries to help lazy people (a noble cause) to write Ruby. It’s called rubyann – which is short for ruby annotation.
But you have to understand something about Ruby… hardly anyone knows about it – it’s quite obscure.
Ruby is part of XHTML 1.1 – and now part of HTML 5. Ruby characters are small reading aids that are placed on top of characters. They can be useful for any language, but my interest comes from Japanese furigana – here’s what Ruby looks like:
To get this seemingly simple annotation you must type XML into your HTML:
And that’s just for the 1st character! Multiply that XML by the number of ruby characters you want… and you’d better have an automated HTML ruby generator or rubyann…
Here’s what it looks like in my editor, RubyMine, with the coffeescript plugin