module ZhongwenTools::Romanization::WadeGiles
Public Class Methods
split(str)
click to toggle source
# File lib/zhongwen_tools/romanization/wade_giles.rb, line 16 def self.split(str) regex = /(#{ ZhongwenTools::Romanization.detect_regex(:wg) }*)/ ZhongwenTools::Romanization.split_romanization(str, regex) end
to_wg(*args)
click to toggle source
# File lib/zhongwen_tools/romanization/wade_giles.rb, line 4 def self.to_wg(*args) str, from = args from ||= ZhongwenTools::Romanization.romanization?(str) ZhongwenTools::Romanization.convert str, :wg, from.to_sym end
wg?(str)
click to toggle source
# File lib/zhongwen_tools/romanization/wade_giles.rb, line 11 def self.wg?(str) regex = ZhongwenTools::Romanization.detect_regex(:wg) ZhongwenTools::Romanization.detect_romanization(str, regex) end