22 } else if (listlevel) {
29 if (match(s, /^[1-9][0-9]*\) +/)) {
32 print "@note " substr(s, 1, RLENGTH-2)
33 s = substr(s, RLENGTH+1)
37 if (match(s, /^ +/) && RLENGTH >= noteindent)
38 s = substr(s, noteindent+1)
58 } else if (s ~ /^--/) {
62 } else if (match(s, /^ +/) && RLENGTH > 1) {
64 } else if (s !~ /^$/) {
74 } else if (match(s, /^ +/) && RLENGTH > 5) {
76 } else if (s !~ /^$/) {
92 if (match(s, "^ +" (listindex+1) "\\. +")) {
95 s = substr(s, RLENGTH)
97 print "@li " listindex
98 } else if (match(s, /^ +/) && RLENGTH >= listindent) {
99 s = substr(s, listindent+1)
100 } else if (s !~ /^$/) {
129 function dosect(s, n,a) {
132 if (s ~ /^Programming languages/) {
136 if (s !~ /^([1-9]\.|[A-Z]\.[1-9]| *Annex |Contents|Index|Foreword|Introduction| *Bibliography)/)
138 if (s ~ /^[0-9.]+[^0-9. ]/)
144 if (id ~ /^([A-Z]|[1-9]\.|[1-9A-Z]\.[0-9.]*[0-9]|Contents|Index|Foreword|Introduction|Bibliography)$/ &&
145 (n==1 || a[2] ~ /^[A-Z.v]/)) {
148 id = substr(id,1,length(id)-1)
149 if (seenindex || id == "Contents") {
172 if(!para && indent && ok)
178 n = split(page, a, /\n/)
180 print "@indent " indent
183 for (i = 1; i < n; i++) {
185 if (a[i] ~ /^@para/) {
191 s = substr(a[i], indent+1)
221 if (match($0, /^[0-9]+ +/)) {
225 page = page "@para " substr($0,1,RLENGTH) "\n"
226 } else if (match($0, /^ +/)) {
228 } else if ($0 !~ /^[0-9]*$/) {