Archive for the ‘MarkUp’ Category

OMFG, Ruby in CSS2

Friday, February 24th, 2006

今日は(こんにちは)

See? Who needs Ruby CSS when you can implement it with good old CSS2?

For those of you without adequite CSS support, the characters in parentheses would be above those before them, like real furigana.

Here’s the CSS I used: ruby.css. I found it the other week via Wikipedia:Ruby characters and immediately added it to my userContent.css.

WordPress is dumb

Monday, December 5th, 2005

For some reason WordPress replaces " with \" between pre tags. I haven’t yet worked out why (or how to stop it).

Watch it in action:

"

The above is literally <pre>"</pre>. See? It’s very exciting.

It is the reason my homepage doesn’t validate (it kills attributes inside pres). This sort of thing is why I disagree with generating XML without an XML parser: it’s very difficult to stop it becoming ill-formed at the drop of a hat. It doesn’t matter with XHTML served as text/html, but I don’t agree with that either.

Update: It was fixed a few weeks ago. See Ticket #1793 double quotes escaped inside pre tags.