Skip to content

Bookmarklet to convert Firefox's reader view to a vertical reader mode

License

Notifications You must be signed in to change notification settings

gyng/rtl-reader-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rtl-reader-view

Screenshot

Vertical reading mode for Firefox. Activate Firefox's reader view and then use this to convert it to top-down, right-to-left.

This is mainly a proof of concept. Not all vertical text CSS rules are supported by Firefox yet: see the draft specification and Styling vertical Chinese, Japanese, Korean and Mongolian text for details.

Usage

See the project page.

Notes

Supported features

  • Reader view controls
  • Toggle button in reader view
  • Scroll direction (wheel, home keys)
  • Defaults to ja fonts, overridden by lang=zh
  • Vertical punctuation
  • text-emphasis on <emp> tags 圏点, 着重号
  • Simulated upright 縦中横 (tate chu yoko) for digits: text-combine-upright: digits 4; (native not supported in Firefox)

Unsupported

  • Upright list markers
  • Underlines on the left: text-underline-position: left;
  • Hanging punctuation: hanging-punctuation: end;

Other notes

  • Times override for Georgia old-style numerals using @font-face and unicode-range
  • Full-width commas in Chinese text are still curly instead of being ideographic commas

Building index.html

make page
watch -n 0.5 make page