forked from GitHub/gf-rgl
(Ara) Assimilate definite article with alveolar consonants
This commit is contained in:
@@ -847,25 +847,19 @@ patHollowImp : (_,_ :Str) -> Gender => Number => Str =\xaf,xAf ->
|
|||||||
_ => ""
|
_ => ""
|
||||||
};
|
};
|
||||||
|
|
||||||
|
-- "Sun letters": assimilate with def. article
|
||||||
|
sun : pattern Str = #("ت"|"ث"|"د"|"ذ"|"ر"|"ز"|"س"|"ش"|"ص"|"ض"|"ط"|"ظ"|"ل"|"ن") ;
|
||||||
|
|
||||||
|
vow : pattern Str = #("َ" | "ِ" | "ُ") ;
|
||||||
defArt : State -> Str -> Str = \st,stem ->
|
defArt : State -> Str -> Str = \st,stem ->
|
||||||
let arra = "الرَّ" ;
|
let al = "ال" in
|
||||||
arri = "الرِّ" ;
|
case st of { -- TODO rest of the assimilations
|
||||||
arr = "الرِّ" ;
|
Def =>
|
||||||
atta = "التَ" ;
|
case stem of {
|
||||||
atti = "التِّ";
|
s@#sun + v@#vow + x => al + s + v + "ّ" + x ; -- vowel before shadda
|
||||||
att = "التّ" ;
|
s@#sun + x => al + s + "ّ" + x;
|
||||||
al = "ال" ;
|
x => al + x } ;
|
||||||
in case st of { -- TODO rest of the assimilations
|
_ => stem
|
||||||
Def => case stem of {
|
|
||||||
ra@"رَ" + x => arra + x ;
|
|
||||||
ri@"رِ" + x => arri + x ;
|
|
||||||
r@"ر" + x => arr + x ; -- no vowel specified
|
|
||||||
ta@"تَ" + x => atta + x ;
|
|
||||||
ti@"تِ" + x => atti + x ;
|
|
||||||
t@"ت" + x => att + x ; -- no vowel specified
|
|
||||||
_ => al + stem
|
|
||||||
} ;
|
|
||||||
_ => "" + stem
|
|
||||||
};
|
};
|
||||||
|
|
||||||
--declension 1 (strong ending) of the singular or broken plural words
|
--declension 1 (strong ending) of the singular or broken plural words
|
||||||
|
|||||||
Reference in New Issue
Block a user