Simple rails plugin to make text more readable by applying some typographic rules to string.
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 18 commits ahead, 1 commit behind fxposter:master.
Latest commit cef12d9 Nov 16, 2011 @brain-geek brain-geek Fix travis image
Permalink
Failed to load latest commit information.
autotest
lib
spec
.gitignore
.travis.yml
Changelog
Gemfile
MIT-LICENSE
README.rdoc
Rakefile
TODO
init.rb
typographer.gemspec

README.rdoc

Typographer

Simple plugin to make text more readable by applying some typographic rules to string. It is intended to use for russian texts, but some english typography rules are also supported.

Example

You can use ty helper in your views:

ty 'This is a page title' # => 'This is a page title'

You can define custom formats for typography rules:

TypographerHelper.register(:article, [TypographerHelper::Parsers::SimpleFormat, TypographerHelper::Parsers::Basic])

And use it:

ty 'This is article text with custom typography', :article

Plugin also replaces h and simple_format helpers to apply typography to their results.

Installation

In your Gemfile add

gem 'typographer'

and run bundle install.

Copyright © 2008 Igor Gladkoborodov, released under the MIT license Modified by Antony Versal