abc2xhtml.sh is a Bourne shell script
which expands the ABC music contained in HTML files, using
abcm2ps version >= 6.4.1.
The file sample6.xhtml is generated from sample6.html (look at the source) by the command:
and the file sample6-raw.xhtml is generated from the same file sample6.html by:
./abc2xhtml.sh sample6.html sample6.xhtml
abcm2ps sample6.html -XO sample6-raw.xhtml
Here is a first tune in the current paragraph:
X:1 T:First tune M:C L:1/4 K:C cccd|e2d2|cedd|c4||
(note the empty line at end of tune)
This music X:2 %%rightmargin 10cm T: M:none=4/4 K:C dddd|A2A2|dcBA|G4| is inlined.
In this table, you may see the ABC source and the resulting music.
X:2 T:Second tune M:C L:1/4 K:C cccd|e2d2|cedd|c4||
|X:2 T:Second tune M:C L:1/4 K:C cccd|e2d2|cedd|c4|||
Remote tune by <embed>
(note the place of X: in the <pre> block)
(in the same block, the space before T: is needed for direct abcm2ps rendering)
Constraints in the HTML file:
<head>tag must appear at start of line.
X:at start of line and end on a blank line.