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

Using Title Case in Character Styles

Explorer ,
Oct 04, 2018 Oct 04, 2018

I am trying to setup Character Styles for a newspaper's classified lineage.

We want the first two words to be in Title Case and the rest in Sentence Case.

When trying to define the character styles, so that I can nest them in a paragraph style, I can only see: Normal, All Caps, Small Caps & Opentype Small Caps.

Does anyone know if there are plans to include Title Case and Sentence Case in that drop down menu?

If there are, that would make this project a lot easier.

OR

Does anyone of an quick way to apply Title case in the above way, after using character/paragraph styles to format the copy?

14.1K
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

Explorer , Oct 08, 2018 Oct 08, 2018

Barb,

On getting to the Feature Request page I have found a similar request already there so have added my vote to those already placed.

Thanks

Chris

Translate
Guide ,
Oct 04, 2018 Oct 04, 2018

Hi,

Could you post a "page" screenshot? Thanks!

… and Just For Fun!

// by FRIdNGE [october 2018]

var myDoc = app.activeDocument,

myParaStyles = ["red", "blue", "green"], // Samples!

S = myParaStyles.length,  s;

for ( s = 0; s < S ; s++) {

    app.findGrepPreferences = null;

    app.findGrepPreferences.findWhat = "^.+?\\."; // Simplistic: first sentence of a para if it finishes by a dot! …

    app.findGrepPreferences.appliedParagraphStyle = myParaStyles;

    myFound = myDoc.findGrep();

    var F = myFound.length,  f;

    for ( f = 0; f < F ; f++) {

        myFound.changecase(ChangecaseMode.sentencecase);

        myFound.insertionPoints.itemByRange(myFound.insertionPoints[0], myFound.words[1]).changecase(ChangecaseMode.titlecase);

        //myFound.insertionPoints.itemByRange(myFound.insertionPoints[0], myFound.words[1]).appliedCharacterStyle = "grey";

    }

}

app.findGrepPreferences = null;

Best,

Michel, for FRIdNGE

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
Explorer ,
Oct 08, 2018 Oct 08, 2018

Michel,

Here is the dialog box in question.

Screen Shot 2018-10-08 at 08.36.22.png

I assume the code is a Javascript 'search and replace' script – I'm not very au fait with Javascript/GREP.

Chris

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
Explorer ,
Oct 09, 2018 Oct 09, 2018

Although I have indicated that Barb's answer to be the correct one to my question, the answers from Michel & Vinny38 also provide solutions to the second part of my original post.

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 Beginner ,
Sep 21, 2020 Sep 21, 2020
LATEST

I can not believe no one actually understood or answered this  very simple request at the top. 

WAS ANYBODY ACTUALLY ABLE TO LINK THE "CHANGE CASE" SETTINGS TO A CHARACTER STYLE? 

 

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