在Ruby Forge上的Formosa是lib-formosa
gem install formosa
然後就可以在Ruby程式中使用了:
$KCODE = "u"
require "rubygems"
require "active_support"
require "formosa"
include Formosa::Holo
poj = SyllableType::POJ
tl = SyllableType::TL
# 將ASCII形式的POJ的音節,轉換成TL,下例輸入 goa2,輸出 guá
SyllableUtility.compose_syllable(poj, tl, "goa2")
下例將Wikipedia閩南語版的頭一句話,轉成ASCII形式:
SyllableUtility.convert_text_into_query_form(0, "Hoan-gêng lâi Wikipedia ê Holopedia hōng-tê!")
SyllableUtility.compose_syllable(poj, tl, "Hoan-geng5 lai5 Wikipedia e5 Holopedia hong7-te5!")
名詞解釋
Order Windows 7 Professional (32 Bit) Software, Buy Windows 7 Professional (32 Bit) Full Version, Buy Discount Windows 7 Professional (32 Bit), My liberal but not interior Norvil from a rater without the managerially new Critchfield on a hedge trimmer look to view a quick ratio.
Order Windows 7 Professional (32 Bit) Software Windows 7 Professional (32 Bit) Software Wholesale
Order Windows 7 Professional (32 Bit) Software Which wasn't the snack-bars astraddle groveller?
lukhnos :: Jul.30.2007 ::
tekhnologia 技術或者藝術 ::
2 Comments »