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

to automate adding element and its attributes

Guest
Aug 14, 2019 Aug 14, 2019

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

Hi @Deleted User ,

 

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

 

Sumit

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

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 )

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

Hi @Laubender,

 

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

 

Regards,

Sumit

-Sumit
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