index.txt

Path: website/index.txt
Last Update: Fri Apr 26 07:51:59 +0000 2013

h1. formosa

&x2192; ‘Taiwanese language processing‘

h2. What

Formosa is a Ruby library for processing Taiwanese languages. Major languages spoken in Taiwan include Holo, Hakka, Mandarin and those of the indigenous people. Formosa is the Ruby branch of the lib-formosa project (code.google.com/p/lib-formosa/).

Currently, we focus on the processing of the Holo (Southern Min) language, with necessary tools such as SyllableComposer available for general use.

h2. Installing

<pre syntax="ruby">sudo gem install formosa</pre>

h2. The basics

h2. Demonstration of usage

<pre> $KCODE="u" # set the Ruby environment to use UTF-8 require "rubygems" require "formosa" include Formosa::Holo poj = SyllableType::POJ tl = SyllableType::TL SyllableUtility.compose_syllable(poj, tl, "goa2") # => guá SyllableUtility.compose_syllable(tl, poj, "gua2") # => goá </pre>

h2. Forum

h2. How to submit patches

Read the "8 steps for fixing other people‘s code":drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.

The trunk repository is svn://rubyforge.org/var/svn/formosa/trunk for anonymous access.

h2. License

This code is free to use under the terms of the New BSD license.

h2. Contact

Comments are welcome. Send an email to lukhnos (at) gmail (dot) com.

[Validate]