Thanks for coming to InDesignSecrets.com, the world's #1 resource for all things InDesign!

GREP of the Month: Character Equivalents

Searching for characters when a rose is a róse is a røse…


This article appeared in Issue 83 of InDesign Magazine.

Intellectually, I understand that there is a difference between a, á, and à. As an American, I can’t actually pronounce the difference, but that’s my problem. And, of course, then there’s å, â, and ä (which are relatively common), and ã, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, and ? (which are mystifying).

But GREP is usually extremely precise in its pattern matching, so if you search for a  you will find just that one character, no more and no less. That’s sad, because sometimes you want to search for “any a, no matter the accent.” You could do that with the code [aáàåâäã?????????????] but that would be insane, especially if you had to search for several characters, each of which may or may not have an accent.

. . . .
This article from InDesign Magazine is for InDesignSecrets premium subscribers only. To continue reading, please log in above, or sign up for a premium membership today! Thanks for supporting InDesignSecrets!
David Blatner
David Blatner is the co-founder of the Creative Publishing Network, InDesign Magazine, and the author or co-author of 15 books, including Real World InDesign. His InDesign videos at Lynda.com are among the most watched InDesign training in the world. You can find more about David at 63p.com.
David Blatner

Latest posts by David Blatner (see all)

Related Articles
Comments

Leave a Reply

Your email address will not be published. Required fields are marked *