User:Gah4/awk

IAEA table B1
tags to find the appropriate part of table

BEGIN { table=1; OFS1="|-\n" OFS2=""; OFS3="|"; OFS3h="!"; OFS4=""; OFS5="||" OFS5h="!!" OFS6="" OFS7="|" COLS=6; nextrow=1; skip=1; rowspan[1]=rowspan[2]=rowspan[5]=rowspan[6]=1; print "{| class=\"wikitable\"";  # } }
 * 1) which columns are allowed to rowspan:
 * 2) 0 means don't span, non-zero span like that column
 * 1) print wikitable head

/^#/ { next }

/^