I’ve improved acronymmer.py, my script for adding acronym tags to posts in ecto. It will work with any file, however, that is passed as an argument to the script.
There is one issue with ecto, and that is that abbr tags are not recognised by the Rich Text parser, so I’ve just set it to convert tags to acronym only for the time being. (Note to Adriaan: You should fix this!)
Don’t run this script over the same text twice: it will re-tag them, resulting in messy (but still legal) code.
Also, this needs a little fixing: the dictionary of items needs to return keys in size order, rather than just randomly.
(more…)