Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

How to apply Paragraph Style to text lines of all caps?

New Here ,
Jan 07, 2023 Jan 07, 2023

I have a book of catalog entries, where the entrys' title is in all caps (not styled, manually done this way). I want to assign a paragraph style to these all-cap lines -- but there are 300+ of these (long catalog-style book) Should I use find-replace or is this a GREP kind of voodoo?

TOPICS
How to , Scripting
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 07, 2023 Jan 07, 2023

Hi @Ted27844426fne8, I think you can use:

^[^a-z]+$

It finds any whole paragraph that has more than one character, and no a-z (lowercase) characters.

- Mark

Screenshot 2023-01-08 at 12.00.45.pngexpand image 

Translate
Community Expert ,
Jan 07, 2023 Jan 07, 2023

Hi @Ted27844426fne8, I think you can use:

^[^a-z]+$

It finds any whole paragraph that has more than one character, and no a-z (lowercase) characters.

- Mark

Screenshot 2023-01-08 at 12.00.45.pngexpand image 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 07, 2023 Jan 07, 2023

Much better than my feeble attempt. Use this one, @Ted27844426fne8!

 

~Barb

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 07, 2023 Jan 07, 2023

Haha, thank you Barb. When it comes to grep, it is only a matter of time before someone posts a solution that makes mine look feeble too! I am used to it! 🙂 Still nice to have so much help on hand, so quickly!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2023 Jan 08, 2023

😂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 07, 2023 Jan 07, 2023

Did you not apply a distinct style to these titles? Or are they only some entries among others that are not all-caps?

 

There are probably Find-Replace methods, but it would probably be almost as fast to simply go through and properly apply a style to these paragraphs.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 07, 2023 Jan 07, 2023

Hi @Ted27844426fne8:

 

Are there other all-uppercase strings in this document beside the heads? If not, this would find 2 or more uppercase letters at the beginning of a paragraph and assign the paragraph style. If there are other uppercase strings, don't change all!

 

^\u\u+

 

~Barb

 

2023-01-07_18-04-01 (1).gifexpand image

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 07, 2023 Jan 07, 2023

As an aside, All Caps is formatting based (via manually, a character style, or a paragraph style), Uppercase is typed in that way (by holding down the shift or pressing caps lock key).

 

The opposite of uppercase is lowercase, which refers to the typesetting cases that held the letters back in the day when pages were created one letter at a time (and in reverse!). The capital letters were in the uppercase, the minuscule letters were in the lowercase. (The opposite of capital letters is minuscule letters.)

 

David Creamer: Community Expert (ACI and ACE 1995-2023)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 07, 2023 Jan 07, 2023

Thanks David. By the way, I think your autocorrect doesn't want you to type "capital". Or apologies if it was deliberate and my spelling is too parochial—it wouldn't be the first time I've made that mistake. 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2023 Jan 08, 2023

Thanks for the catch. Been watching too much politics on C-Span lately!

David Creamer: Community Expert (ACI and ACE 1995-2023)
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2023 Jan 08, 2023

It's okay. I lived for years in Sacramento, which has a deeply ingrained inability to distinguish the two forms despite it being integral to most things there. 😛

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2023 Jan 08, 2023

I grew up in DC, which is the only reason I can differentiate between them. 

 

~Barb

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 08, 2023 Jan 08, 2023
LATEST

Sac has this maddening tendency to choose the word (vowel) sort of randomly for place and business names and the like. (I blame illiterate designers. 🙂 ) But things like news reports bannered "from the State Capital" or "the Capitol City Freeway" are endemic.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines