preserve 1.0

This commit is contained in:
aarne
2006-06-22 22:27:48 +00:00
parent 251bc4c738
commit 4821244741
569 changed files with 0 additions and 0 deletions

View File

@@ -1,22 +0,0 @@
mkEd file = do
let out = "new.tmp"
writeFile out ""
ss <- readFile file >>= return . lines
mapM_ (\s -> appendFile out (addIng s) >> appendFile out "\n") ss
addEd line = case words line of
c@('V':_):ar:p:b:v:sc:_ -> unwords $ [c,ar,p,b,v,b,past (init v) ++ "\"",sc]
_ -> line
where
past v = case last v of
'e' -> v ++ "d"
'y' -> init v ++ "ied"
_ -> v ++ "ed"
addIng line = case words line of
c@('V':_):ar:p:b:v:_:ed:sc:_ -> unwords $ [c,ar,p,b,v,b,ed,b,ing (init v) ++ "\"",sc]
_ -> line
where
ing v = case last v of
'e' -> init v ++ "ing"
_ -> v ++ "ing"