module Typogrowth

String typographing with language support.

Parses and corrects the typography in strings. It supports different language rules and user rules customization.

The package also monkeypatches `String` class with both `typo` and `typo!` methods.

Category

Ruby

Author

Alexei Matyushkin <am@mudasobwa.ru>

Copyright

2013 The Authors

License

MIT License

Link

rocket-science.ru/

Source

github.com/mudasobwa/typogrowth

Constants

VERSION

Public Class Methods

defuse(str, elements, shadows: []) click to toggle source
# File lib/typogrowth.rb, line 205
def self.defuse str, elements, shadows: []
  Parser.defuse str, elements, shadows: shadows
end
is_ru?(str, shadows: []) click to toggle source
# File lib/typogrowth.rb, line 201
def self.is_ru? str, shadows: []
  Parser.is_ru? str, shadows: shadows
end
parse(str, lang: :default, shadows: [], sections: nil) click to toggle source
# File lib/typogrowth.rb, line 193
def self.parse str, lang: :default, shadows: [], sections: nil
  Parser.parse str, lang: lang, shadows: shadows, sections: sections
end
parse!(str, lang: :default, shadows: [], sections: nil) click to toggle source
# File lib/typogrowth.rb, line 197
def self.parse! str, lang: :default, shadows: [], sections: nil
  Parser.parse! str, lang: lang, shadows: shadows, sections: sections
end