Skip to main content
Known Participant
July 22, 2022
Answered

Symbol to Entity format

  • July 22, 2022
  • 2 replies
  • 602 views

Dear Experts,

When i export the symbols from indesign to export XML (Indesign-->Export XML), all symbols showing symbol format like see below screen shot. But i need my actual entity code format. Is there any possibility available in one shot? or any script in this requirement? Please suggest friends:

 

 

Thanks

kanagakumar.k

This topic has been closed for replies.
Correct answer Manan Joshi

You could apply us-ascii encoding in your XML and it should work. The problem that I find is InDesign does not have the possibilty to apply this encoding when exporting. Trying to apply it using XSLT during export also results in an error, so you will have to apply the XSLT further in your workflow. The sample xslt would be as follows

 

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" encoding="us-ascii" indent="no"/>
	<xsl:template match="/">
		<xsl:copy-of select="*" />
	</xsl:template>
</xsl:stylesheet>

 

-Manan

2 replies

Manan JoshiCommunity ExpertCorrect answer
Community Expert
July 26, 2022

You could apply us-ascii encoding in your XML and it should work. The problem that I find is InDesign does not have the possibilty to apply this encoding when exporting. Trying to apply it using XSLT during export also results in an error, so you will have to apply the XSLT further in your workflow. The sample xslt would be as follows

 

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" encoding="us-ascii" indent="no"/>
	<xsl:template match="/">
		<xsl:copy-of select="*" />
	</xsl:template>
</xsl:stylesheet>

 

-Manan

-Manan
Known Participant
July 26, 2022

Thank you "Manan"

 

Your suggest coding convert successfully in ascii coding format. 

In this place i need some clarification, my input coding in unicode format, see below the definition for your reference:

-----------------

1. My xml input coding "Unicode format" ---- "&#x0393;" 

2. Indesign symbol ---- Γ (code converted symbol)

3. XSLT convert symbol in "acsii" coding format ---- "&#8225;"

-----------------

Can you advice, is there any possible for unicode format instead of ascii coding.

Because my requirement is unicode format conversion. Please advice.

 

Thanks

kanagakumar.k

Known Participant
August 1, 2022

Dear Experts,

I actual need is "unicode format" convertion, please see above the details. any one can you advice me.

 

Thanks

kanagakumar.k

Known Participant
July 26, 2022

Dear Friends,

Is there any possible symbol to entity code convertion in script wise? Kindly advice.

Thanks

kanagakumar.k