Module: Yosina::Transliterators::HiraKataComposition

Includes:
HiraKataTable
Defined in:
lib/yosina/transliterators/hira_kata_composition.rb

Overview

Hiragana/katakana composition transliterator

Defined Under Namespace

Classes: Transliterator

Constant Summary collapse

VOICED_SOUND_MARK_MAPPINGS =
Hash[VOICED_CHARACTERS].freeze
SEMI_VOICED_SOUND_MARK_MAPPINGS =
Hash[SEMI_VOICED_CHARACTERS].freeze
COMBINING_MARKS =

Combining mark mappings for hiragana and katakana

{
  "\u3099" => VOICED_SOUND_MARK_MAPPINGS,
  "\u309A" => SEMI_VOICED_SOUND_MARK_MAPPINGS
}.freeze
NON_COMBINING_MARKS =

Non-combining mark mappings

{
  "\u3099" => VOICED_SOUND_MARK_MAPPINGS,
  "\u309A" => SEMI_VOICED_SOUND_MARK_MAPPINGS,
  "\u309B" => VOICED_SOUND_MARK_MAPPINGS,
  "\u309C" => SEMI_VOICED_SOUND_MARK_MAPPINGS
}.freeze

Constants included from HiraKataTable

Yosina::Transliterators::HiraKataTable::HIRAGANA_KATAKANA_SMALL_TABLE, Yosina::Transliterators::HiraKataTable::HIRAGANA_KATAKANA_TABLE, Yosina::Transliterators::HiraKataTable::SEMI_VOICED_CHARACTERS, Yosina::Transliterators::HiraKataTable::VOICED_CHARACTERS

Class Method Summary collapse

Methods included from HiraKataTable

generate_semi_voiced_characters, generate_voiced_characters

Class Method Details

.call(options = {}) ⇒ Transliterator

Factory method to create a hiragana/katakana composition transliterator

Parameters:

  • options (Hash) (defaults to: {})

    Configuration options

Returns:



98
99
100
# File 'lib/yosina/transliterators/hira_kata_composition.rb', line 98

def self.call(options = {})
  Transliterator.new(options)
end