Need trademark to appear only on the first instance in each topic

Post here questions and problems related to editing and publishing DITA content.
Seema
Posts: 13
Joined: Wed Dec 07, 2022 6:30 pm

Need trademark to appear only on the first instance in each topic

Post by Seema »

Hello,
We are using the trademarks setting to apply the trademark to our product name. We have a conref for the product name on which we have applied the trademark setting. Is there a setting which will allow us to display the trademark symbol only to the first occurrence of the product name in each topic in the documentation?
Thank you,
Seema
Radu
Posts: 9473
Joined: Fri Jul 09, 2004 5:18 pm

Re: Need trademark to appear only on the first instance in each topic

Post by Radu »

Hi Seema,
To what output format are you publishing? What version of Oxygen are you using? Are you using the publishing engine bundled with Oxygen or an external DITA OT publishing engine?
Can you give me an example of how your DITA XML content looks like when you use the product with the trademark symbol?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
AnnetteSo
Posts: 16
Joined: Thu Aug 25, 2022 2:28 pm

Re: Need trademark to appear only on the first instance in each topic

Post by AnnetteSo »

Hi, we are currently publishing to pdf, but in future we'd also like to fix this for html. We're using <oXygen/> XML Author 25.0, build 2023013006. Currently we're using the publishing engine bundled with Oxygen to generate pdfs, but we'll likely switch to external DITA-OT builds in future.
This is how the tm looks in the DITA source:
image.png
Thank you.
You do not have the required permissions to view the files attached to this post.
Radu
Posts: 9473
Joined: Fri Jul 09, 2004 5:18 pm

Re: Need trademark to appear only on the first instance in each topic

Post by Radu »

Hi,

It seems that for the PDF output at least the trademark symbol is always output by default. Possibly a PDF XSLT customization could override a certain xsl:template to avoid outputting the trademark symbol for subsequent occurrences in the same topic but I do not have a clear solution for this:
https://github.com/dita-ot/dita-ot/issu ... 1518390915

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
AnnetteSo
Posts: 16
Joined: Thu Aug 25, 2022 2:28 pm

Re: Need trademark to appear only on the first instance in each topic

Post by AnnetteSo »

Thank you Radu, we will look into customizing our pdf transform further.
Post Reply