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

"End of Story" Symbol # Find and Change

Return to Member Forum

  • Author
    Posts
    • #76157
      Tuz
      Member

      Is the a way to look for the end of the story icon/symbol “#” so you can place it in the Find/Change Panel or the FindandChange list text?

      So I can get rid of an Ending of . # (Full Stop, Space, end of story icon((#))
      or
      So i can add a Special Bullet to the end of the story which usually ends w/a . (Full Stop)?

      Thank You
      TUZ

      P.S. For some reason the Trailing white space does not get rid of the last ¶ in the story Full Stop, Space, Return it makes it a Full Stop, Space

    • #76159
      Aaron Troia
      Participant

      Hey Tuz,

      I don’t know of any way to search specifically for the end of story icon, but you could use GREP to find all the content in the story, try this

      Find: (?s:(.+?)$)(?!~b)
      Replace: $1\r~8

      This worked for me in finding all the content in a story, and then allowing me to add a new line and place a bullet at the end.

      Let me know if that helps or if it needs tweaking.

      Aaron

    • #76161

      The GREP code for End of Story is \z – curiously missing in Adobe’s own list on https://helpx.adobe.com/indesign/using/find-change.html#metacharacters_for_searching

      It is an anchor code, just like ^ and $ and so you can use it in an expression together with a ‘real’ character, for example as

      \.\z

      but not on its own. To add a Special Bullet to the end of a story, you need something like this:

      Search: (.)\z
      Replace: $1 ~8

      (where ~8 inserts a plain bullet). See https://creativepro.com/insert-a-special-character-with-grep-styles.php for an example.

    • #76199
      Tuz
      Member

      Would like to thank you both for your help… It seemed to be a combination that ended up working…

      this is what I ended up w/…

      grep {findWhat:”(?s:(.+?)$)(?!~b)”} {changeTo:”$1~8~8″} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all double spaces and replace with single spaces.
      grep {findWhat:”~8~8″} {changeTo:”~8″, appliedCharacterStyle:”ps logo”} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false} Find all double spaces and replace with single spaces.

      Also in the FindChangeByList.jsx file there is a way to change the default radial button from Document to the Selected Story to be chosen?
      Line 85 the following “, checkedState:true” is bit of info needs to be taken to line 86 following the “Selected Story” “, checkedState:true” so it becomes…

      85: radiobuttonControls.add({staticLabel:”Document”});
      86: radiobuttonControls.add({staticLabel:”Selected Story”, checkedState:true});

      Thank You Again…
      TUZ

    • #91413
      Carey Martin
      Member

      I don’t need anything as complex (to me) as a GREP. I just want to search for the end of story marker because that’s what appears in a table cell and will appear immediately after what I’m searching for.

      What I’m attempting to do is find every instance of ’till’ in a document with a particular style, and replace it with ’tillering’. So what I need, but what InDesign does not supply in the @ break characters is the end of story marker (#).

      Neither \z nor \Z is working in the find field and surely it should be that simple?

    • #91428
      David Blatner
      Keymaster

      Carey: No, the regular “text” find/change cannot search for things like “end of story.”
      But you can do that easily with GREP, too. If you just search for till\z it will find the word “till” at the end of a story.

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