On 2/22/07, James G. Sack (jim) <[EMAIL PROTECTED]> wrote:
Stewart Stremler wrote:
> begin quoting James G. Sack (jim) as of Thu, Feb 22, 2007 at 03:15:41PM
-0800:
>> Andrew Lentvorski wrote:
>>> 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?
>>>
>> Belated response, but..
>>
>> http://www.cs.tut.fi/~jkorpela/TSV.html#html
>
> <shudder>
>
> He gives those who uses braces a bad name. Ugly code.
>
> Still, auto-generating the headers and trying to right-justify numeric
> data is a nice trick, although if one is being this complicated, using
> CSS would presumably give you better control.
>
I meant to illustrate that googling (on "tab delimited data to html")
produced a match on the neat tla 'TSV' as well as a recipe, right off
the bat.
But your remarks are right on. I apologize for pointing to code without
carefully looking at it. I won't do it again .. err, that's probably a
lie :-! Sorry, again.
I will point out again that making nice-looking tables from
tab-delimited input is precisely what Unix tbl(1) was built for. And
that must have been around 1978 or so. The more modern idea of
converting troff(1) output into HTML comes with groff.
(Ecclesiastes 1:9-14 NIV) What has been will be again, what has been
done will be done again; there is nothing new under the sun. {10} Is
there anything of which one can say, "Look! This is something new"? It
was here already, long ago; it was here before our time.
carl
--
carl lowenstein marine physical lab u.c. san diego
[EMAIL PROTECTED]
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list