From bc869124cafe06be55ddcf218d4320b031345e6c Mon Sep 17 00:00:00 2001 From: aarne Date: Thu, 23 Feb 2006 09:16:11 +0000 Subject: [PATCH] completed Multimodal and Tram with new languages --- examples/tram/README | 25 +++++++++++++++++++ examples/tram/TramI.gf | 2 +- examples/tram/TramIta.gf | 5 ++++ examples/tram/TramNor.gf | 5 ++++ examples/tram/TramSpa.gf | 5 ++++ lib/resource-1.0/Makefile | 16 ++++++++++-- .../multimodal/DemonstrativeNor.gf | 2 ++ .../multimodal/DemonstrativeSpa.gf | 2 ++ lib/resource-1.0/multimodal/MultimodalNor.gf | 19 ++++++++++++++ lib/resource-1.0/multimodal/MultimodalSpa.gf | 19 ++++++++++++++ 10 files changed, 97 insertions(+), 3 deletions(-) create mode 100644 examples/tram/README create mode 100644 examples/tram/TramIta.gf create mode 100644 examples/tram/TramNor.gf create mode 100644 examples/tram/TramSpa.gf create mode 100644 lib/resource-1.0/multimodal/DemonstrativeNor.gf create mode 100644 lib/resource-1.0/multimodal/DemonstrativeSpa.gf create mode 100644 lib/resource-1.0/multimodal/MultimodalNor.gf create mode 100644 lib/resource-1.0/multimodal/MultimodalSpa.gf diff --git a/examples/tram/README b/examples/tram/README new file mode 100644 index 000000000..f8753dfbb --- /dev/null +++ b/examples/tram/README @@ -0,0 +1,25 @@ +Björn Bringert's tram grammars (user side, without place names) +implemented as an example of lib/resource/abstract/Multimodal. + +For documentation of the original system, see + + http://www.cs.chalmers.se/~bringert/gf/tramdemo.html + +To try, do in gf + + i TramEng.gf + gr | l -tr | p + +Clicks appear as coordinates on the right of the semicolon. +This works in eight languages. + +Notice that the compilation of the grammars uses precompiled +resources, located in + + GF/lib/compiled + +To produce them, use 'make' and 'make install' in GF/lib/resource-1.0. + +AR 7/11/2005 -- 23/2/2006 + + diff --git a/examples/tram/TramI.gf b/examples/tram/TramI.gf index 1d505fc58..242a7788d 100644 --- a/examples/tram/TramI.gf +++ b/examples/tram/TramI.gf @@ -1,6 +1,6 @@ incomplete concrete TramI of Tram = open Multimodal, Symbol in { -flags startcat=Query ; lexer=textlit ; +flags startcat=Query ; lexer=literals ; lincat Query = Phr ; -- top level, plain string diff --git a/examples/tram/TramIta.gf b/examples/tram/TramIta.gf new file mode 100644 index 000000000..656d64dbb --- /dev/null +++ b/examples/tram/TramIta.gf @@ -0,0 +1,5 @@ +--# -path=.:compiled:prelude + +concrete TramIta of Tram = TramI with + (Multimodal = MultimodalIta), + (Symbol = SymbolIta) ; diff --git a/examples/tram/TramNor.gf b/examples/tram/TramNor.gf new file mode 100644 index 000000000..e7ba6aadd --- /dev/null +++ b/examples/tram/TramNor.gf @@ -0,0 +1,5 @@ +--# -path=.:compiled:prelude + +concrete TramNor of Tram = TramI with + (Multimodal = MultimodalNor), + (Symbol = SymbolNor) ; diff --git a/examples/tram/TramSpa.gf b/examples/tram/TramSpa.gf new file mode 100644 index 000000000..7915a0331 --- /dev/null +++ b/examples/tram/TramSpa.gf @@ -0,0 +1,5 @@ +--# -path=.:compiled:prelude + +concrete TramSpa of Tram = TramI with + (Multimodal = MultimodalSpa), + (Symbol = SymbolSpa) ; diff --git a/lib/resource-1.0/Makefile b/lib/resource-1.0/Makefile index 77dcddbe6..792d7e48e 100644 --- a/lib/resource-1.0/Makefile +++ b/lib/resource-1.0/Makefile @@ -1,15 +1,23 @@ -all: langs test +all: langs mathematical multimodal test: echo "gr -cat=Text -number=11 -prob | tb" | gf -nocf -probs=lang.gfprob langs.gfcm + langs: - echo "s ;; pm | wf langs.gfcm" | gf -src -nocf */Lang??*.gf english/LangEng.gf +RTS -M500M + echo "s ;; pm | wf langs.gfcm" | gf -nocf */Lang??*.gf english/LangEng.gf +RTS -M500M -K100M + +mathematical: + gf -nocf mathematical/Mathematical???.gf +RTS -M800M -K100M + +multimodal: + gf -nocf multimodal/Multimodal???.gf +RTS -M500M -K100M install: cp -p */*.gfc */*.gfr ../compiled stat: wc */*.gfc + gfdoc: gfdoc -txthtml abstract/*.gf gfdoc -txthtml */Paradigms*.gf @@ -23,3 +31,7 @@ gfdoc: mv multimodal/*.html doc/gfdoc mv */Paradigms*.html doc/gfdoc cp */Irreg???.gf doc/gfdoc + +clean: + rm */*.gfc */*.gfr */*.gf~ + diff --git a/lib/resource-1.0/multimodal/DemonstrativeNor.gf b/lib/resource-1.0/multimodal/DemonstrativeNor.gf new file mode 100644 index 000000000..ca5b28158 --- /dev/null +++ b/lib/resource-1.0/multimodal/DemonstrativeNor.gf @@ -0,0 +1,2 @@ +concrete DemonstrativeNor of Demonstrative = CatNor ** DemonstrativeI with + (Lang = LangNor) ; diff --git a/lib/resource-1.0/multimodal/DemonstrativeSpa.gf b/lib/resource-1.0/multimodal/DemonstrativeSpa.gf new file mode 100644 index 000000000..9dd98f234 --- /dev/null +++ b/lib/resource-1.0/multimodal/DemonstrativeSpa.gf @@ -0,0 +1,2 @@ +concrete DemonstrativeSpa of Demonstrative = CatSpa ** DemonstrativeI with + (Lang = LangSpa) ; diff --git a/lib/resource-1.0/multimodal/MultimodalNor.gf b/lib/resource-1.0/multimodal/MultimodalNor.gf new file mode 100644 index 000000000..59300713e --- /dev/null +++ b/lib/resource-1.0/multimodal/MultimodalNor.gf @@ -0,0 +1,19 @@ +--# -path=.:../norwegian/:../scandinavian:../abstract:../common:prelude + +concrete MultimodalNor of Multimodal = + NounNor, +-- Verb, + AdjectiveNor, + AdverbNor, + NumeralNor, +-- Sentence, +-- Question, +-- Relative, +-- Conjunction, +-- Phrase, +-- Tensed, + StructuralNor, + DemonstrativeNor, + LexiconNor + ** {} ; + diff --git a/lib/resource-1.0/multimodal/MultimodalSpa.gf b/lib/resource-1.0/multimodal/MultimodalSpa.gf new file mode 100644 index 000000000..b318be406 --- /dev/null +++ b/lib/resource-1.0/multimodal/MultimodalSpa.gf @@ -0,0 +1,19 @@ +--# -path=.:../spanish/:../romance:../abstract:../common:prelude + +concrete MultimodalSpa of Multimodal = + NounSpa, +-- Verb, + AdjectiveSpa, + AdverbSpa, +-- NumeralSpa, +-- Sentence, +-- Question, +-- Relative, +-- Conjunction, +-- Phrase, +-- Tensed, + StructuralSpa, + DemonstrativeSpa, + LexiconSpa + ** {} ; +