module ZhongwenTools::Romanization::ZhuyinFuhao
Public Class Methods
bpmf?(str)
click to toggle source
# File lib/zhongwen_tools/romanization/zhuyin_fuhao.rb, line 11 def self.bpmf?(str) regex = ZhongwenTools::Regex.bopomofo ZhongwenTools::Romanization.detect_romanization(str, regex) end
split(str)
click to toggle source
# File lib/zhongwen_tools/romanization/zhuyin_fuhao.rb, line 17 def self.split(str) regex = /(#{ZhongwenTools::Regex.bopomofo}*)/ ZhongwenTools::Romanization.split_romanization(str, regex) end
to_bpmf(*args)
click to toggle source
# File lib/zhongwen_tools/romanization/zhuyin_fuhao.rb, line 4 def self.to_bpmf(*args) str, from = args from ||= ZhongwenTools::Romanization.romanization?(str) ZhongwenTools::Romanization.convert str, :bpmf, from.to_sym end