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 @@ -9,14 +9,31 @@ Aarne Ranta
+

+


+ +

History

+

+Want to contribute? You can add missing words by using the +morphological paradigms. +The words are added to the WordsL.gf files for each language L. Then recompile the +phrasebook by make. All this of course in the +source directory, +which you can obtain by +GF Darcs. +

+

+ +


+

Purpose

This phrasebook is a programme for translating touristic phrases @@ -76,38 +93,26 @@ Disambiguation, esp. by the parameters in Roles.

Files

-abstract Sentences: general syntactic structures implementable by functor -

- - -

-abstract Words: words and predicates, typically language-dependent -

- - -

-abstract Greetings: idiomatic phrases, strings with role dependence -

- - -

-abstract Phrasebook: put everything together -

- - -

-resource Roles: param Politeness, Gender +Sentences: general syntactic structures implementable by +functor. Concrete syntax via SencencesI.

-interface DiffPhrasebook: the (so far small) interface for Sentences +Words: words and predicates, typically language-dependent. Separate +concrete syntaxes. +

+

+Greetings: idiomatic phrases, string-based. Separate concrete +syntaxes. +

+

+Phrasebook: the top module putting everything together. Separate +concrete syntaxes. +

+

+Resource Roles: parameter types Politeness, Gender +

+

+Interface DiffPhrasebook: the (so far small) interface for Sentences.

To Do

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,12 +2,33 @@ MOLTO Multilingual Phrasebook Aarne Ranta -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. +%!postproc(html): #HR


+%!postproc(html): #BSMALL +%!postproc(html): #ESMALL + +#HR +#BSMALL + +History +- 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= This phrasebook is a programme for translating touristic phrases @@ -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``. -abstract Words: words and predicates, typically language-dependent -- concrete separate +``Words``: words and predicates, typically language-dependent. Separate +concrete syntaxes. -abstract Greetings: idiomatic phrases, strings with role dependence -- concrete separate +``Greetings``: idiomatic phrases, string-based. Separate concrete +syntaxes. -abstract Phrasebook: put everything together -- concrete separate +``Phrasebook``: the top module putting everything together. Separate +concrete syntaxes. -resource Roles: param Politeness, Gender +Resource ``Roles``: parameter types Politeness, Gender + +Interface ``DiffPhrasebook``: the (so far small) interface for Sentences. + -interface DiffPhrasebook: the (so far small) interface for Sentences