forked from GitHub/gf-core
Moved punctuation to a separate field, to allow spoken language grammars to omit it. Created top-level spoken language grammars. (all in peacekeeping)
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
--# -path=.:present:prelude
|
||||
|
||||
concrete PeaceCat_Swe of PeaceCat = CatSwe ** PeaceCatI with (Cat = CatSwe);
|
||||
concrete PeaceCat_Swe of PeaceCat = CatSwe ** PeaceCatI with (Lang = LangSwe);
|
||||
@@ -1,12 +1,12 @@
|
||||
--# -path=.:..:present:prelude
|
||||
|
||||
concrete PeacePhrases_Swe of PeacePhrases =
|
||||
PeaceCat_Swe ** open CommonScand in {
|
||||
PeaceCat_Swe ** open CommonScand, PeaceRes in {
|
||||
|
||||
lin
|
||||
Hello = { s = "hej" ++ "." } ;
|
||||
GoodMorning = { s = ["god morgon"] ++ "." } ;
|
||||
GoodEvening = { s = ["god kväll"] ++ "." } ;
|
||||
WhatIsNamePron p = { s = ["vad heter"] ++ p.s!NPNom ++ "?"; };
|
||||
Hello = stop "hej" ;
|
||||
GoodMorning = stop ["god morgon"] ;
|
||||
GoodEvening = stop ["god kväll"] ;
|
||||
WhatIsNamePron p = stop (["vad heter"] ++ p.s!NPNom) ;
|
||||
|
||||
}
|
||||
8
examples/peacekeeping/swedish/PeaceSpoken_Swe.gf
Normal file
8
examples/peacekeeping/swedish/PeaceSpoken_Swe.gf
Normal file
@@ -0,0 +1,8 @@
|
||||
--# -path=.:..:present:prelude
|
||||
|
||||
concrete PeaceSpoken_Swe of PeaceSpoken =
|
||||
Peace_Swe ** {
|
||||
|
||||
flags startcat = PhraseSpoken ;
|
||||
|
||||
}
|
||||
@@ -5,6 +5,6 @@ concrete Peace_Swe of Peace =
|
||||
PeaceLexExt_Swe, PeacePhrases_Swe
|
||||
** {
|
||||
|
||||
flags startcat = Phr ;
|
||||
flags startcat = PhraseWritten ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user