t2t is a Perl script that converts standard ASCII text to HTML 4.0 tables. Any text with the delimiter embedded in it is converted to a table.
The user can specify any regular Perl expression as a delimiter; the default delimiter is the tab. As a result, t2t can easily transform any spreadsheet saved as tab delimited text to a HTML table.
The table ends with either the first line of non-delimited text or the end of the file. All other text is just written to the output file.
Here are some key features of "t2t":
· Works on Mac OS X, Unix, and Windows.
· Completely customizable.
· Process a whole directory (and all of its subdirectories) with one command.
· Convert any delimited file to a HTML source file with a table.
· Handle multiple input "tables" in one text file.
· Read from stdin and write to stdout.
· Skip a field (do not translate the field to the resulting table).
· Produce a complete HTML source file or only the table portion.
· Color the cells (separate colors for the header and the data cells).
· Produce a table displayed as a ledger.
Requirements:
· Perl
What's New in This Release: [ read full changelog ]
· Fixed bug with empty data row producing invalid XHTML.
· Fixed bug with empty data row and squeeze option producing invalid XHTML.
· Added --one as a synonym for --wholeTable.
· Fixed warnings.