mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-28 01:18:57 -06:00
extend the documentation API
This commit is contained in:
@@ -13,6 +13,7 @@ fun
|
|||||||
InflectionN : N -> Inflection ;
|
InflectionN : N -> Inflection ;
|
||||||
InflectionN2 : N2 -> Inflection ;
|
InflectionN2 : N2 -> Inflection ;
|
||||||
InflectionN3 : N3 -> Inflection ;
|
InflectionN3 : N3 -> Inflection ;
|
||||||
|
InflectionPN : PN -> Inflection ;
|
||||||
InflectionA : A -> Inflection ;
|
InflectionA : A -> Inflection ;
|
||||||
InflectionA2 : A2 -> Inflection ;
|
InflectionA2 : A2 -> Inflection ;
|
||||||
InflectionV : V -> Inflection ;
|
InflectionV : V -> Inflection ;
|
||||||
@@ -27,6 +28,9 @@ fun
|
|||||||
InflectionV2Q : V2Q -> Inflection ;
|
InflectionV2Q : V2Q -> Inflection ;
|
||||||
InflectionV2A : V2A -> Inflection ;
|
InflectionV2A : V2A -> Inflection ;
|
||||||
InflectionAdv : Adv -> Inflection ;
|
InflectionAdv : Adv -> Inflection ;
|
||||||
|
InflectionAdV : AdV -> Inflection ;
|
||||||
|
InflectionAdA : AdA -> Inflection ;
|
||||||
|
InflectionAdN : AdN -> Inflection ;
|
||||||
InflectionPrep : Prep -> Inflection ;
|
InflectionPrep : Prep -> Inflection ;
|
||||||
|
|
||||||
fun
|
fun
|
||||||
|
|||||||
@@ -79,6 +79,19 @@ lin
|
|||||||
s3 = ""
|
s3 = ""
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
InflectionPN = \pn -> {
|
||||||
|
t = "същ.с." ;
|
||||||
|
s1= heading1 ("Съществително Собствено"++
|
||||||
|
case pn.gn of {
|
||||||
|
GSg Masc => "(м.р.)" ;
|
||||||
|
GSg Fem => "(ж.р.)" ;
|
||||||
|
GSg Neut => "(ср.р.)" ;
|
||||||
|
GPl => "(мн.ч.)"
|
||||||
|
}) ;
|
||||||
|
s2 = pn.s ;
|
||||||
|
s3 = ""
|
||||||
|
} ;
|
||||||
|
|
||||||
InflectionA, InflectionA2 = \a -> {
|
InflectionA, InflectionA2 = \a -> {
|
||||||
t = "пр" ;
|
t = "пр" ;
|
||||||
s1= heading1 ("Прилагателно") ;
|
s1= heading1 ("Прилагателно") ;
|
||||||
@@ -104,7 +117,7 @@ lin
|
|||||||
s3= ""
|
s3= ""
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv = \adv -> {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "нар" ;
|
t = "нар" ;
|
||||||
s1= heading1 ("Наречие") ;
|
s1= heading1 ("Наречие") ;
|
||||||
s2= paragraph (adv.s) ;
|
s2= paragraph (adv.s) ;
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ lin
|
|||||||
)
|
)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1 = heading1 "Adverbi" ;
|
s1 = heading1 "Adverbi" ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ lin
|
|||||||
s2 = adj.s
|
s2 = adj.s
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1 = heading1 "Adverb" ;
|
s1 = heading1 "Adverb" ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ lin
|
|||||||
s2 = dtable
|
s2 = dtable
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1 = heading1 (heading preposition_Category) ;
|
s1 = heading1 (heading preposition_Category) ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -24,6 +24,20 @@ lin
|
|||||||
)
|
)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
InflectionPN = \pn -> {
|
||||||
|
t = "pn" ;
|
||||||
|
s1 = heading1 ("Proper Name" ++
|
||||||
|
case pn.g of {
|
||||||
|
Neutr => "";
|
||||||
|
Masc => "(masc)";
|
||||||
|
Fem => "(fem)"
|
||||||
|
}) ;
|
||||||
|
s2 = frameTable (
|
||||||
|
tr (th "nom" ++ th "gen") ++
|
||||||
|
tr (td (pn.s ! Nom) ++ td (pn.s ! Gen))
|
||||||
|
)
|
||||||
|
} ;
|
||||||
|
|
||||||
InflectionA, InflectionA2 = \adj -> {
|
InflectionA, InflectionA2 = \adj -> {
|
||||||
t = "a" ;
|
t = "a" ;
|
||||||
s1 = heading1 "Adjective" ;
|
s1 = heading1 "Adjective" ;
|
||||||
@@ -37,7 +51,7 @@ lin
|
|||||||
paragraph (adj.s ! AAdv)
|
paragraph (adj.s ! AAdv)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv = \adv -> {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1= heading1 "Adverb" ;
|
s1= heading1 "Adverb" ;
|
||||||
s2= paragraph (adv.s) ;
|
s2= paragraph (adv.s) ;
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ lin
|
|||||||
inflNoun (\nf -> superl ! AN nf)
|
inflNoun (\nf -> superl ! AN nf)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1 = heading1 (heading adverb_Category) ;
|
s1 = heading1 (heading adverb_Category) ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ lin
|
|||||||
inflNoun (\nf -> (snoun2nounSep {s = \\f => adj.s ! Superl ! sAN f ; h = adj.h}).s ! nf)
|
inflNoun (\nf -> (snoun2nounSep {s = \\f => adj.s ! Superl ! sAN f ; h = adj.h}).s ! nf)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1 = heading1 (heading adverb_Category) ;
|
s1 = heading1 (heading adverb_Category) ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ lin
|
|||||||
)
|
)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1 = heading1 "Adverbe" ;
|
s1 = heading1 "Adverbe" ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ lin
|
|||||||
s2 = dtable positive_Parameter Posit ++ dtable comparative_Parameter Compar ++ dtable superlative_Parameter Superl
|
s2 = dtable positive_Parameter Posit ++ dtable comparative_Parameter Compar ++ dtable superlative_Parameter Superl
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adverb" ;
|
t = "adverb" ;
|
||||||
s1 = heading1 (heading adverb_Category) ;
|
s1 = heading1 (heading adverb_Category) ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -59,6 +59,12 @@ lin
|
|||||||
)
|
)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
|
t = "adv" ;
|
||||||
|
s1 = heading1 "Adverb" ;
|
||||||
|
s2 = adv.s
|
||||||
|
} ;
|
||||||
|
|
||||||
InflectionPrep = \prep -> {
|
InflectionPrep = \prep -> {
|
||||||
t = "prep" ;
|
t = "prep" ;
|
||||||
s1 = heading1 "Preposition" ;
|
s1 = heading1 "Preposition" ;
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ lin
|
|||||||
} ;
|
} ;
|
||||||
|
|
||||||
{-
|
{-
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adverb" ;
|
t = "adverb" ;
|
||||||
s1 = heading1 (heading adverb_Category) ;
|
s1 = heading1 (heading adverb_Category) ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ lin
|
|||||||
)
|
)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1 = heading1 "Adverbe" ;
|
s1 = heading1 "Adverbe" ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ lin
|
|||||||
)
|
)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1 = heading1 "Advérbio" ;
|
s1 = heading1 "Advérbio" ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ lin
|
|||||||
frameTable (tr (tr (adj.comp)))
|
frameTable (tr (tr (adj.comp)))
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1 = heading1 (heading adverb_Category) ;
|
s1 = heading1 (heading adverb_Category) ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -357,7 +357,7 @@ intagAttr "tr" "style=\"border-top-color:white;border-left-color:white;border-ri
|
|||||||
|
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv = \adv -> {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "нар" ;
|
t = "нар" ;
|
||||||
s1= heading1 ("Наречие") ;
|
s1= heading1 ("Наречие") ;
|
||||||
s2= paragraph (adv.s) ;
|
s2= paragraph (adv.s) ;
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ lin
|
|||||||
)
|
)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv = \adv -> {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "prs" ;
|
t = "prs" ;
|
||||||
s1= heading1 ("Prislov") ;
|
s1= heading1 ("Prislov") ;
|
||||||
s2= paragraph (adv.s)
|
s2= paragraph (adv.s)
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ lin
|
|||||||
)
|
)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1 = heading1 "Adverbe" ;
|
s1 = heading1 "Adverbe" ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -32,6 +32,18 @@ lin
|
|||||||
)
|
)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
InflectionPN = \pn -> {
|
||||||
|
t = "nm" ;
|
||||||
|
s1 = heading1 ("Namn" ++ case pn.g of {
|
||||||
|
Utr => "(utr)" ;
|
||||||
|
Neutr => "(neutr)"
|
||||||
|
}) ;
|
||||||
|
s2 = frameTable (
|
||||||
|
tr (th "nom" ++ td (pn.s ! Nom)) ++
|
||||||
|
tr (th "gen" ++ td (pn.s ! Gen))
|
||||||
|
)
|
||||||
|
} ;
|
||||||
|
|
||||||
InflectionA, InflectionA2 = \adj -> {
|
InflectionA, InflectionA2 = \adj -> {
|
||||||
t = "a" ;
|
t = "a" ;
|
||||||
s1 = heading1 "Adjektiv" ;
|
s1 = heading1 "Adjektiv" ;
|
||||||
@@ -66,7 +78,7 @@ lin
|
|||||||
td (adj.s ! (AF (APosit (Weak Pl)) c))) ;
|
td (adj.s ! (AF (APosit (Weak Pl)) c))) ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv adv = {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "adv" ;
|
t = "adv" ;
|
||||||
s1 = heading1 "Adverb" ;
|
s1 = heading1 "Adverb" ;
|
||||||
s2 = paragraph adv.s
|
s2 = paragraph adv.s
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ lin
|
|||||||
paragraph (adj.adv) ;
|
paragraph (adj.adv) ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
InflectionAdv = \adv -> {
|
InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
t = "b" ;
|
t = "b" ;
|
||||||
s1= heading1 ("Belirteç") ;
|
s1= heading1 ("Belirteç") ;
|
||||||
s2= paragraph (adv.s) ;
|
s2= paragraph (adv.s) ;
|
||||||
|
|||||||
@@ -59,6 +59,12 @@ lin
|
|||||||
)
|
)
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
|
||||||
|
t = "adv" ;
|
||||||
|
s1 = heading1 "Adverb" ;
|
||||||
|
s2 = adv.s
|
||||||
|
} ;
|
||||||
|
|
||||||
InflectionPrep = \prep -> {
|
InflectionPrep = \prep -> {
|
||||||
t = "prep" ;
|
t = "prep" ;
|
||||||
s1 = heading1 "Preposition" ;
|
s1 = heading1 "Preposition" ;
|
||||||
|
|||||||
Reference in New Issue
Block a user