summaryrefslogtreecommitdiff
path: root/examples/numerals
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2007-06-18 19:25:35 +0000
committeraarne <aarne@cs.chalmers.se>2007-06-18 19:25:35 +0000
commit6b99696e860e9d12fb3102867e622bbf828cf271 (patch)
tree4223fb523d9a3812ad12a2588cf03c90759ee285 /examples/numerals
parentc4d855e64d7dfaf204211258a71ecd1815d30f02 (diff)
updated document for numerals
Diffstat (limited to 'examples/numerals')
-rw-r--r--examples/numerals/README14
-rw-r--r--examples/numerals/zaiwa.gf2
2 files changed, 7 insertions, 9 deletions
diff --git a/examples/numerals/README b/examples/numerals/README
index 8a801b730..74afba7b2 100644
--- a/examples/numerals/README
+++ b/examples/numerals/README
@@ -18,18 +18,14 @@ To precompile a multilingual numeral grammar:
gf <mkNumerals.gfs
-To open a translation session,
+To test,
- gf numerals.gfcm -- in the OS shell
- ts -lang -- in the GF shell
+ gf numerals.gfcm -- in the OS shell
+ generate_random | tree_bank -- in the GF shell
-To create an example HTML page with translations of a numeral:
+ parse -lang=danish "tres" | linearize -lang=english
- echo "x=2341" | gft numerals.gfcm >2341.html
-
-(Requires the gft program, produced by "make gft" in GF sources)
-
-Document last updated August 3, 2004 by Aarne Ranta.
+Document last updated 18 June 2007 by Aarne Ranta.
Copyright (c) Koen Claessen, Carlos Gonzalía, Qiao Haiyan, Harald
Hammarström, Patrik Jansson, Peter Ljunglöf, Wojciech Mostowski, Aarne
diff --git a/examples/numerals/zaiwa.gf b/examples/numerals/zaiwa.gf
index e40645175..859378c49 100644
--- a/examples/numerals/zaiwa.gf
+++ b/examples/numerals/zaiwa.gf
@@ -1,5 +1,7 @@
include numerals.Abs.gf ;
+flags lexer = words ;
+
param Size = sg | sub10 | pl ;
oper LinDigit = {s : Str ; size : Size} ;