-- make a script for computing examples -- usage: runghc MkExx.hs koe.gfs -- then: gf -retain -s ../alltenses/TryRon.gfo let ident = mkIdent $ unwords $ takeWhile (/="--") $ words l in [add $ psq ident] '-':_ -> [] _ -> [ add $ psq l, add $ "cc -one " ++ l, add $ psq "*" ] add = ('\n':) psq s = "ps \"" ++ s ++ "\"" -- makes mkUtt : QS -> Utt to mkUtt-QS-Utt mkIdent :: String -> String mkIdent = concatMap unspec where unspec c = case c of ' ' -> "" '>' -> "" '(' -> "" ')' -> "" ':' -> "-" _ -> [c]