summaryrefslogtreecommitdiff
path: root/examples/numerals/amharic.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/amharic.gf
parentb96b36f43de3e2f8b58d5f539daa6f6d47f25870 (diff)
changed names of resource-1.3; added a note on homepage on release
Diffstat (limited to 'examples/numerals/amharic.gf')
-rw-r--r--examples/numerals/amharic.gf82
1 files changed, 0 insertions, 82 deletions
diff --git a/examples/numerals/amharic.gf b/examples/numerals/amharic.gf
deleted file mode 100644
index 6ffab9a8c..000000000
--- a/examples/numerals/amharic.gf
+++ /dev/null
@@ -1,82 +0,0 @@
-include numerals.Abs.gf ;
-flags coding=ethiopic ;
-
--- 14, 15 have variants in pronounciation {asraratt, asrammIst}
-
--- No long consonants marked in the indigen. script
--- s is set intersection s
--- h is set union h
--- H is three-fork h
--- x is hook-looking h
--- L is sin-looking s
--- X is h looking like k with a roof
--- ) is chair-vowel i.e historically glottal stop
--- ( is round-shape vowel sign i.e historically 3ayn
--- Z is zh
--- $ is sh
--- N is n~
--- I is i" (6th row)
--- A is a" (1st row)
--- Capitalis for ejectives KPTCS
-
-
-param DForm = unit | ten ;
-param Size = sg | pl | tenplus ;
-param S100 = indep | tenpart | tenelfu | sihpart ;
-
-oper LinDigit = {s : DForm => Str ; size : Size} ;
-oper LinSub100 = {s : S100 => Str ; size : Size} ;
-
-lincat Numeral = {s : Str} ;
-lincat Digit = LinDigit ;
-lincat Sub10 = LinDigit ;
-lincat Sub100 = LinSub100 ;
-lincat Sub1000 = {s : Str ; s2 : Str ; size : Size } ;
-lincat Sub1000000 = {s : Str} ;
-
-oper mkNum : Str -> Str -> LinDigit = \hulatt -> \haya ->
- {s = table {unit => hulatt ; ten => haya} ; size = pl} ;
-
-lin num x0 =
- {s = "/E" ++ x0.s ++ "E/"} ;
-lin n2 = mkNum "hulAt" (variants {"haya" ; "Haya" ; "xaya" ; "kaya" }) ;
-lin n3 = mkNum "Lost" "LAlasa" ;
-lin n4 = mkNum "arat" "arba" ;
-lin n5 = mkNum "amIst" (variants { "amsa" ; "xamsa" }) ;
-lin n6 = mkNum "sIdIst" (variants { "sIdsa" ; "sIlsa" }) ;
-lin n7 = mkNum "sAbat" "sAba" ;
-lin n8 = mkNum "sImInt" "sAmanya" ;
-lin n9 = mkNum "zATAN" "zATAna" ;
-
-oper ss1 : Str -> Str -> Str -> LinSub100 = \assir -> \ten -> \unitpart ->
- {s = table {indep => assir ; tenpart => ten ; tenelfu => [] ; sihpart => unitpart} ; size = tenplus } ;
-
-oper ss : Str -> Str -> Str -> LinSub100 = \assir -> \ten -> \unitpart ->
- {s = table {indep => assir ; tenpart => ten ; tenelfu => ten ; sihpart => unitpart} ; size = tenplus } ;
-
-lin pot01 =
- {s = table {unit => "and" ; ten => "asra" }; size = sg};
-lin pot0 d = d ;
-lin pot110 = ss1 "asIr" "and" [] ;
-lin pot111 = ss1 (variants {"asrand" ; "asra" ++ "and" }) "and" Sih ;
-lin pot1to19 d = ss1 ("asra" ++ d.s ! unit) "and" (mkSih d.size (d.s ! unit)) ;
-lin pot0as1 n = {s = table {indep => n.s ! unit ; sihpart => mkSih n.size (n.s ! unit) ; _ => [] } ; size = n.size} ;
-lin pot1 d = ss (d.s ! ten) (d.s ! unit) [] ;
-lin pot1plus d e = ss ((d.s ! ten) ++ (e.s ! unit))
- (d.s ! unit)
- (mkSih e.size (e.s ! unit));
-
-lin pot1as2 n = {s = n.s ! indep ; s2 = n.s ! tenelfu ++ "Ilef" ++ n.s ! sihpart ; size = n.size} ;
-
-lin pot2 d = {s = (sel d.size [] (d.s ! unit)) ++ "mAto" ;
- s2 = sel d.size "asIr" (d.s ! ten) ; size = tenplus} ;
-lin pot2plus d e = {s = (sel d.size [] (d.s ! unit)) ++ "mAto" ++ e.s ! indep ; s2 = d.s ! ten ++ e.s ! tenpart ++ "Ilef" ++ e.s ! sihpart ; size = tenplus} ;
-lin pot2as3 n = {s = n.s} ;
-lin pot3 n = {s = table {pl => n.s ++ Sih ; sg => Sih ; tenplus => n.s2 } ! n.size} ;
-lin pot3plus n m = {s = table {pl => n.s ++ Sih ; sg => Sih ; tenplus => n.s2 } ! n.size ++ m.s} ;
-
-oper Sih : Str = variants {"$ih" ; "$i"} ;
-
-oper mkSih : Size -> Str -> Str = \sz -> \attr -> (sel sz [] attr) ++ Sih ;
-
-oper sel : Size -> Str -> Str -> Str = \sz -> \a -> \b -> table {sg => a ; _ => b} ! sz ; \ No newline at end of file