From b5bb4fc2b5b1d7e8ce17eb87722ba11e46a2ab2b Mon Sep 17 00:00:00 2001 From: aarne Date: Thu, 29 Apr 2004 04:03:19 +0000 Subject: multimodality exx --- grammars/timetable/TimetableHTML.gf | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'grammars/timetable/TimetableHTML.gf') diff --git a/grammars/timetable/TimetableHTML.gf b/grammars/timetable/TimetableHTML.gf index 41b7c39a0..0fec2a1ab 100644 --- a/grammars/timetable/TimetableHTML.gf +++ b/grammars/timetable/TimetableHTML.gf @@ -1,24 +1,24 @@ --# -path=.:../prelude -concrete TimetableHTML of Timetable = open Prelude in { +concrete TimetableHTML of Timetable = open Prelude, HTML in { lin MkTable cs ts = - ss ("" ++ ""++ cs.s ++ ++ ts.s ++ "
") ; + ss (intagAttr "table" + "border=ON" (intag "tr" (intag "td" [] ++ cs.s) ++ ts.s)) ; NilTrain _ = ss [] ; - ConsTrain cs n t ts = - ss ("" ++ n.s ++ t.s ++ "") ; - OneCity c = ss ("" ++ c ++ "") ; - ConsCity c cs = ss (c.s ++ "to" ++ cs.s) ; + ConsTrain cs n t ts = ss (intag "tr" (intag "td" n.s ++ t.s) ++ ts.s) ; + OneCity c = ss (intag "td" c.s) ; + ConsCity c cs = ss (intag "td" c.s ++ cs.s) ; - StopTime t = t ; - NoStop = ss ["no stop"] ; + StopTime t = ss (intag "td" t.s) ; + NoStop = ss (intag "td" "-") ; - LocTrain c s = cc2 c s ; - CityTrain c s cs t = ss (c.s ++ s.s ++ "," ++ t.s) ; + LocTrain c s = s ; + CityTrain c s cs t = ss (s.s ++ t.s) ; - T i = prefixSS "at" i ; - N n = prefixSS "train" n ; - C s = s ; + T i = i ; + N n = ss (intag "b" n.s) ; + C s = ss (intag "b" s.s) ; } -- cgit v1.2.3