Module: Yosina::Transliterators::Spaces
- Defined in:
- lib/yosina/transliterators/spaces.rb
Overview
Replace various space characters with plain whitespace
Defined Under Namespace
Classes: Transliterator
Constant Summary collapse
- SPACES_MAPPINGS =
Generated mapping data from spaces.json
{ "\u{a0}" => ' ', "\u{180e}" => '', "\u{2000}" => ' ', "\u{2001}" => ' ', "\u{2002}" => ' ', "\u{2003}" => ' ', "\u{2004}" => ' ', "\u{2005}" => ' ', "\u{2006}" => ' ', "\u{2007}" => ' ', "\u{2008}" => ' ', "\u{2009}" => ' ', "\u{200a}" => ' ', "\u{200b}" => ' ', "\u{202f}" => ' ', "\u{205f}" => ' ', "\u{3000}" => ' ', "\u{3164}" => ' ', "\u{ffa0}" => ' ', "\u{feff}" => '' }.freeze
Class Method Summary collapse
-
.call(options = {}) ⇒ Transliterator
Factory method to create a spaces transliterator.
Class Method Details
.call(options = {}) ⇒ Transliterator
Factory method to create a spaces transliterator
74 75 76 |
# File 'lib/yosina/transliterators/spaces.rb', line 74 def self.call( = {}) Transliterator.new() end |