completed Multimodal and Tram with new languages

This commit is contained in:
aarne
2006-02-23 09:16:11 +00:00
parent bac9c25a3b
commit bc869124ca
10 changed files with 97 additions and 3 deletions

25
examples/tram/README Normal file
View File

@@ -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

View File

@@ -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

5
examples/tram/TramIta.gf Normal file
View File

@@ -0,0 +1,5 @@
--# -path=.:compiled:prelude
concrete TramIta of Tram = TramI with
(Multimodal = MultimodalIta),
(Symbol = SymbolIta) ;

5
examples/tram/TramNor.gf Normal file
View File

@@ -0,0 +1,5 @@
--# -path=.:compiled:prelude
concrete TramNor of Tram = TramI with
(Multimodal = MultimodalNor),
(Symbol = SymbolNor) ;

5
examples/tram/TramSpa.gf Normal file
View File

@@ -0,0 +1,5 @@
--# -path=.:compiled:prelude
concrete TramSpa of Tram = TramI with
(Multimodal = MultimodalSpa),
(Symbol = SymbolSpa) ;

View File

@@ -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~

View File

@@ -0,0 +1,2 @@
concrete DemonstrativeNor of Demonstrative = CatNor ** DemonstrativeI with
(Lang = LangNor) ;

View File

@@ -0,0 +1,2 @@
concrete DemonstrativeSpa of Demonstrative = CatSpa ** DemonstrativeI with
(Lang = LangSpa) ;

View File

@@ -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
** {} ;

View File

@@ -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
** {} ;