Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Find phrase, replace with glyph?

Return to Member Forum

  • Author
    Posts
    • #59951
      Sonya Reasor
      Participant

      Hi Indesigners! I hope this is something easy I'm overlooking. I want to find instances of the phrase “command key” in a list of keyboard shortcuts, and replace it with the glyph for the command key (GID 4972) in Apple Symbols. I can see how to replace one glyph with another, but not replace a phrase with a glyph. I thought that perhaps the recent hidden feature from the podcast, “load selected glyph…” might help, but while it does load the glyph, it loads in the glyph tab of the find/change palette, and not in the text tab. But there must be a way to indicate the glyph in the “change to” slot in the text tab, no?

      Thanks for any help!

    • #59952

      Easiest way is to insert it anywhere in your document from the Glyphs panel, then use Cut 'n Paste to get it into the Change To field.

      You might want to set the font as well in the Change To formatting (even better would be to create a character style for it).

    • #59953
      Sonya Reasor
      Participant

      Yes, I'd like to cut and paste it in but it won't; it just gives me a blank. Sorry, I should have mentioned that I tried that.

    • #59954

      .. a blank? I got (for some reason) the code “^+”, but it didn't work anyway.

      I can tell ya why it doesn't work. The regular Find/Change stuff only works correctly with Unicode encoded characters — and the Command Key code character you specify has a Glyph ID (which is no more than the nth index of the glyph in this font) but it doesn't have a Unicode code.

      Now, normally I'd advise something like “first insert any other character from Apple Symbols that does have a Unicode, then use Find/Change Glyph to change this one into the one you want”, but there is an easier way.

      1. Copy your Command Key character out of a text frame as you did before.

      2. This time, put the code “^c” (lowercase cee) in your Change To field.

      3. Change All. Don't worry about the ultra-weird screen redrawing, it's just something Adobe ought to fix someday! If you scroll the screen a bit, you will see the text redraw correctly.

      The magic code “^c” stands for “Insert Clipboard text with all formatting”, and a quick test shows it works as advertised.

    • #59955
      Sonya Reasor
      Participant

      And that right there, ladies and gentlemen, is magic. Thank you, sir! It worked perfectly and I learned a new thing. Thanks again!!

Viewing 4 reply threads
  • The forum ‘General InDesign Topics (CLOSED)’ is closed to new topics and replies.
Forum Ads