Skip to content

Slotos/typographer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

In your Gemfile add

gem ‘typographer’

and run bundle install.

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

About

Simple rails plugin to make text more readable by applying some typographic rules to string.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Ruby 100.0%