diff options
| author | aarne <aarne@cs.chalmers.se> | 2008-08-04 18:26:48 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2008-08-04 18:26:48 +0000 |
| commit | a9893f45724299e6cc773bbb2fa2cf315fe85206 (patch) | |
| tree | b5c6222b2422a3db7bf4dd676aa4872adf22daf4 /examples/numerals/lotuxo.gf | |
| parent | a401820e3718a936cc926c457d29ec145e189be5 (diff) | |
ported numerals to GF3 and encoded in UTF8; some problematic ones in todo
Diffstat (limited to 'examples/numerals/lotuxo.gf')
| -rw-r--r-- | examples/numerals/lotuxo.gf | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/examples/numerals/lotuxo.gf b/examples/numerals/lotuxo.gf new file mode 100644 index 000000000..bd96817e7 --- /dev/null +++ b/examples/numerals/lotuxo.gf @@ -0,0 +1,64 @@ +concrete lotuxo of Numerals = { +-- include numerals.Abs.gf ; + +param Size = sg | pl ; + +oper Form = {s : Str ; size : Size } ; + +lincat Numeral = {s : Str} ; +lincat Digit = Form ; +lincat Sub10 = Form ; +lincat Sub100 = Form ; +lincat Sub1000 = Form ; +lincat Sub1000000 = {s : Str} ; +lin num x0 = + {s = x0.s} ; -- TODO: Encoding + +oper mkNum : Str -> Form = \mbili -> + {s = mbili; size = pl }; + +-- N [ng] +-- E epsilon +-- I i without dot +-- O IPA for o in cod + +-- lin n1 = mkNum "âbotye" ; +lin n2 = mkNum "ârrexai" ; +lin n3 = mkNum "xunixoi" ; +lin n4 = mkNum "aNwan" ; +lin n5 = mkNum "miet" ; +lin n6 = mkNum "IllE" ; +lin n7 = mkNum "xattarIk" ; +lin n8 = mkNum "xottoxunik" ; +lin n9 = mkNum "xOttONwan" ; + +oper xo : Str = pre {"xO" ; + "xo" / strs {"m" ; "xu" ; "xo"} ; + "x'" / strs {"â" ; "a"}} ; + +oper ss : Str -> Form = \s1 -> {s = s1 ; size = pl} ; + +lin pot01 = + {s = "âbotye" ; size = sg }; +lin pot0 d = d ; +lin pot110 = ss "'tOmOn" ; +lin pot111 = ss ("'tOmOn" ++ xo ++ "âbotye") ; +lin pot1to19 d = ss ("'tOmOn" ++ xo ++ d.s ) ; +lin pot0as1 n = n ; +lin pot1 d = ss ("atOmwana" ++ d.s ) ; +lin pot1plus d e = ss ("atOmwana" ++ d.s ++ xo ++ e.s ) ; +lin pot1as2 n = n ; +lin pot2 d = ss (mkessixa d.size d.s) ; +lin pot2plus d e = ss ((mkessixa d.size d.s) ++ "ikO" ++ e.s) ; +lin pot2as3 n = {s = n.s } ; +lin pot3 n = {s = mktau n.size n.s } ; +lin pot3plus n m = {s = (mktau n.size n.s) ++ "ikO" ++ m.s} ; + +oper mkessixa : Size -> Str -> Str = \sz -> \attr -> + table {pl => "EssIxa" ++ attr ; + sg => variants {"EssIxa" ++ "âbotye"; "atOmwana" ++ "'tOmOn"}} ! sz ; +oper mktau : Size -> Str -> Str = \sz -> \attr -> + table {pl => "tausand" ++ attr ; + sg => variants {"tausand" ++ "âbotye"; "EssIxa" ++ "'tOmOn"}} ! sz ; + +} |
