Gus Wirth wrote: > Gabriel Sechan wrote: >> >>> From: Andrew Lentvorski <[EMAIL PROTECTED]> >>> I'm doing a lot of work with truth tables and digital logic for my >>> class. I'm really beginning to loathe creating tables by hand. >>> >>> Anybody have any suggestions for a way to enter data in a nice >>> tabular form and then have a program spit out either a >>> <table></table> or <div></div> HTML file? > >> Can OO's spreadsheet program export as html? >> >> If not, it should be trivially easy to make a perl program that reads >> csv and turns it into a table. Suck up the file, output table header, >> foreach line in the file, split on ',' and output the row. > > Don't try to use OpenOffice. I just did a quick check, and the output is > some XHTML that should be cast into the pits of hell before being > unleashed onto humanity. > > Gus
This is an intentional regression in this thread that has morphed into a discussion of xhtml and web standards. Ooffice can _save as .._ html or _export .._ to xhtml. The html looks fairly simple; I concur that the xhtml is *not intended for human consumption*! It does become more understandable if it is pretty-formatted with [the wonderful] tidy program http://tidy.sourceforge.net/ Surely, for the purpose apl asked about, importing text into a word processor, writing as html _or_ xhtml seems roundabout. Arguably slightly less contorted but about equally roundabout is importing text into a spreadsheet and saving/exporting as [x]html. In any case, the original question seems best answered by cdl's suggestion about tbl, or a simple script (perl is as good as any). Now I feel more comfortable going back to the future and defending W3C. Regards, ..jim -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
