summaryrefslogtreecommitdiff
path: root/examples/numerals/turkish.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/turkish.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/turkish.gf')
-rw-r--r--examples/numerals/turkish.gf65
1 files changed, 0 insertions, 65 deletions
diff --git a/examples/numerals/turkish.gf b/examples/numerals/turkish.gf
deleted file mode 100644
index 90647c212..000000000
--- a/examples/numerals/turkish.gf
+++ /dev/null
@@ -1,65 +0,0 @@
-concrete turkish of Numerals = {
-flags coding = utf8 ;
--- include numerals.Abs.gf ;
--- flags coding=latinasupplement ;
-
-param DForm = unit | ten | teen ;
-param Size = sg | pl ;
-
--- ç is c with a cedille (obviously)
--- s, is s with a cedille
--- I is i without a dot
--- g% is yumus,ak ge (i.e a g with a breve)
-
--- The hundreds and trheir qualif can be written together e.g ikiyüz
--- aswelll as ten + unit e.g yirmibir
-
-lincat Numeral = { s : Str } ;
-oper LinDigit = {s : DForm => Str } ;
-lincat Digit = LinDigit ;
-
-lincat Sub10 = {s : DForm => Str ; size : Size} ;
-lincat Sub100 = {s : Str ; size : Size } ;
-lincat Sub1000 = {s : Str ; size : Size } ;
-lincat Sub1000000 = { s : Str } ;
-
-oper mkNum : Str -> Str -> LinDigit =
- \iki -> \yirmi ->
- {s = table {unit => iki ; teen => (variants {"on" + iki ; "on" ++ iki}) ; ten => yirmi } } ;
-
-lin num x = {s = [] ++ x.s ++ [] } ;
-
--- lin n1 mkNum "bir" "dA" ;
-lin n2 = mkNum "iki" "yirmi" ;
-lin n3 = mkNum "üç" "otuz" ;
-lin n4 = mkNum "dört" "kırk" ;
-lin n5 = mkNum "beş" "elli" ;
-lin n6 = mkNum "altı" "altmış" ;
-lin n7 = mkNum "yedi" "yetmiş" ;
-lin n8 = mkNum "sekiz" "seksen" ;
-lin n9 = mkNum "dokuz" "doksan" ;
-
-oper ss : Str -> {s : Str ; size : Size} = \s -> {s = s ; size = pl} ;
-
-lin pot01 = {s = table {f => "bir"} ; size = sg} ;
-lin pot0 d = {s = table {f => d.s ! f} ; size = pl} ;
-lin pot110 = ss "on" ;
-lin pot111 = ss (variants { "on" ++ "bir" ; "onbir"});
-lin pot1to19 d = {s = d.s ! teen ; size = pl} ;
-lin pot0as1 n = {s = n.s ! unit ; size = n.size} ;
-lin pot1 d = {s = d.s ! ten ; size = pl} ;
-lin pot1plus d e = {s = d.s ! ten ++ e.s ! unit; size = pl} ;
-lin pot1as2 n = n ;
-lin pot2 d = {s = table {sg => [] ; _ => d.s ! unit} ! d.size ++ "yüz" ; size = pl} ;
-lin pot2plus d e = {s = table {sg => [] ; _ => d.s ! unit} ! d.size ++ "yüz" ++ e.s ; size = pl} ;
-
-lin pot2as3 n = n ;
-lin pot3 n = {s = table {sg => [] ; _ => n.s } ! n.size ++ "bin"} ;
-lin pot3plus n m = {s = table {sg => [] ; _ => n.s } ! n.size ++ "bin" ++ m.s} ;
-
-
-
-
-
-
-}