Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby wrapper for typograf.artlebedev.ru webservice

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

ArtTypograf

Universal tool for preparing russian text for web publishing. Ruby wrapper for typograf.artlebedev.ru webservice

Installation

Add this line to your application's Gemfile:

gem 'art_typograf'

And then execute:

$ bundle

Or install it yourself as:

$ gem install art_typograf

Usage

require "art_typograf"

ArtTypograf.process('text')

You can pass second argument - hash of options.

Default options

{
  :entity_type => :no, # :html, :xml, :no, :mixed
  :use_br => true,
  :use_p => true,
  :max_nobr => 3
}

TODO

  • support ruby 1.8 (force_encoding missing)
  • implement missing specs

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Something went wrong with that request. Please try again.