Tagger
See:
http://taporware.mcmaster.ca/~taporware/otherTools/tagger.shtml
Description
This tool will search through a file and tag all instances of a word or phrase. It was developed to help the Globalization and Autonomy Online Compendium
http://www.globalautonomy.ca. For that project we wanted to tag TEI files to provide links to glossary articles. What it does is:
- Only looks inside the element so that headers are not tagged
- Searches for a word or phrase (it is capitalization insensitive so "Web" is the same as "web")
- Surrounds the word with the desired element with the desired attribute and value. If you enter the element name "term", attribute name "type" and value name "gloss" you end up with "<term type="gloss">Web<term>".
If you have a collection of words to tag you can upload a file with a list of words to search for and the tags to go around them. The plain text file should be a list of words (or phrases), one word (or phrase) per line.
Issues
- It won't work with plain text or HTML. It assumes an XML file with a element.
- It demands an attribute and value. Currently it assumes the attribute is "n" and that the value will be incremented for each identical item.
To Do
- We need to have a field where you can specify the element(s) within which to do the tagging. Currently it only looks in .
- We need another example that works
- We need it to work on plain text or HTML. We could have a "Ignore Tags" feature.
- We need it to ignore the attribute and value fields if they are not provided.
- We need to give an option to increment the value of the attribute "n".
--
GeoffreyRockwell - 06 Oct 2005