Skip to main content
Known Participant
October 2, 2019
Answered

Set composer in InDesign script independent of locale

  • October 2, 2019
  • 2 replies
  • 1184 views

Hi there,

I am trying to set a story's composer to Adobes single line composer via a script. The issue I have that I am running in a German locale and that I seem to be unable to use the English string to make the script work in all language environments.

myStory.composer = "Adobe Single-line Composer";  // -> throws an error

 Anybody knows how to set it in a way that it recognizes the string in any environment?

Thank you!

This topic has been closed for replies.
Correct answer Laubender

Hi MasterDomino,

here all strings for composers that I am aware of for InDesign CS6 and above:

 

Paragraph composers:

$ID/HL Single
$ID/HL Composer

 

Adobe World-Ready Composers:

$ID/HL Single Optyca
$ID/HL Composer Optyca

 

Japanese Composers:

$ID/HL Single J
$ID/HL Composer J

 

How can you get the strings?

With a German InDesign you could ask with app.findKeyStrings() like that:

// Example: German InDesign
// Provided string is the German version of Adobe World-Ready Paragraph Composer

var myString = "Globaler Adobe-Absatzsetzer";

app.findKeyStrings(myString);
// Result is an array that contains 
// "$ID/HL Composer Optyca"

 

Regards,
Uwe Laubender

( ACP )

2 replies

LaubenderCommunity ExpertCorrect answer
Community Expert
October 2, 2019

Hi MasterDomino,

here all strings for composers that I am aware of for InDesign CS6 and above:

 

Paragraph composers:

$ID/HL Single
$ID/HL Composer

 

Adobe World-Ready Composers:

$ID/HL Single Optyca
$ID/HL Composer Optyca

 

Japanese Composers:

$ID/HL Single J
$ID/HL Composer J

 

How can you get the strings?

With a German InDesign you could ask with app.findKeyStrings() like that:

// Example: German InDesign
// Provided string is the German version of Adobe World-Ready Paragraph Composer

var myString = "Globaler Adobe-Absatzsetzer";

app.findKeyStrings(myString);
// Result is an array that contains 
// "$ID/HL Composer Optyca"

 

Regards,
Uwe Laubender

( ACP )

Known Participant
October 2, 2019
Ah, thanks Uwe. That's really good to know, will add this to my snippets collection.
Known Participant
October 2, 2019

Marc Autret (@indiscripts) kindly provided the answer over at Twitter:

myStory.composer = "$ID/HL Single";