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

to automate adding element and its attributes

Explorer ,
Aug 14, 2019 Aug 14, 2019

Copy link to clipboard

Copied

hi all,

i want to know

when user applying "bold"  style in indesign menually i wanted to automate that if he apply bold then in xml structure it would automatically get added tag and attribute <emph>

anyone please help me.

TOPICS
Scripting

Views

183

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
Engaged ,
Jul 17, 2021 Jul 17, 2021

Copy link to clipboard

Copied

Hi @anupamo12276900 ,

 

You need to add event listener, when use click on character style.

 

Sumit

-Sumit

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 ,
Jul 17, 2021 Jul 17, 2021

Copy link to clipboard

Copied

Hi Sumit,

as I understand this request, there are no character styles involved at all.

The user selects text and bold it through the Control panel, the Properties panel or the Character panel.

 

Regards,
Uwe Laubender

( ACP )

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
Engaged ,
Jul 18, 2021 Jul 18, 2021

Copy link to clipboard

Copied

LATEST

Hi @Laubender,

 

Yes, it may be but also possible that user apply character style instead of manual font style change.

 

Regards,

Sumit

-Sumit

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