aboutsummaryrefslogtreecommitdiffstats
path: root/test/funstack.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2010-11-29 22:03:40 +0200
committerArnold D. Robbins <arnold@skeeve.com>2010-11-29 22:03:40 +0200
commitda212ddb7ed3f4578f1c83d9e0e472245efbea1e (patch)
tree325d01bb8203e5ea4bd70ff06faffbf21cb93beb /test/funstack.awk
parent28436897d3289b4fe1b7e84e63c9cffecfcb17f6 (diff)
downloadegawk-da212ddb7ed3f4578f1c83d9e0e472245efbea1e.tar.gz
egawk-da212ddb7ed3f4578f1c83d9e0e472245efbea1e.tar.bz2
egawk-da212ddb7ed3f4578f1c83d9e0e472245efbea1e.zip
Doc updates. Strftime fix for PC. Check ranges in REs.
Diffstat (limited to 'test/funstack.awk')
-rw-r--r--test/funstack.awk12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/funstack.awk b/test/funstack.awk
index 9a630213..95456903 100644
--- a/test/funstack.awk
+++ b/test/funstack.awk
@@ -663,7 +663,8 @@ function html_header()
function html_label( label)
{
label = Volume "(" Number "):" Month ":" Year
- gsub(/[^A-Za-z0-9():,;.\/\-]/,"",label)
+ # gsub(/[^A-Za-z0-9():,;.\/\-]/,"",label)
+ gsub(/[^[:alnum:]():,;.\/\-]/,"",label)
return (label)
}
@@ -673,7 +674,8 @@ function html_length(s)
if (HTML)
{
gsub(/<\/?[^>]*>/,"",s) # remove SGML tags
- gsub(/&[A-Za-z0-9]+;/,"",s) # remove SGML entities
+ # gsub(/&[A-Za-z0-9]+;/,"",s) # remove SGML entities
+ gsub(/&[[:alnum:]]+;/,"",s) # remove SGML entities
}
return (length(s))
}
@@ -949,8 +951,10 @@ function TeX_to_HTML_nonmath(s)
{
gsub(/\\\&/, "\\&", s) # reduce TeX ampersands to conventional ones
- gsub(/\\[a-z][a-z] +/,"",s) # remove TeX font changes
- gsub(/\\[^A-Za-z]/,"",s) # remove remaining TeX control symbols
+ #gsub(/\\[a-z][a-z] +/,"",s) # remove TeX font changes
+ gsub(/\\[[:lower:]][[:lower:]] +/,"",s) # remove TeX font changes
+ #gsub(/\\[^A-Za-z]/,"",s) # remove remaining TeX control symbols
+ gsub(/\\[^[:alpha:]]/,"",s) # remove remaining TeX control symbols
}
}
return (s)