Skip to main content
jothipriya
Inspiring
June 10, 2020
Answered

How to bold the contents inside <strong></strong> tag in the XML

  • June 10, 2020
  • 2 replies
  • 1627 views

Hi Everyone,

Can anyone help me to develope a script to bold the contents inside <strong></strong> tag in InDesign document??

-Jothi

This topic has been closed for replies.
Correct answer hammer0909

With XML, you can take a couple different approaches. 1. You could map the <strong> XML tag to a bold character style in InDesign using the map tags to styles dialog box. 2. You could use an aid attribute in the XML to specify a character style to apply to text. For example <span aid:cstyle="Bold">Text to make bold</span>.

 

 

2 replies

hammer0909
Community Expert
hammer0909Community ExpertCorrect answer
Community Expert
June 10, 2020

With XML, you can take a couple different approaches. 1. You could map the <strong> XML tag to a bold character style in InDesign using the map tags to styles dialog box. 2. You could use an aid attribute in the XML to specify a character style to apply to text. For example <span aid:cstyle="Bold">Text to make bold</span>.

 

 

jothipriya
Inspiring
June 11, 2020

Thankyou for your reply!! I had find the solution..

-Jothi

Participating Frequently
December 6, 2020

Can you explain your solution please 😄 !?

Community Expert
June 10, 2020

Look for examples on how to use findgrep, there are lots of these on the forum. I see you have participated in one of those, so you know how to use it. Regarding bold we already had a discussion in the previous thread where i did demonstrate how to find it, you just need to change the fontstyle property of the found text. What is confusing here, you already are a developer this should be a trivial task to do.

 

-Manan

-Manan