20071202_AD

This commit is contained in:
ali.eldada
2007-12-02 20:59:45 +00:00
parent e7b03c9446
commit 01e50c45e4
8 changed files with 85 additions and 35 deletions

View File

@@ -10,7 +10,7 @@
resource ResAra = PatternsAra ** open Prelude, Predef in {
flags optimize=all ;
param
@@ -658,19 +658,26 @@ patHollowImp : (_,_ :Str) -> Gender => Number => Str =\xaf,xAf ->
};
clr : Str -> Str -> Str -> Gender => NTable =
\eaHmar,HamrA',Humr ->
\aHmar,HamrA',Humr ->
table {
Masc => reg eaHmar Humr;
Fem => reg HamrA' Humr
Masc => table {
Sg => indeclN aHmar;
Dl => dual aHmar;
Pl => sing Humr
};
Fem => table {
Sg => indeclN HamrA';
Dl => dual ((tk 2 HamrA') + "و");
Pl => sing Humr
}
};
{-in
table {
APosit _ => posit;
AComp c => posit ! Masc ! Sg ! Const ! c
};-}
--takes 2 words, singular and broken plural, and gives the
--complete noun inflection table
-- indeclinable nominal word (mamnuu3 mina S-Sarf)
indeclN : Str -> State => Case => Str =
\aHmar -> \\s,c => Al!s + aHmar + indecl!c;
-- takes 2 words, singular and broken plural, and gives the
-- complete noun inflection table
reg : Str -> Str -> NTable =
\kitAb,kutub ->
table {
@@ -679,7 +686,6 @@ patHollowImp : (_,_ :Str) -> Gender => Number => Str =\xaf,xAf ->
Pl => sing kutub
};
--takes the sound noun in singular and gives the
--complete noun inflection table of sound feminine plural
sndf : Str -> NTable =
@@ -756,6 +762,14 @@ patHollowImp : (_,_ :Str) -> Gender => Number => Str =\xaf,xAf ->
}
};
--indeclinables (mamnuu3 mina S-Sarf)
indecl : Case => Str =
table {
Nom => "ُ";
_ => "َ"
};
--declection 2 (ends in yaa') of the singular or broken plural words
dec2sg : State => Case => Str =
table {
@@ -947,6 +961,11 @@ patHollowImp : (_,_ :Str) -> Gender => Number => Str =\xaf,xAf ->
isNum : Bool
} ;
Predet : Type = {
s : Case => Str;
isDecl : Bool
};
Agr = { pgn : PerGenNum; isPron : Bool} ;
AAgr = { g : Gender ; n : Number} ;