summaryrefslogtreecommitdiff
path: root/examples/numerals/thai.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-06-25 16:54:35 +0000
committeraarne <aarne@cs.chalmers.se>2008-06-25 16:54:35 +0000
commite9e80fc389365e24d4300d7d5390c7d833a96c50 (patch)
treef0b58473adaa670bd8fc52ada419d8cad470ee03 /examples/numerals/thai.gf
parentb96b36f43de3e2f8b58d5f539daa6f6d47f25870 (diff)
changed names of resource-1.3; added a note on homepage on release
Diffstat (limited to 'examples/numerals/thai.gf')
-rw-r--r--examples/numerals/thai.gf69
1 files changed, 0 insertions, 69 deletions
diff --git a/examples/numerals/thai.gf b/examples/numerals/thai.gf
deleted file mode 100644
index 94bbe3982..000000000
--- a/examples/numerals/thai.gf
+++ /dev/null
@@ -1,69 +0,0 @@
-include numerals.Abs.gf ;
-
--- Thai transliteration, produces thaiU.gf by GF/Text/Thai.hs
--- AR 28/12/2006
-
-flags coding=utf8 ;
-
-lincat
- Numeral = {s : Str} ;
- Digit = {s : DForm => Str} ;
- Sub10 = {s : DForm => Str} ;
- Sub100 = {s : NForm => Str} ;
- Sub1000 = {s : NForm => Str} ;
- Sub1000000 = {s : Str} ;
-
-lin
- num x = x ;
-
- pot01 = mkNum "hnvg" "hnvg" "eOSd" ;
-
- n2 = mkNum "sOg" "yi:T1" "sOg" ;
- n3 = regNum "sa:m" ;
- n4 = regNum "si:T1" ; -- T1 = E48 '
- n5 = regNum "hT2a:" ; -- T2 = E49 9
- n6 = regNum "ho?k" ;
- n7 = regNum "ecSd" ; -- S = E47 w
- n8 = regNum "e'pd" ;
- n9 = regNum "eka:" ;
-
-
- pot0 d = d ;
-
- pot110 = {s = sip} ;
- pot111 = {s = table {
- Unit => ["sib eOSd"] ;
- Thousand => ["hnvg hmv:T1n hnvg p2an"]
- }
- } ;
- pot1to19 d = {s = table {
- Unit => "sib" ++ d.s ! After ;
- Thousand => ["hnvg hmv:T1n"] ++ d.s ! Indep ++ "p2an"
- }
- } ;
- pot0as1 d = {s = \\n => d.s ! Indep ++ phan ! n} ;
- pot1 d = {s = \\n => d.s ! ModTen ++ sip ! n} ;
- pot1plus d e = {
- s = \\n => d.s ! ModTen ++ sip ! n ++ e.s ! After ++ phan ! n
- } ;
- pot1as2 n = n ;
- pot2 d = {s = \\n => d.s ! Indep ++ roy ! n} ;
- pot2plus d e = {s = \\n => d.s ! Indep ++ roy ! n ++ e.s ! n} ;
- pot2as3 n = {s = n.s ! Unit} ;
- pot3 n = {s = n.s ! Thousand} ;
- pot3plus n m = {s = n.s ! Thousand ++ m.s ! Unit} ;
-
-param
- DForm = Indep | ModTen | After ;
- NForm = Unit | Thousand ;
-
-oper
- mkNum : Str -> Str -> Str -> {s : DForm => Str} = \x,y,z ->
- {s = table {Indep => x ; ModTen => y ; After => z}} ;
- regNum : Str -> {s : DForm => Str} = \x ->
- mkNum x x x ;
-
-
- sip = table {Unit => "sib" ; Thousand => "hmv:T1n"} ;
- roy = table {Unit => "rT2Oy" ; Thousand => "e'sn"} ;
- phan = table {Unit => [] ; Thousand => "p2an"} ;