Skip to content

Commit

Permalink
fix the order of genders for the adjectives and show the adjectives f…
Browse files Browse the repository at this point in the history
…or the nouns
  • Loading branch information
krangelov committed Mar 11, 2024
1 parent ffcff47 commit 2aef821
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions src/russian/DocumentationRusFunctor.gf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ lin
Fem => "(ж.р.)" ;
Neut => "(ср.р.)"
}) ;
s2 = inflNoun noun
s2 = inflNoun noun ++
case noun.rt of {
GenType => [] ;
AdjType => heading1 (heading adjective_Category) ++
inflAdj noun.rel
}
} ;

InflectionPN = \pn -> {
Expand Down Expand Up @@ -114,14 +119,7 @@ lin
InflectionA, InflectionA2 = \adj -> {
t = "пр" ;
s1 = heading1 (heading adjective_Category) ;
s2 = heading2 (heading feminine_Parameter) ++
inflNoun (makeNFFromAF adj Fem Inanimate) ++
heading2 (heading masculine_Parameter) ++
inflNoun (makeNFFromAF adj Masc Inanimate) ++
heading2 (heading neuter_Parameter) ++
inflNoun (makeNFFromAF adj Neut Inanimate) ++
heading2 (heading comparative_Parameter) ++
frameTable (tr (tr (adj.comp)))
s2 = inflAdj adj
} ;

InflectionAdv, InflectionAdV, InflectionAdA, InflectionAdN = \adv -> {
Expand Down Expand Up @@ -238,6 +236,16 @@ oper
tr (th ("звательный") ++ td (nf.svoc) ++ td ("-"))
) ;

inflAdj : AdjForms -> Str = \adj ->
heading2 (heading masculine_Parameter) ++
inflNoun (makeNFFromAF adj Masc Inanimate) ++
heading2 (heading feminine_Parameter) ++
inflNoun (makeNFFromAF adj Fem Inanimate) ++
heading2 (heading neuter_Parameter) ++
inflNoun (makeNFFromAF adj Neut Inanimate) ++
heading2 (heading comparative_Parameter) ++
frameTable (tr (tr (adj.comp))) ;

lin
-- : String -> Definition ;
NoDefinition t = {s=t.s};
Expand Down

0 comments on commit 2aef821

Please sign in to comment.