Find and Replace a stubborn Unicode glyph

Learn / Forums / General InDesign Topics / Find and Replace a stubborn Unicode glyph

Viewing 2 reply threads
  • Author
    Posts
    • #102486

      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?

    • #102487

      Found some that got replaced by Unicode 002E

      This is really strange.

    • #102511

      Maybe turn off smart quotes (Typographer’s quotes) before doing the find/replace, then turn back on afterwards?

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
>