Large

Vertical-izer

By kailapis Last update May 6, 2010 — Installed 140 times.


Script Summary: Ever wanted to read Japanese text vertically in Opera/Firefox? 縦書き表示に挑戦。

Version: 1.0.6

Script homepage

Thumb Thumb

Press ctrl+alt+G to make the text vertical. This can be altered in the script easily by editing the indicated line in the source. Once the script is triggered, it will change the mouse wheel to scroll sideways. Please adjust the page's vertical position by using the scroll bar.

Currently only works on Opera 10.5 and Firefox 3.6. The font Meiryo is highly recommended as the styles applied are somewhat specific to that font, but it will still display okay in case Meiryo is not available.

ページを縦書きにするにはctrl+alt+Gを同時に押してください。

現在、Opera 10.5とFirefox 3.6で動作を確認しています。メイリオのフォントに特化しているので、メイリオがあるのが望ましいですが、このフォントがない場合でもまあまあ綺麗に表示されます。

Inner Workings

This script uses regular expression string replacement to surround each character with a fake element. CSS transforms are applied once to the body to rotate the page 90 degrees clockwise and then to each element to rotate all characters 90 degrees counter-clockwise to make the characters right-side-up.

It uses a predefined set of characters and symbols like punctuation marks to apply extra CSS transforms to translate the symbol to its appropriate position. This set is currently only a basic one for Japanese.