forked from GitHub/gf-rgl
(Hun) Fix bug with indef. article and digits
This commit is contained in:
@@ -68,7 +68,9 @@ concrete NounHun of Noun = CatHun ** open ResHun, Prelude, Coordination in {
|
|||||||
<True,True> => [] ; -- don't output "a 2 cars"
|
<True,True> => [] ; -- don't output "a 2 cars"
|
||||||
_ => quant.s ! num.n ! c }
|
_ => quant.s ! num.n ! c }
|
||||||
++ num.s ! Attrib ; -- TODO: add inflection table in numbers
|
++ num.s ! Attrib ; -- TODO: add inflection table in numbers
|
||||||
sp = \\c => quant.sp ! num.n ! c
|
sp = \\c => case <isNum num,quant.isIndefArt> of {
|
||||||
|
<True,True> => [] ;
|
||||||
|
_ => quant.sp ! num.n ! c }
|
||||||
++ num.s ! Indep ;
|
++ num.s ! Indep ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
@@ -97,7 +99,7 @@ concrete NounHun of Noun = CatHun ** open ResHun, Prelude, Coordination in {
|
|||||||
-- : Digits -> Card ;
|
-- : Digits -> Card ;
|
||||||
NumDigits dig = dig ** {
|
NumDigits dig = dig ** {
|
||||||
s = \\place => dig.s ! NCard ;
|
s = \\place => dig.s ! NCard ;
|
||||||
numtype = IsNum ;
|
numtype = IsDig ;
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
-- : Numeral -> Card ;
|
-- : Numeral -> Card ;
|
||||||
|
|||||||
Reference in New Issue
Block a user