Find and Replace a stubborn Unicode glyph
- This topic has 2 replies, 2 voices, and was last updated 6 years, 1 month ago by .
- You must be logged in to reply to this topic.
Learn / Forums / General InDesign Topics / Find and Replace a stubborn Unicode glyph
Learn / Forums / General InDesign Topics / Find and Replace a stubborn Unicode glyph
OK, I caused myself this mess and can’t figure out how to fix it. I wanted to replace all the smart quotes after numbers to be a straight quote. My fonts don’t have a proper prime character and I can live with the straight quote.
I don’t know what I am doing with GREP, but fond a script and tested it on a few and it seemed to do what I wanted, so ran it against every chapter in a book.
Here is my GREP:
Find:
(?<=\d)”
Change:
~”
I thought it worked fine but in proofing have found an odd character after some numbers. It is an IJ ligature, unicode #0132
I think, easy enough, I will just use the unicode number to find that glyph and replace it.
Find:
\x{0132}
I am looking at one on my screen, but the Find/Change finds nothing. Maybe my code it wrong? I test with \x{0041} and find capital A, test with \x{0042} and find a capital B. Code is working but not finding the glyph I want to get rid of.
1. Why did I get these glyphs?
2. Why doesn’t the Find/Change work to fix it?
3. How can I get rid of them short of eyes on proofing?
Found some that got replaced by Unicode 002E
This is really strange.
Maybe turn off smart quotes (Typographer’s quotes) before doing the find/replace, then turn back on afterwards?
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!