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

override GREP style formatting?

Return to Member Forum

  • Author
    Posts
    • #54589

      So I have some Paragraph styles that use GREP to change our product names from Light to Regular, for a bold effect. There are a few product names that are similar to industry terms used in the copy. I'm trying to revert those uses of the “product name” to Light so they appear like normal copy. I swear I used to be able to select the text and change if from Regular to Light and have it work, or I could use the Eyedropper and pick up the Light formatting from surrounding copy, but now that isn't work.

      When I try to manually change it from Regular to Light, it bounces back to Regular. Interestingly, if I try changing it to Condensed or one of the other type faces, it works. Any what's going on? Was there some update that “fixed” the original behavior? The only other solution I've found is to create a Character style that's the same as the formatting I want and apply that, but it seems silly to have to do that to cancel out the Character style the GREP style is applying.

      Thank you.

    • #55296
      CalvinFold
      Participant

      I've been meaning to look into this myself, for those times when I make a GREP style to format something, but occassionally want to “undo” the styling for a specific instance.

      I just did some experimenting, and it looks like if you manually apply a Character Style it will over-ride one applied by a GREP Style. The trick is, the over-riding character style has to be explicit enough to “blot out” any attributes from the GREP Style.

      EXAMPLE:

      I have a GREP Style that applies a Character Style named “Computer Code” to e-mail addresses. It changes the font, size, and color. If I manually apply a Character Style onto that e-mail address whose only attribute is “color=red” then the GREP Style's font and size remain, but the overlayed “red” will take precidence.

      So in order for the “overlay” to work the Character Style has to explictly state all the attributes to put-back.

      The only problem I see, though it could be a biggie, is if you change the Paragraph Style at any point, you'll have to remember to match-up the overlay Character Style to match.

      Does that make any sense? I found it hard to describe…

    • #101950
      Anonymous
      Inactive

      I have experimented, and it looks like if you manually apply a Character Style it will over-ride one applied by a GREP Style. The trick is, the over-riding character style has to be explicit enough to “blot out” any attributes from the GREP Style for my site google feud .

    • #101969
      Graham Park
      Member

      You best solution is to get your GREP correct or more explicit,
      The second solution is the make a second GREP, character style to REGULAR. with the Industry Terms, male them very exact and place lower on the list of GREP so it overrides the first GREP.

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