mirror of
https://github.com/GrammaticalFramework/gf-rgl.git
synced 2026-05-27 17:08:54 -06:00
NumeralHrv: thousands (some morpho questions to check)
This commit is contained in:
@@ -103,26 +103,24 @@ lin pot2plus d e = {
|
|||||||
|
|
||||||
lin pot2as3 n = n ;
|
lin pot2as3 n = n ;
|
||||||
|
|
||||||
{-
|
|
||||||
lin pot3 n = bigNumeral (mkTh (determinerStr n) n.size) ;
|
lin pot3 n = bigNumeral (mkThousand n.s.fsnom n.size) ;
|
||||||
|
|
||||||
lin pot3plus n m = {
|
lin pot3plus n m = {
|
||||||
s = (invarNumeral (mkTh (determinerStr n) n.size ++ determinerStr m)).s ; ---- TODO inflection?
|
s = invarAdjForms (mkThousand n.s.fsnom n.size ++ m.s.msnom) ; ---- TODO inflect m
|
||||||
size = tfSize m.size
|
size = m.size
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
oper tfSize : NumSize -> NumSize = \sz ->
|
----oper tfSize : NumSize -> NumSize = \sz ->
|
||||||
table {Num1 => Num5 ; other => other} ! sz ;
|
---- table {Num1 => Num5 ; other => other} ! sz ;
|
||||||
|
|
||||||
oper mkTh : Str -> NumSize -> Str = \attr,size ->
|
oper mkThousand : Str -> NumSize -> Str = \attr,size ->
|
||||||
case size of {
|
case size of {
|
||||||
Num1 => "tisíc" ;
|
NS_1 => "tisuću" ; -- BMS: hiljadu etc
|
||||||
Num2_4 => attr ++ "tisíc" ;
|
NS_2_4 => attr ++ "tisuće" ;
|
||||||
Num5 => attr ++ "tisí"
|
_ => attr ++ "tisuća"
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
oper determinerStr : Determiner -> Str = \d -> d.s ! Masc Anim ! Nom ;
|
|
||||||
-}
|
|
||||||
|
|
||||||
-- -- Numerals as sequences of digits have a separate, simpler grammar
|
-- -- Numerals as sequences of digits have a separate, simpler grammar
|
||||||
lincat Dig = {s : Str ; size : NumSize} ;
|
lincat Dig = {s : Str ; size : NumSize} ;
|
||||||
|
|||||||
Reference in New Issue
Block a user