summaryrefslogtreecommitdiff
path: root/examples/numerals/latvian.gf
diff options
context:
space:
mode:
authorjohn.j.camilleri <john.j.camilleri@chalmers.se>2013-09-16 07:17:27 +0000
committerjohn.j.camilleri <john.j.camilleri@chalmers.se>2013-09-16 07:17:27 +0000
commitf5461eb3d4eb2605b546a4ed202c12bcdaa1f4e4 (patch)
tree946c9e8542b8e8271b6b529a95c0400fa6613cb4 /examples/numerals/latvian.gf
parent8e1c6cca407c82fc09569d80c231b8d256735989 (diff)
Remove contribs and examples
Everything has now been moved to a separate repository at https://github.com/GrammaticalFramework/gf-contrib The contents of the examples folder are build during SetupWeb
Diffstat (limited to 'examples/numerals/latvian.gf')
-rw-r--r--examples/numerals/latvian.gf56
1 files changed, 0 insertions, 56 deletions
diff --git a/examples/numerals/latvian.gf b/examples/numerals/latvian.gf
deleted file mode 100644
index 0d2f70f92..000000000
--- a/examples/numerals/latvian.gf
+++ /dev/null
@@ -1,56 +0,0 @@
-concrete latvian of Numerals = {
-flags coding = utf8 ;
--- c^
--- s^
--- n, is n with a comma under
--- u^ with line over
-
--- include numerals.Abs.gf ;
--- flags coding=latinasupplement ;
-
-param DForm = unit | teen | ten | hundred ;
-
-oper LinDigit = {s : DForm => Str ; s2 : Str };
-oper LinSub100 = {s : Str ; s2 : Str } ;
-
-lincat Numeral = { s : Str } ;
-lincat Digit = LinDigit ;
-lincat Sub10 = LinDigit ;
-lincat Sub100 = LinSub100 ;
-lincat Sub1000 = LinSub100 ;
-lincat Sub1000000 = { s : Str } ;
-
-oper mkNum : Str -> Str -> LinDigit = \tri -> \tribase ->
- { s = table {unit => tri ; teen => tribase + "padsmit" ; ten => tribase + "desmit" ; hundred => variants {tribase + "simt" ; tri ++ "simti"} } ; s2 = tribase + "tu^kstoš" };
-
-lin num x = {s = [] ++ x.s ++ []} ; -- Latin A Supplement diacritics ;
-
-lin n2 = mkNum "divi" "div" ;
-lin n3 = mkNum "trīs" "trīs" ;
-lin n4 = mkNum "četri" "četr" ;
-lin n5 = mkNum "pieci" "piec" ;
-lin n6 = mkNum "seši" "seš" ;
-lin n7 = mkNum "septin,i" "septin," ;
-lin n8 = mkNum "aston,i" "aston," ;
-lin n9 = mkNum "devin,i" "devin," ;
-
-oper mkR : Str -> LinSub100 = \n -> {s = n ; s2 = n ++ "tu^kstoš" } ;
-
-lin pot01 = { s = table {hundred => "simts" ; _ => "viens" } ; s2 = "tu^kstotis" };
-lin pot0 d = d ;
-lin pot110 = mkR "desmit" ;
-lin pot111 = mkR "vienpadsmit" ;
-lin pot1to19 d = mkR (d.s ! teen) ;
-lin pot0as1 n = {s = n.s ! unit ; s2 = n.s2 } ;
-lin pot1 d = mkR (d.s ! ten) ;
-lin pot1plus d e = mkR ((d.s ! ten) ++ (e.s ! unit)) ;
-lin pot1as2 n = n ;
-lin pot2 d = mkR (d.s ! hundred) ;
-lin pot2plus d e = mkR ((d.s ! hundred) ++ e.s) ;
-lin pot2as3 n = {s = n.s };
-lin pot3 n = {s = n.s2} ;
-lin pot3plus n m = {s = n.s2 ++ m.s} ;
-
-
-
-}