Category Archives: WordPress

The open source publishing platform I co-founded — development, releases, community, and the ecosystem.

Curly Quotes in Movable Type

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:

  1. Install the MTRegex plugin. (Directions from readme.txt file)
    1. Get file.
    2. Place the ‘regex.pl’ file in your Movable Type “plugins” directory
    3. Place ‘regex.pm’ and ‘postproc.pm’ in a ‘bradchoate’ subdirectory underneath your Movable Type “extlib” directory.
    4. 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
  2. Create a new template module called curlyquotes with the code from here.
  3. Add <$MTInclude module="curlyquotes"$> to the top of all your templates.
  4. 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.

Greyscale

A return to normalcy? Not quite, but it’s a beginning. Grief is a natural reaction to extraordinary events, it’s a protection mechanism to help us cope. However when it’s prolonged it can have the negative effect of holding us from moving forward. It’s impossible not to grieve with the images being shown on every station and website, however, things must move forward. I think that a lot of people took a step back and thought about things yesterday, and I couldn’t think of a better way to honor the memory of September 11th.

9/11 is a flashbulb memory for most everyone; every trivial detail about where we were, who we were with is burned into our memories. For my generation, this is really the first event of that kind, thankfully. I tried to think of today as a day of quiet introspection–remembrances, resolutions, emotions, and most of all, examination of today’s events. Where has the US gone since 9/11? I think reaction-ism on the part of some lawmakers has hurt the very things we’re trying to protect: our liberty, freedom, and ultimately, safety for ourselves and our progeny.

Anyway, mostly because I don’t want these things to fade in my own mind, I have set it up so on the 11th of every month the memorial (greyscale) theme will load for that day.

Curly Quotes for Movable Type

I’ve finally gotten around to writing the instructions for Movable Type users to implement the curlme function using Brad Choate’s MTRegex plugin. The regex is the same, just the manner that it’s being implemented is a bit different. I’ve tested this out pretty extensively across this site, and there have been no problems. In fact, it’s in action right now. Once again I would like to thank Mark Pilgrim, who inspired this all.

The best instructions I can give, since I’m not a MT user myself, are to follow the very excellent instructions I’ve summarized below, replacing the MTAddRegex tags with the new ones.

  1. Install the MTRegex plugin.
  2. Create a new template module called curlyquotes with the following code:
    Code depreciated, see latest version
  3. $MTInclude module=”curlyquotes”$> to the top of all your templates.
  4. Replace all occurrences of <$MTEntryBody$> with <$MTEntryBody

    regex="1"$>
    .

And you’re done! Post any questions you might have and I’ll respond ASAP.

Macro

Through Kymberlie I found a very cool photo contest at photojunkie that I’ve decided to enter. The theme of the contest is “Macro,” which is one of my favorite features on my camera. I have a ton of macro shots, so thinking of what to do was a challenge. The first thought that came to my mind was a face, and I had a particular model in mind but she isn’t available this Sunday, so I dove into the photolog to find one that suits. Kudos to Bridget. Without further ado, here it is:

KemahTake a second look at the horizon :), we’re actually on the big swinging rides at Kemah.

8-31-2002

8-31-2002—even though summer is over now, in spirit if not in weather, I wanted to try and capture some of the things that symbolize summer to me: ants, grass, dirt, bushes, sun. Update: added about a dozen more photos from tonight. Interesting perspectives at the River Oaks shopping center, and some car logos, a new theme.

Comments Back

Well it looks like the issues with MySQL 4.03 aren’t going to resolved anytime soon, and it was messing up other applications anytime a variant of SELECT DISTINCT was used so I went ahead and rolled the installation back to 4.02. So things should be working fine now; if you see any bugs drop me an email or something. I’m getting ready to put some new summer-themed pictures up, so keep your dials locked.

Houston

Back in Houston, finally, and it’s nice adjusting back to old habits and comforts. Besides family and pets, I think the thing I missed most were my speakers, and it’s bliss to hear high fidelity sound again. Uploaded the last day from the trip, so enjoy! I’m also working on some layout/design changes for this site. The plan is to have a different theme for every month.