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 Style? Searching for s, ss, and ß

Return to Member Forum

  • Author
    Posts
    • #99917
      Anonymous
      Inactive

      Hello!

      Do you have any solution for my problem:
      I want to replace each letter “s”, “ss” and the german character “ß” with underlined white space.
      I tried it with following GREEP style:
      search for: (ss)|(ß)
      replace: several format options, it works well

      BUT: How can I manage, that “ss” is one item and one single “s” another one. At the moment “ss” are two new formatted “s”.
      i hope it wasn’t to abstruse.

    • #99918
      Graham Park
      Member

      You could try find s one or more times or the ß
      then replace with what you want/

      (s+)|(ß)

    • #99926
      Anonymous
      Inactive

      Thanks Graham, (s+) finds ss but changes the new style twice and not only one time. That’s my problem.

    • #99929
      Graham Park
      Member

      Not sure what you mean or are after.
      Can you give us an example of what you want
      This (s+)|(ß) finds a single s or two ss in a row or the ß and changes it to what ever you want to to be. The s and ss are replaced by one _ for instance.

      this does
      “s”, “ss” and the german character “ß”
      “_”, “_” and the german character “_”

    • #99940
      Anonymous
      Inactive

      Graham, I want to replace “ss” to “__”, “ß” to “__” and “s” to “__”

      When I do it this way, “ss” will changed to “____”(double “__”).

      What’s the mistake???

    • #99941
      Graham Park
      Member

      Not sure why you are having a problem.
      The (s+) will find one or more s in a row and replace with what you place below so enter two underscores.
      So when it finds s it will place one __
      When two ss again it will place one __

      GREP
      Find
      (s+)|(ß)

      Replace
      __

    • #99942
      Anonymous
      Inactive

      Thank’s.
      I made the mistake, that I didn’t choose “replace” but “change format”.
      Using “change format” doubles the “s” format at “ss”.

    • #99974
      David Popham
      Participant

      If you wish to apply your styling to every instance of s, ss or ß in the paragraphs you are targeting, you could use a GREP style that sets the character color to “None” and turns on the underline option with the color set to Black (or whatever color your text is).

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