!body topmargin="15" leftmargin="5" alink="#ff8080" bgcolor="#e2dfc7" link="#dd0000" marginheight="5" marginwidth="5" text="#321e04" vlink="#118dcc">
Compare the readability of the same data as plain text within a <pre> element:
**a **b **c a b c a b c a b c *^ * * a1 a2 b c a1 a2 b c a1 a2 b c * * * *^ * * * * *^ a1 a2 b c1 c2 c3 a1 a2 b c1 c2 c3 a1 a2 b c1 c2 c3 a1 a2 b c1 c2 c3 * * * *v *v * a1 a2 b c12 c3 a1 a2 b c12 c3 a1 a2 b c12 c3 *v *v * * * a b c12 c3 a b c12 c3 a b c12 c3 * *^ *v *v a b1 b2 c a b1 b2 c a b1 b2 c * *v *v * a b c a b c a b c *- *- *-
For humdrum files with no subspines, the content of the Humdrum data can be recovered by copying/pasting the table from a webpage into a plain-text file if you are using Mozilla Firefox or Google Chrome. Microsoft Internet Explorer will separate columns by a space and not a tab, so it cannot be used in this way. For cases where you want to allow copy/paste of Humdrum data on a webpage in the general case with/without subspines, you can use the -t option to include a textarea underneath the table which contains a duplicate of the Humdrum data that can be copy/pasted from all browsers:
humtable -t input
Using the -p option will generate a complete HTML page containing a the Humdrum table as its contents:
humtable -p input > output
Multiple Humdrum files can be given to humtable at the same time, and they will be concatenated into a series of tables in the output:
humtable input1 input2
Note that humtable currently has a few colorization features. In the above example, the global comments are highlighted in blue. Also, reference records will currently be highlighted in green.
In the HTMLified Humdrum data, reference records lines contain tooltips which explain the meaning of the reference record abbreviation. Move your mouse over any of the following lines to see a brief description of the meaning of the reference record.
humtable -p h://beethoven/sonatas/sonata01-1.krn > output
In this example, note that you can click on labels in the thru expansion lists to navigate to the data line where the label is used.
The source code for the program was last modified on 27 Mar 2011. Click here to go to the full source-code download page.