2 # Create an asciidoc paragraph and index entry
3 # Sec Name Index Explanation
4 match($0, com"(.*) PARA (.*); *(.*); *(.*)", p) {
7 append("index", tolower(p[3]), "xref:"p[3]"["p[2]"]:: "p[4])
8 append(p[1],"","[["p[3]"]]")
10 append(p[1],"","."p[2])
14 # Create an asciidoc headline and index entry
15 # Sec Typ Name Index Explanation
16 match($0, com"(.*) HEAD(.) (.*); *(.*); *(.*)", p) {
19 append("index", tolower(p[4]), "xref:"p[4]"["p[3]"]:: "p[5])
20 append(p[1],"","[["p[4]"]]")
23 append(p[1],"",gensub(/./, p[2], "g", p[3]))