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

GREP format rules in paragraph styles – synchronise non-inherited searches?

Return to Member Forum

  • Author
    Posts
    • #94962

      Dear readers,

      i’m looking for a solution for this problem:

      – i have a simple paragraph style “text”, that has two GREP formatting rules.
      – i have a second paragraph style “heading”, that initially completely inherits the GREP formatting rules from “text”

      – now i have to make a small change in the GREP rules in “heading” (only change the style assigned to one of the searches, but the search strings itself stays the same). That moment, it stops inheriting *all* the GREP rules from “text” at once (even those that were not touched, that’s known indesign behaviour, teach me wrong if i’m not up to date).
      – next, i have to adjust the search string in the “text” paragraph style, as some more terms to be formatted are added by marketing. The dilemma is, that this change is not inherited anymore by “heading” as i made that minor change there before (not affecting search strings, but only format assigned).

      So i’m looking for a way to update the search strings i did in “text” in that “heading” format too, but leave the changed style assignment intact.

      I guess this is something Indesign can’t do on it’s own, but maybe scripts could? I’m thinking of a “take all search strings from A, and apply them to X Y and Z / apply them to all formats that have GREP rules non-inherited anymore”.
      (question is what would happen on grep rules that are only present in “text” but not in “heading”, but this case will not happen in my usecase)

      Thanks for any idea.

    • #94963
    • #94965
      David Blatner
      Keymaster

      When you base one paragraph style on another, InDesign looks at what is different between the two styles. You are correct that if you change any one thing about grep styles, then ALL the grep styles are considered “different.”

      The solution is to make the grep styles the same again. That re-establishes the link.

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