diff options
| author | aarne <aarne@chalmers.se> | 2010-03-29 21:19:50 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2010-03-29 21:19:50 +0000 |
| commit | 4bae49c6341fc831f474f1fffc0f763892ef696d (patch) | |
| tree | 08729b66303d67ae2546e3f096a24ffde4d7ba85 | |
| parent | bec718d49deb4000bbf99adbef66b27e93d08f1b (diff) | |
information on missing words; fix in PhraseDut
| -rw-r--r-- | examples/phrasebook/Makefile | 7 | ||||
| -rw-r--r-- | examples/phrasebook/missing.txt | 6 | ||||
| -rw-r--r-- | examples/phrasebook/phrasebook.html | 53 | ||||
| -rw-r--r-- | examples/phrasebook/phrasebook.txt | 47 |
4 files changed, 76 insertions, 37 deletions
diff --git a/examples/phrasebook/Makefile b/examples/phrasebook/Makefile index 1a28326ba..43547d860 100644 --- a/examples/phrasebook/Makefile +++ b/examples/phrasebook/Makefile @@ -1,5 +1,10 @@ -all: +all: pgf missing + +pgf: gf -make PhrasebookEng.gf PhrasebookFin.gf PhrasebookFre.gf PhrasebookIta.gf PhrasebookRon.gf PhrasebookSwe.gf +missing: + echo "pg -missing | wf -file=missing.txt" | gf Phrasebook.pgf + doc: txt2tags -thtml phrasebook.txt diff --git a/examples/phrasebook/missing.txt b/examples/phrasebook/missing.txt new file mode 100644 index 000000000..8affe59a0 --- /dev/null +++ b/examples/phrasebook/missing.txt @@ -0,0 +1,6 @@ +PhrasebookEng : +PhrasebookFin : Familiar Female Male Polite +PhrasebookFre : +PhrasebookIta : French Fresh GNiceToMeetYou GSeeYouSoon Tea +PhrasebookRon : Coffee Familiar Female Finnish French Male Polite Swedish Tea +PhrasebookSwe : Familiar Female Male Polite diff --git a/examples/phrasebook/phrasebook.html b/examples/phrasebook/phrasebook.html index ae6c21ee3..4de191666 100644 --- a/examples/phrasebook/phrasebook.html +++ b/examples/phrasebook/phrasebook.html @@ -10,13 +10,30 @@ </FONT></CENTER> <P> +<HR> +<font size=-1> +</P> +<P> History </P> <UL> -<LI>Version 0.1, 26 March 2010. Eng, Fin, Fre, Ron; dedicated minibar UI. -<LI>Version 0.2, 28 March. Swe, Ita; cat Action; small phrases. +<LI>26 March 2010. Version 0.1: Eng, Fin, Fre, Ron; dedicated minibar UI. +<LI>28 March. Version 0.2: Swe, Ita; cat Action; small phrases. </UL> +<P> +Want to contribute? You can add <A HREF="missing.txt">missing words</A> by using the +<A HREF="http://www.grammaticalframework.org/lib/doc/synopsis.html#toc78">morphological paradigms</A>. +The words are added to the <CODE>Words</CODE><I>L</I><CODE>.gf</CODE> files for each language <I>L</I>. Then recompile the +phrasebook by <CODE>make</CODE>. All this of course in the +<A HREF="http://code.haskell.org/gf/examples/phrasebook/">source directory</A>, +which you can obtain by +<A HREF="http://www.grammaticalframework.org/doc/gf-developers.html">GF Darcs</A>. +</P> +<P> +</font> +<HR> +</P> <H1>Purpose</H1> <P> This phrasebook is a programme for translating touristic phrases @@ -76,38 +93,26 @@ Disambiguation, esp. by the parameters in Roles. </P> <H1>Files</H1> <P> -abstract Sentences: general syntactic structures implementable by functor +<CODE>Sentences</CODE>: general syntactic structures implementable by +functor. Concrete syntax via <CODE>SencencesI</CODE>. </P> -<UL> -<LI>concrete by functor SencencesI -</UL> - <P> -abstract Words: words and predicates, typically language-dependent +<CODE>Words</CODE>: words and predicates, typically language-dependent. Separate +concrete syntaxes. </P> -<UL> -<LI>concrete separate -</UL> - <P> -abstract Greetings: idiomatic phrases, strings with role dependence +<CODE>Greetings</CODE>: idiomatic phrases, string-based. Separate concrete +syntaxes. </P> -<UL> -<LI>concrete separate -</UL> - <P> -abstract Phrasebook: put everything together +<CODE>Phrasebook</CODE>: the top module putting everything together. Separate +concrete syntaxes. </P> -<UL> -<LI>concrete separate -</UL> - <P> -resource Roles: param Politeness, Gender +Resource <CODE>Roles</CODE>: parameter types Politeness, Gender </P> <P> -interface DiffPhrasebook: the (so far small) interface for Sentences +Interface <CODE>DiffPhrasebook</CODE>: the (so far small) interface for Sentences. </P> <H1>To Do</H1> <P> diff --git a/examples/phrasebook/phrasebook.txt b/examples/phrasebook/phrasebook.txt index 5d61ad63a..9ddcd8453 100644 --- a/examples/phrasebook/phrasebook.txt +++ b/examples/phrasebook/phrasebook.txt @@ -2,11 +2,32 @@ MOLTO Multilingual Phrasebook Aarne Ranta +%!postproc(html): #HR <HR> +%!postproc(html): #BSMALL <font size=-1> +%!postproc(html): #ESMALL </font> + + + + +#HR +#BSMALL + History -- Version 0.1, 26 March 2010. Eng, Fin, Fre, Ron; dedicated minibar UI. -- Version 0.2, 28 March. Swe, Ita; cat Action; small phrases. +- 26 March 2010. Version 0.1: Eng, Fin, Fre, Ron; dedicated minibar UI. +- 28 March. Version 0.2: Swe, Ita; cat Action; small phrases. +Want to contribute? You can add [missing words missing.txt] by using the +[morphological paradigms http://www.grammaticalframework.org/lib/doc/synopsis.html#toc78]. +The words are added to the ``Words``//L//``.gf`` files for each language //L//. Then recompile the +phrasebook by ``make``. All this of course in the +[source directory http://code.haskell.org/gf/examples/phrasebook/], +which you can obtain by +[GF Darcs http://www.grammaticalframework.org/doc/gf-developers.html]. + +#ESMALL +#HR + =Purpose= @@ -57,25 +78,27 @@ Disambiguation, esp. by the parameters in Roles. =Files= -abstract Sentences: general syntactic structures implementable by functor -- concrete by functor SencencesI +``Sentences``: general syntactic structures implementable by +functor. Concrete syntax via ``SencencesI``. + + +``Words``: words and predicates, typically language-dependent. Separate +concrete syntaxes. -abstract Words: words and predicates, typically language-dependent -- concrete separate +``Greetings``: idiomatic phrases, string-based. Separate concrete +syntaxes. -abstract Greetings: idiomatic phrases, strings with role dependence -- concrete separate +``Phrasebook``: the top module putting everything together. Separate +concrete syntaxes. -abstract Phrasebook: put everything together -- concrete separate +Resource ``Roles``: parameter types Politeness, Gender +Interface ``DiffPhrasebook``: the (so far small) interface for Sentences. -resource Roles: param Politeness, Gender -interface DiffPhrasebook: the (so far small) interface for Sentences |
