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/fulfulde.gf | |
| parent | a401820e3718a936cc926c457d29ec145e189be5 (diff) | |
ported numerals to GF3 and encoded in UTF8; some problematic ones in todo
Diffstat (limited to 'examples/numerals/fulfulde.gf')
| -rw-r--r-- | examples/numerals/fulfulde.gf | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/examples/numerals/fulfulde.gf b/examples/numerals/fulfulde.gf new file mode 100644 index 000000000..ff694a36b --- /dev/null +++ b/examples/numerals/fulfulde.gf @@ -0,0 +1,53 @@ +concrete fulfulde of Numerals = { +-- include numerals.Abs.gf ; + +param Size = sg | pl | two; + +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 = ss ; + +oper ss : Str -> Form = \f -> {s = f ; size = pl } ; + +-- lin n1 = mkNum "go'o" ; +lin n2 = {s = "d.id.i" ; size = two } ; +lin n3 = mkNum "tati" ; +lin n4 = mkNum "nai" ; +lin n5 = mkNum "jowi" ; +lin n6 = mkNum "jowe:go" ; +lin n7 = mkNum "jowe:d.id.i" ; +lin n8 = mkNum "jowe:tati" ; +lin n9 = mkNum "jowe:nai" ; + +lin pot01 = {s = "go'o" ; size = sg }; +lin pot0 d = d ; +lin pot110 = ss "sappo" ; +lin pot111 = ss ("sappo" ++ "e" ++ "go'o") ; +lin pot1to19 d = ss ("sappo" ++ "e" ++ d.s) ; +lin pot0as1 n = n ; +lin pot1 d = ss (mkten d.size d.s) ; +lin pot1plus d e = ss ((mkten d.size d.s) ++ "e" ++ e.s) ; +lin pot1as2 n = n ; +lin pot2 d = ss (mkhund d.size d.s) ; +lin pot2plus d e = ss ((mkhund d.size d.s) ++ "e" ++ e.s) ; +lin pot2as3 n = n ; +lin pot3 n = ss (mkthou n.size n.s) ; +lin pot3plus n m = ss ((mkthou n.size n.s) ++ m.s) ; + +oper mkten : Size -> Str -> Str = \sz -> \attr -> + table {two => "no:gas" ; _ => "chappand.e" ++ attr } ! sz ; +oper mkhund : Size -> Str -> Str = \sz -> \attr -> + table {sg => "temerre" ; _ => "temed.d.e" ++ attr} ! sz ; +oper mkthou : Size -> Str -> Str = \sz -> \attr -> + table {sg => "ujine:re"; _ => variants {"ujine" ++ attr ; "ujine:je" ++ attr}} ! sz ; + +} |
