4 Replies Latest reply on Aug 21, 2014 2:37 PM by Dobygm

    bullet on end of the story

    Dobygm

      I have again a "little" problem. How can I add bullet character on end of the story / end of the selection. As in the newspapers, right-aligned in the last paragraph line. thank you very much.

        • 1. Re: bullet on end of the story
          Obi-wan Kenobi Adobe Community Professional

          Hi,

           

          About the end of the story, create the first bullet, copy it with its tab. and launch the following regex:

           

          Capture d’écran 2014-08-21 à 21.34.44.png

          • 2. Re: bullet on end of the story
            Laubender Adobe Community Professional & MVP

            @Dobygm – you can do that without scripting. Just with a GREP Search/Replace.


            Even better: If your text already has a right indent tab plus an extra character at the end of the story, one can do it with a GREP Style using a character style with a special font. You can add these two characters by a GREP Search/Replace.

             

            A GREP Style for the last two characters could be a right indent tab followed by the letter n at the end of the selection or the end of the paragraph:

              ~yn$

             

            AND/OR a right indent tab followed by the letter n at the end of the story:

              ~yn\z

             

            If you now use a font like Zapf Dingbats for the formatting of the character styles that will be triggered by the GREP Styles, you'll get a square bullet that will align right. One GREP Style for the end of paragraphs, one for the end of story. Semi automatically so to say.

             

            See a screenshot here. Left formatted without the GREP Styles, right formatted with two GREP Styles.


            Style one will apply "Zapf Dingbats" together with the fillcolor red.
            Style two will apply "Zapf Dingbats" together with the fillcolor green.

             

            TwoGREPStylesAtWork.png

             

            GREPStylesRevealed.png

             

            Uwe

            • 3. Re: bullet on end of the story
              Dobygm Level 1

              Thank you. simple way to solve the problem... I'm new in the script, and I have many doubts

              • 4. Re: bullet on end of the story
                Dobygm Level 1

                Also thanks. I will try to combine it with another script, I think I'll make it