Automatic Acronyms

Acronyms are used in weblogging practically everyday with things like Mt, 6A, IIRC etc. It has been suggested for accessibility purposes that every acronym be giving a definition. Now if you use a lot of acronyms in one post it can be very tiresome to keep typing out the code everytime, so why not make MT do it automatically ?

UPDATE: The best way to do this is to install the Acronym plugin that will do all this for you, automatically! Alternatively you could do it manually as described below

To do this you will need Brad Choate's MTMacro plugin.

Create a new template module and populate with code:

<MTMacroDefine no_html="1" name="mt" string="MT"><acronym title="Movable Type">MT</acronym></MTMacroDefine>

Replicate this code for all acronyms you want and then include that template module into every template you wish the acronyms to show, don't forget to add a css definition for the acronyms, something like:

acronym {border-bottom: 1px dotted #999;}

2 Comments

Henrik Gemal said:
on Aug 18, 2004 5:09 PM | Reply

Why not use MT::Plugins::Acronym ?

Acronym is a plugin for Movable Type that adds acronym tags to known acronyms.

Get it at http://gemal.dk/mt/

Arvind Satyanarayan said:
on Aug 18, 2004 5:12 PM | Reply

Wow that is very nice. Thank you Henrik I'll add the link to the entry ! I assume that is an acronym occurs in a bit of HTML or a URL it will be ignored ?