mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
short-phrase translation; added Swe; started doc in Phrasebook
This commit is contained in:
@@ -5,19 +5,12 @@ concrete PhrasebookEng of Phrasebook =
|
||||
WordsEng ** open
|
||||
(R = Roles),
|
||||
SyntaxEng,
|
||||
ResEng, ---- for Num to Utt
|
||||
Prelude in {
|
||||
|
||||
lincat
|
||||
Phrase = Text ;
|
||||
|
||||
lin
|
||||
PNumeral n =
|
||||
mkPhrase ((SyntaxEng.mkCard <n : Numeral>).s ! Nom) ; ----
|
||||
PSentence s = mkText s ;
|
||||
PQuestion s = mkText s ;
|
||||
|
||||
PGreeting g = mkPhrase g.s ;
|
||||
PSentence s = mkText s | lin Text (mkUtt s) ; -- optional .
|
||||
PQuestion s = mkText s | lin Text (mkUtt s) ; -- optional ?
|
||||
PGreeting g = lin Text (ss g.s) ;
|
||||
---- PGreeting p s h g = mkPhrase (g.s ++ p.s ++ s.s ++ h.s) ;
|
||||
|
||||
Male = {s = [] ; g = R.Male} ;
|
||||
@@ -25,7 +18,4 @@ lin
|
||||
Polite = {s = [] ; p = R.Polite} ;
|
||||
Familiar = {s = [] ; p = R.Familiar} ;
|
||||
|
||||
oper
|
||||
mkPhrase : Str -> Utt = \s -> lin Utt (ss s) ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user