TypeRight

________________________________________________________________
        ______                       ____
          /                          /    )   ,         /
---------/---------------__----__---/___ /--------__---/__--_/_-
        /      /   /   /   ) /___) /    |   /   /   ) /   ) /
_______/______(___/___/___/_(___ _/_____|__/___(___/_/___/_(_ __
                 /   /                            /
             (_ /   /                         (_ /

Makes text more pleasant for the eyes.

Turns this:

And so... "Why?" -- He replied
Because -> this! And => this!
Also, notice some math: Pi + 2 * 180 / 2.

Into this:

And so… “Why?” — He replied.
Because → It’s cool! And ⇒ I like beautiful text!.
Also, notice some math: π + 2 × 180 ÷ 2.

Install

gem install typeright

Use

Typeright.s(a_text)

Todo

  • Spaces

Won't Do

Non UTF-8 modifications. Eg. Small Caps.

For that complement with a client-side lib:

Inspiration and thanks

https://github.com/davidmerfield/Typeset

Also nice

http://webtypography.net/ http://kyleamathews.github.io/typography.js/#/