diff --git a/src/swahili/DocumentationSwa.gf b/src/swahili/DocumentationSwa.gf new file mode 100755 index 000000000..a0ffc748b --- /dev/null +++ b/src/swahili/DocumentationSwa.gf @@ -0,0 +1,45 @@ +--# -path=.:../abstract:../common +concrete DocumentationSwa of Documentation = CatSwa ** open + ResSwa,ParamX,Prelude, + HTML in { + +lincat + Inflection = {t : Str; s1,s2 : Str} ; + Definition = {s : Str} ; + Document = {s : Str} ; + Tag = {s : Str} ; + +lin InflectionN,InflectionN2,InflectionN3 = \x -> { + t="n" ; + s1=heading1 ("Noun (class" ++ + case x.g of { + G1 => "I" ; + G2 => "II" ; + G3 => "III" ; + G4 => "IV" ; + G5 => "V" ; + G6 => "VI" ; + G7 => "VII" ; + G8 => "VIII" ; + G9 => "IX" ; + G10=> "X" ; + G11=> "XI" ; + G12=> "XII" ; + G13=> "XIII" + } ++ BIND ++ ")") ; + s2=frameTable ( + tr (th "" ++ th "Sg" ++ th "Pl") ++ + tr (th "Nom" ++ td (x.s ! Sg ! Nom) ++ td (x.s ! Pl ! Nom)) ++ + tr (th "Loc" ++ td (x.s ! Sg ! Loc) ++ td (x.s ! Pl ! Loc))) + } ; + +lin + NoDefinition t = {s=t.s}; + MkDefinition t d = {s="
Definition:"++t.s++d.s++"
"}; + MkDefinitionEx t d e = {s="Definition:"++t.s++d.s++"
Example:"++e.s++"
"}; + +lin + MkDocument d i e = {s = i.s1 ++ d.s ++ i.s2 ++ paragraph e.s} ; + MkTag i = {s = i.t} ; + +} diff --git a/src/swahili/LangSwa.gf b/src/swahili/LangSwa.gf index def8c6d4a..7821b9874 100644 --- a/src/swahili/LangSwa.gf +++ b/src/swahili/LangSwa.gf @@ -4,5 +4,6 @@ concrete LangSwa of Lang = GrammarSwa, LexiconSwa -- ,ConstructionSwa + ,DocumentationSwa --# notpresent ** { } ;