Help - Search - Members - Calendar
Full Version: Using macro to create abbreviations
Movable Type Community Forum > Additional Resources > Tips and Tricks
tkn
What I would like to do is to autocreate acronyms.

For example lets say I have an abbreviation for the United States I would normally mark it up as so:

CODE
<abbr title="United States">US</abbr>


but what I would love to do is get this to work:

CODE
<abbrev>United States</abbrev>


and using maybe the MTMacro plugin, have the first example outputted, anyway to have it automatically pick off the first letter of each word? I am not really very good with regular expressions or any of that...
fooljay
MT-Macro would be wonderful for that.

Of course, why not just write U.S. and have MT-Macro do the whole thing for you?
tkn
I'm actually planning on doing that, but then there are new acronyms that I might only use occasionally or whatever, I thought about having them collapse and expand via javascript but I think the change in text layout would be a little disorienting...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.