I am happy to announce that the “curlyquotes” module for Movable Type has passed out of beta into the release stage. Many thanks to Todd of Dominey Design for testing and providing valuable feedback. Here are the updated instructions. For full details, please see this script’s info page, which lets you receive updates by email, leave comments, report bugs, ask for features, and ask questions, et cetera. Here are the updated installation directions:
- Install the MTRegex plugin. (Directions from readme.txt file)
- Get file.
- Place the ‘regex.pl’ file in your Movable Type “plugins” directory
- Place ‘regex.pm’ and ‘postproc.pm’ in a ‘bradchoate’ subdirectory underneath your Movable Type “extlib” directory.
- You should end up with something like this:
- (mt home)/plugins/regex.pl
- (mt home)/extlib/bradchoate/regex.pm
- (mt home)/extlib/bradchoate/postproc.pm
- Create a new template module called
curlyquoteswith the code from here. - Add
<$MTInclude module="curlyquotes"$>to the top of all your templates. - Replace all occurences of
<$MTEntryBody$>with<$MTEntryBody.
regex="1"$>
Usage is free, in every sense of the word, but if you could throw a link back this way I would appreciate it. Also if you improve on the code in some way, submit your changes so everyone can benefit.
What this module does: It takes straight quotes/prime mark, and makes them proper typographer’s quotes, sometimes called “curly” or “smart” quotes. So basically it takes "this" and makes it “this” using the proper HTML entities. It also works with single quotes, apostrophes, and multi-paragraph double quotes. It slices and dices!
Why? Because there is no button for a curly quote or apostrophe on the keyboard. No really, see the old post for more.