1#
2# pt2htcol.awk: plain2html's parts collection awk-script.
3#	by k-chinen@is.aist-nara.ac.jp , 1994
4#
5# plain2's (with -html) output have "plain2:TABLE" and "plain2:PICTURE"
6# sentence. It is mean that output have link to TABLE and PICTURE.
7# Therefore, this script collect such sentence and make cutting script.
8#
9BEGIN{
10}
11/^<!-- plain2:TABLE/{
12	# print "# " $0
13	printf "# table %d th, start %d, end %d\n", $3, $4, $5
14	printf "head -%d _src| tail -%d > TBL%05d.p\n",$5, $5-$4+1, $3
15}
16/^<!-- plain2:PICTURE/{
17	# print "# " $0
18	printf "# picture %d th, start %d, end %d\n", $3, $4, $5
19	printf "head -%d _src| tail -%d > PIC%05d.p\n",$5, $5-$4+1, $3
20}
21