mod_acronym is a sample filter module for Acronyms.
Installation:
Directives:
AcronymFile "/path/to/acronyms.txt"
Fileformat:
< acronym > ':' < description > 'n'.
or in perl: ^s*([^:]+)s*:s*(.*)$
Lines starting with a # are ignored.
Permited
On global server level only.
AcronymEnable < yes|no >
Permited
On resource level.
Compile information:
compile(c), install(i) and activate(a) with
apxs -cia mod_acronym.c
Use information:
configure by adding something like:
AcronymFile /usr/share/misc/airport
< Directory /www/htdocs/foo >
AcronymEnable yes
.....
< /Directory >
in your httpd.conf.
Caveats:
· Example code - very inefficieny.
· Does not respect html comments, tags, etc.
· Handles simple strings only - should use ptr/len to cope with binary/utf8/binary formats.
· Mangles Content-length.
· Hardcoded HTML.
· Primitive acronym detection; inflexible and inefficient.
· Ignores tags like .
· Relies on a non configurable image 'dagger.gif'.
· Many, many more..
Requirements:
· Apache 2.x
Product's homepage
Requirements:
· Apache 2.x