0.0
No commit activity in last 3 years
No release in over 3 years
This gem makes text more readable by applying some typographic rules to string. This is a fork of original typography gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.0.0

Runtime

 Project Readme

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