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

How can I set this, thanks!

New Here ,
Mar 02, 2015 Mar 02, 2015

Copy link to clipboard

Copied

‌I wanna to use script to set this, but I can't find what methods to use. Anyone should help me, please?

image.jpg

TOPICS
Scripting

Views

576

Translate

Translate

Report

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
Contributor ,
Mar 02, 2015 Mar 02, 2015

Copy link to clipboard

Copied

Hi

it is possible to set 'composer' property with a String value

in Japanese version, following code works,

please try in your language.

thank you


var doc = app.documents.add();

var pstyle = doc.paragraphStyles.add();

$.writeln(pstyle.composer); // => Adobe 日本語段落コンポーザー

pstyle.composer = "Adobe 日本語単数行コンポーザー";

$.writeln(pstyle.composer); // => Adobe 日本語単数行コンポーザー

Votes

Translate

Translate

Report

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
New Here ,
Mar 26, 2015 Mar 26, 2015

Copy link to clipboard

Copied

‌thanks, milligramme, it works.

Votes

Translate

Translate

Report

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
Contributor ,
Mar 26, 2015 Mar 26, 2015

Copy link to clipboard

Copied

good!

please check as Correct Answer to close this thread.

thank you

Votes

Translate

Translate

Report

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 ,
Mar 27, 2015 Mar 27, 2015

Copy link to clipboard

Copied

@Milligramme – there are also locale-independent strings for both Japanese composers:

"$ID/HL Single J"

"$ID/HL Composer J"

Did a test in InDesign CC v9.3.0 (German) and applied the "Adobe Japanese Single-line Composer" to a paragraphStyle by scripting.

myParagraphStyle.composer = "$ID/HL Single J";

Adobe Japanese Single-line Composer-ADDED.png

This is not possible working in the UI only.

Don't know, if I ever would need something like that, but I think it's worth mentioning.

Uwe

Votes

Translate

Translate

Report

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
Contributor ,
Mar 27, 2015 Mar 27, 2015

Copy link to clipboard

Copied

LATEST

@Laubender

nice! I could get those CONST?  by this script

var key_string = app.findKeyStrings("Adobe 日本語単数行コンポーザー");

$.writeln(key_string); // => $ID/HL Single J


and in the same way

CS5 doesn't  has "Adobe World-Ready Single-line Composer" yet.

// "Adobe World-Ready Single-line Composer"

// app.findKeyStrings("Adobe 多言語対応単数行コンポーザー")

pstyle.composer = "$ID/HL Single Optyca";

I could add "Adobe World-Ready Single-line Composer" to the paragraph style,  but I don't know it works or not.

thank you

Votes

Translate

Translate

Report

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