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

truty

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

truty

  • 1.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Truty

Gem Version Test Coverage Code Climate Build Status Dependency Status security

A simple string converter, which aims to fix all the typography imperfections of the plain text.

The current version of the project fixes following things:

  • Hyphenation
  • Typographic quotes
  • Non-breaking spaces
  • Ellipses
  • Trailing spaces
  • Widows
  • etc.

Installation

The most simple way to install Truty is using Ruby gems.

gem install truty

Usage

The gem contains an executable. For now it has only one parameter, language. Other arguments are files which will be converted and outputted. If no file is supplied, then the standard input is converted.

truty -l czech file.txt

Or:

truty --language english file.txt

Currently suported languages:

  • Czech
  • English (partially)
  • French (partially)

Library

If you want to use typography fixes and improvements in your code then add:

require 'truty'

Main method for converting your string is:

string = "Hello world!"
puts Truty.fix(string, :english)

Full documentation can be found here:

http://www.rubydoc.info/gems/truty

Authors

FAQs

Package last updated on 18 May 2017

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