Urimod: Modify URIs in HTML
Urimod is small console perl script that assists with the conversion of URIs in html documents. Urimod can change all URIs in all files in a directory tree between any combination of absolute, relative and relative-to-root. It provides an easy method of converting the URI's of an entire site or a single html document into one consistent format.
Features
- Convert any combination of URI types into one consistent type
- Checks all URIs in the html file - including anchors, images and link elements
- Preserves absolute URI's to resources external to the site
- Convert URI's in a single file, a whole directory tree or files matching a user specified regular expression
- Provides reasonable defaults for most options. For instance, if no regular expression is specified, urimod will process all files with the ".html" extension under the current working directory
- Maintains standards compliance of source files.
Requirements
Urimod requries a few Perl modules to be installed. Some of these may already be installed with your default Perl installation. If not they are easily obtainable via CPAN. the following Perl modules are required:
Known Problems
Urimod is not great at dealing with character encodings as it currently relies on perls own algorithms. If you can fix this by all means submit a patch.
Urimod will work best with utf8. Use iconv to make sure your source files have a consistent encoding before using urimod.
License
Urimod is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Download
Latest release: 0.1 - 13th April 2006 - urimod-0.1.tar.gz
Contribute
If you have an idea on how to improve urimod, find a bug or want to get in touch regarding please send an email to urimod@webtech.co.nz.
