Copy link to clipboard
Copied
I have typeset a book that has many titles. The titles are all in SENTENCE CASE ie first letter of title in in caps, the rest are all lowercase. I have set a style for the titles. Individually it is possible to change each title to TITLE CASE by rightclicking and changing the case to TITLE CASE.
Is it possible to change this through the paragraph style so that I dod not have to manually go through each title and change it?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
There are many scripts that can do this. For example:
https://www.marspremedia.com/software/indesign/change-letter-case
Copy link to clipboard
Copied
Hi @tully1254
I hope this helps.
var myDoc = app.activeDocument;
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.appliedParagraphStyle = "Subhd";// Please change your style name
var myFinds = myDoc.findText();
for (var i = 0; i < myFinds.length; i++) {
myFinds[i].texts[0].changecase(ChangeCaseOptions.UPPERCASE);
}
app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;