ruby.jsというのがネット上にある。
これはXHTMLとOperaが認識しないと動作しない模様だ。ないよりは全然いいのだけど。
自分なりにもちょっと改良して、以下のようにした。Opera9.02/Linuxで確認。
ruby {
display:inline-table !important;
text-align:center !important;
white-space:nowrap !important;
text-indent:0 !important;
margin:0 !important;
vertical-align:100% !important;
line-height:1 !important;
}
ruby>rb,ruby>rbc {
display:table-row-group !important;
line-height:1.2 !important;
}
ruby>rt,ruby>rbc+rtc {
display:table-header-group !important;
font-size:60% !important;
line-height:1.2 !important;
letter-spacing:0 !important;
}
ruby>rbc+rtc+rtc {
display:table-footer-group !important;
font-size:60% !important;
line-height:1 !important;
letter-spacing:0 !important;
}
rbc>rb,rtc>rt {
display:table-cell !important;
letter-spacing:0 !important;
}
rp {
display:none !important;
}
これをユーザスタイルシートとして読み込んで、このページを見てみるがよい(なぜか