
On Fri, Dec 03, 2004 at 10:52:25AM -0500, Joshua Hutchinson wrote:
The hard part is getting the table info within PG text 80 column width.
It is not always possible of course.
FYI, this table becomes this in TEI markup (NOTE: I made the second
That looks simple enough.
Club column just continue under the first for simplicities sake):
Change it to HTML: -=-=-= <table border="0"> <tr> <td colspan="4" align="center">THE RECORD OF 1875.</td> [...] -=-=-= then replace: row -> tr cell -> td then "w3m -dump table.html" gives: $ w3m -dump table.html THE RECORD OF 1875. Club. Won. Lost. P.C. Boston 71 8 .809 Athletic 55 28 .756 Hartford 54 28 .639 St. Louis 29 39 .574 Philadelphia 37 31 .544 Chicago 30 37 .448 Mutual 29 38 .426 St. Louis Reds 4 14 .222 Washington 4 22 .156 New Haven 7 39 .152 Centennial 2 13 .133 Western 1 12 .077 Atlantic 2 42 .065 (the star after St. Louis has disappeared). If you need it embedded in a program I can try to code the algorithm, depending on the programming language you want (Perl should be easy). Then you can detect cells with just numbers in them should be right-aligned, etc. It should also be easy to translate this to LaTeX for PDF/DVI/PS output.