WikiSyntaxTextMod → Work flow
Survey on the general approach.
Basically the script executes the major steps in the following sequence:
Now the actual standardization of wikisyntax is finished. This basic cleanup is performed automatically and with every execution.
Next, some few typographic adjustments meaningful for all latin texts are imposed.
Later the user defined replacements for plain text are performed, if any. If user defined replacements are heading for link targets oder template transclusions, they have been executed already integrated into the respective step.
It is avoided to scan the entire text many times again and again by complex regular expressions matching every single syntax problem.
In fact, the searchable strings will be scanned exactly one time for occurring of a few terms and all issues related to this pattern. With each match the local environment of the spot is investigated and all related questions will be resolved.
"<"
– If it yields to be a Tag the appropriate action is taken:
"<!--"
will be subject to a user defined comment modification."(("
– template transclusions are analyzed regarding their extension.
"["
– Possible links in brackets are detected (wikilink and URL), might be fixed, formatted, changed on user request, and protected against text changes if necessary."://"
– URL without brackets are treated as mentioned before.[ German page ]