Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
infile: "input.csv";
|
||||
outfile: "table.html";
|
||||
instream: openr(infile);
|
||||
outstream: openw(outfile);
|
||||
|
||||
printf(outstream, "<TABLE border=\"1\">~%");
|
||||
nr: 0;
|
||||
while (line: readline(instream))#false do (
|
||||
nr: nr + 1,
|
||||
line: ssubst("<", "<", line),
|
||||
line: ssubst(">", ">", line),
|
||||
value_list: map(lambda([f], strim(" ", f)), split(line, ",")),
|
||||
if nr=1 then printf(outstream, " <THEAD bgcolor=\"yellow\">") else printf(outstream, " <TBODY bgcolor=\"orange\">"),
|
||||
printf(outstream, "<TR>"),
|
||||
for value in value_list do printf(outstream, "<TD>~a</TD>", value),
|
||||
printf(outstream, "</TR>"),
|
||||
if nr=1 then printf(outstream, "</THEAD>~%") else printf(outstream, "</TBODY>~%"));
|
||||
printf(outstream, "</TABLE>~%");
|
||||
|
||||
close(instream);
|
||||
close(outstream);
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<TABLE border="1">
|
||||
<THEAD bgcolor="yellow"><TR><TD>Character</TD><TD>Speech</TD></TR></THEAD>
|
||||
<TBODY bgcolor="orange"><TR><TD>The multitude</TD><TD>The messiah! Show us the messiah!</TD></TR></TBODY>
|
||||
<TBODY bgcolor="orange"><TR><TD>Brians mother</TD><TD><angry>Now you listen here! He's not the messiah; he's a very naughty boy! Now go away!</angry></TD></TR></TBODY>
|
||||
<TBODY bgcolor="orange"><TR><TD>The multitude</TD><TD>Who are you?</TD></TR></TBODY>
|
||||
<TBODY bgcolor="orange"><TR><TD>Brians mother</TD><TD>I'm his mother; that's who!</TD></TR></TBODY>
|
||||
<TBODY bgcolor="orange"><TR><TD>The multitude</TD><TD>Behold his mother! Behold his mother!</TD></TR></TBODY>
|
||||
</TABLE>
|
||||
Loading…
Add table
Add a link
Reference in a new issue