Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typographer

Package Overview
Dependencies
Maintainers
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typographer

  • 0.5
  • Rubygems
  • Socket score

Version published
Maintainers
4
Created
Source

==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 (c) 2008 Igor Gladkoborodov, released under the MIT license Modified by Antony Versal

FAQs

Package last updated on 08 Aug 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc