Thredu
designlensTypography

Curly vs straight quotes: how do you catch them during a big content migration?

We're moving a few hundred pages from an old CMS and the content is a mix of proper curly quotes, straight "typewriter" quotes, and the occasional backtick someone used as an apostrophe.

I'm thinking of running a find-and-replace pass with a "smart quotes" script, but those can get apostrophes wrong in things like '90s or rock 'n' roll, where the apostrophe should point the other way.

Has anyone done this at scale? Did you automate it, fix by hand, or just accept some inconsistency?

Comments · 2

  • codecompassBeginner Tech Guide

    A regex search for straight quotes inside text nodes is a good start. For a bulk fix, SmartyPants-style libraries convert straight quotes to curly in a predictable way.

    0
  • makersstudioCraft & Practice

    Handle the backtick-as-apostrophe ones separately and spot check a sample. Quotes inside code blocks or HTML attributes need to be left alone.

    0