Skip navigation
Currently Being Moderated

[CS3] Can a paragraph style add a character?

Mar 27, 2012 9:53 AM

Hello,

 

I have paragraphs that are interviews. The raw text looks like this:

 

Interviewer: This is my question...

 

How I want it to look:

 

INTERVIEWER:[non-breaking space] This is my question...

 

It is easy enough to make a nested style that applies small caps through to the colon. But can a style be constructed to also add the non-breaking space after the colon, which does not exist in the raw text?

 

Thanks,

 

Tom

 
Replies
  • Currently Being Moderated
    Mar 27, 2012 10:04 AM   in reply to Tom Tomasko

    You can create a style which includes "Interviewer: ".

    1. Create a paragraph style
    2. Go to Bullets & Numbers
    3. List Type = Numbers
    4. Format = None
    5. Number enter: "Interviewer: "
    6. Choose or create a Character Style which formats text as caps.
     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2012 10:05 AM   in reply to Tom Tomasko

    The short answer is no, styles only style text, they can't add text that isn't there. But I'd think that would be easy to do with a simple find/change.

     

    The slightly longer answer is a question: What purpose does the non-breaking space serve here? Couldn't you just use a nested style that ran up to (or including) your colon? If "interviewer: (firstword)" doesn't fit on one line, it isn't going to fit on the next line either.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2012 10:07 AM   in reply to Tom Tomasko

    Another method would be to create a character style with no break, apply this style for the space after the colon.

    Another method could be to apply the non break character style via GREP style.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2012 10:18 AM   in reply to Mary Posner

    But I'd think that would be easy to do with a simple find/change.

     

    Yeah, that'd be much, much easier than applying the No Break attribute in a character style using Nested Styles. (No GREP styles in CS3, Willi.)

     

    I guess it would depend on whether NBSP and normal space w/No Break attribute applied are functionally identical in this case. Can't see why they'd not be so, but I suppose it'd be possible. HTML/Dreamweaver export, perhaps.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2012 10:48 AM   in reply to Mary Posner

    Mary Posner wrote:

     

    The short answer is no, styles only style text, they can't add text that isn't there. But I'd think that would be easy to do with a simple find/change.

     

    The slightly longer answer is a question: What purpose does the non-breaking space serve here? Couldn't you just use a nested style that ran up to (or including) your colon? If "interviewer: (firstword)" doesn't fit on one line, it isn't going to fit on the next line either.

     

    Did you read my post, of course a praragraph style can add text at the beginning of the paragraph.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 27, 2012 10:46 AM   in reply to Tom Tomasko

    I mean a GREP style as part of a paragraph style. It was implemented in CS4.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points