Module: Yosina::Transliterators::RomanNumerals
- Defined in:
- lib/yosina/transliterators/roman_numerals.rb,
lib/yosina/transliterators/roman_numerals_data.rb
Overview
Replace roman numeral characters with their ASCII letter equivalents
Defined Under Namespace
Classes: Transliterator
Constant Summary collapse
- ROMAN_NUMERAL_MAPPINGS =
Generated mapping data from roman-numerals.json
{ "\u{2160}" => ['I'], "\u{2170}" => ['i'], "\u{2161}" => ['I', 'I'], "\u{2171}" => ['i', 'i'], "\u{2162}" => ['I', 'I', 'I'], "\u{2172}" => ['i', 'i', 'i'], "\u{2163}" => ['I', 'V'], "\u{2173}" => ['i', 'v'], "\u{2164}" => ['V'], "\u{2174}" => ['v'], "\u{2165}" => ['V', 'I'], "\u{2175}" => ['v', 'i'], "\u{2166}" => ['V', 'I', 'I'], "\u{2176}" => ['v', 'i', 'i'], "\u{2167}" => ['V', 'I', 'I', 'I'], "\u{2177}" => ['v', 'i', 'i', 'i'], "\u{2168}" => ['I', 'X'], "\u{2178}" => ['i', 'x'], "\u{2169}" => ['X'], "\u{2179}" => ['x'], "\u{216a}" => ['X', 'I'], "\u{217a}" => ['x', 'i'], "\u{216b}" => ['X', 'I', 'I'], "\u{217b}" => ['x', 'i', 'i'], "\u{216c}" => ['L'], "\u{217c}" => ['l'], "\u{216d}" => ['C'], "\u{217d}" => ['c'], "\u{216e}" => ['D'], "\u{217e}" => ['d'], "\u{216f}" => ['M'], "\u{217f}" => ['m'] }.freeze
Class Method Summary collapse
-
.call(options = {}) ⇒ Transliterator
Factory method to create a transliterator.
Class Method Details
.call(options = {}) ⇒ Transliterator
Factory method to create a transliterator
44 45 46 |
# File 'lib/yosina/transliterators/roman_numerals.rb', line 44 def self.call( = {}) Transliterator.new() end |