mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-25 18:58:56 -06:00
started thai resource
This commit is contained in:
26
lib/resource-1.0/thai/FileThai.hs
Normal file
26
lib/resource-1.0/thai/FileThai.hs
Normal file
@@ -0,0 +1,26 @@
|
||||
----------------------------------------------------------------------
|
||||
-- |
|
||||
-- Module : FileThai
|
||||
-- Maintainer : (Maintainer)
|
||||
-- Stability : (experimental)
|
||||
-- Portability : (portable)
|
||||
--
|
||||
--
|
||||
-- Convert transliterated Thai files into UTF-8 and pronunciation
|
||||
-----------------------------------------------------------------------------
|
||||
|
||||
-- AR 21/1/2007
|
||||
|
||||
module Main (main) where
|
||||
|
||||
import GF.Text.Thai
|
||||
import Data.List
|
||||
import System
|
||||
|
||||
|
||||
main = do
|
||||
xx <- getArgs
|
||||
case xx of
|
||||
"-p":f:[] -> thaiPronFile f Nothing
|
||||
f :[] -> thaiFile f Nothing
|
||||
_ -> putStrLn "usage: filethai (-p) File"
|
||||
Reference in New Issue
Block a user