From f46317e01023beb0e24459cfc0cd1c8379ede086 Mon Sep 17 00:00:00 2001 From: aarne Date: Mon, 3 Sep 2007 08:42:10 +0000 Subject: [PATCH] updated quick start --- doc/gf-quickstart.html | 29 ++++++++++++++++------------- src/INSTALL | 15 ++++++++++----- tmp-download.html | 23 ++++++++++++++++++----- 3 files changed, 44 insertions(+), 23 deletions(-) diff --git a/doc/gf-quickstart.html b/doc/gf-quickstart.html index 40e860f45..dd430e38d 100644 --- a/doc/gf-quickstart.html +++ b/doc/gf-quickstart.html @@ -9,7 +9,7 @@

Aarne Ranta

-20 May, 2005 +3 September, 2007

@@ -19,7 +19,8 @@ Aarne Ranta This Quick Start shows two examples of how GF can be used. We assume that you have downloaded and installed GF, so that -the command gf works for you. +the command gf works for you. See download and install +instructions here. @@ -29,34 +30,36 @@ When you have downloaded and installed GF:

  1. Copy the files -Paleolithic.gf, -PaleolithicEng.gf, and -PaleolithicIta.gf. +Food.gf, +FoodEng.gf, and +FoodIta.gf. +Or go to GF/examples/tutorial/food/, if you have downloaded the +GF sources.
  2. Start GF with the command
    -  gf PaleolithicIta.gf PaleolithicEng.gf
    +  gf FoodIta.gf FoodEng.gf
     
  3. Translation. Try your first translation by giving the GF command
    -  t PaleolithicEng PaleolithicIta "the boy eats the snake"
    +  parse "this cheese is very very Italian" | tree_bank
     
  4. Generation. Random-generate sentences in two languages:
    -  gr | l -multi
    +  generate_random | l -multi
     
    -
  5. Grammar development. Add words to the Paleolithic +
  6. Grammar development. Add words to the Food grammars and try the above commands again. For instance, add the following lines:
    -  Black : A ;             -- in Paleolithic.gf
    -  Black = {s = "black"} ; -- in PaleolithicEng.gf
    -  Black = {s = "nero"} ;  -- in PaleolithicIta.gf
    +  Bread : Kind ;          -- in Food.gf
    +  Black = {s = "bread"} ; -- in FoodEng.gf
    +  Black = {s = "pane"} ;  -- in FoodIta.gf
     
    and start GF again with the same command. Now you can even translate -the boy eats the black snake. +this bread is very Italian.
To lear more on GF commands and grammar development, go to the diff --git a/src/INSTALL b/src/INSTALL index 911a13577..ef7949b07 100644 --- a/src/INSTALL +++ b/src/INSTALL @@ -63,13 +63,17 @@ To make and install GF (Updated for version 2.4). 9. For a quick test: Start gf, load a grammar and parse a string: - cd GF/grammars/basic - gf English.gf + cd $GFHOME/examples/tutorial/food + gf FoodIta.gf FoodEng.gf -- when gf has started and shows the prompt >: - > p "every number is even or odd" + + > parse "this cheese is very very Italian" | tree_bank + -- this is the response from GF: - PredA1 (Every Number) (DisjA1 Even Odd) + Is (This Cheese) (Very (Very Italian)) + this cheese is very very Italian + questo formaggio è molto molto italiano 10. If you want to run the Java GUI, go back to $GFHOME/src directory and also do @@ -84,5 +88,6 @@ To make and install GF (Updated for version 2.4). When the window opens, push the Random button. -Author: Aarne Ranta, Björn Bringert 8/11/2004 -- 26/01/2006 +Author: Aarne Ranta, Björn Bringert 8/11/2004 -- 26/01/2006 -- 3/9/2007 + diff --git a/tmp-download.html b/tmp-download.html index d9fddd559..8a3286c34 100644 --- a/tmp-download.html +++ b/tmp-download.html @@ -5,20 +5,32 @@ GF Version 2.8, released 8 July 2007. The Sourceforge GF site -will be soon updated, but has currently only v 2.7 and older versions. +has currently only v 2.7 and older versions.

@@ -31,7 +43,8 @@ and subsequent times

   darcs pull -a
 
- +Then compile and install as described in +GF/src/INSTALL.