tuning resource API

This commit is contained in:
aarne
2005-02-06 09:52:19 +00:00
parent bd432cf147
commit c30eebbba6
35 changed files with 2065 additions and 1432 deletions

View File

@@ -0,0 +1,34 @@
concrete TimeSwe of Time = NumeralsSwe **
open Prelude, MorphoSwe, ResourceSwe, ParadigmsSwe in {
lincat
Date = SS ;
Weekday = N ;
Hour = SS ;
Minute = SS ;
Time = SS ;
lin
DayDate day = ss (day.s ! singular ! Indef ! nominative) ;
DayTimeDate day time = ss (day.s ! singular ! Indef ! nominative ++ "klockan" ++ time.s) ;
FormalTime = infixSS "och" ;
PastTime h m = ss (m.s ++ "över" ++ h.s) ;
ToTime h m = ss (m.s ++ "i" ++ h.s) ;
ExactTime h = ss (h.s ++ "prick") ;
NumHour n = n ;
NumMinute n = n ;
monday = regN "måndag" utrum ;
tuesday = regN "tisdag" utrum ;
wednesday = regN "onsdag" utrum ;
thursday = regN "torsdag" utrum ;
friday = regN "fredag" utrum ;
saturday = regN "lördag" utrum ;
sunday = regN "söndag" utrum ;
} ;