I am trying to write a kruti-dev to Unicode convertor and have 2 problems.
- style declaration is not consistent:
In order to select the kruti-dev font I checked the style tag but found that it has been written in different ways for different text. For e.g.
<style:text-properties fo:font-family="‘Kruti Dev 055’" style:font-pitch=“variable”/>
<style:font-face style:name=“Kruti Dev 055” svg:font-family="‘Kruti Dev 055’" style:font-pitch=“variable”/>
<style:font-name=“Kruti Dev 055” officeooo:rsid=“00122578” officeooo:paragraph-rsid=“00122578”/>
- The user is using “kruti-dev” family fonts. It means he may have kruti dev 055 or kruti dev 050 or 011
I am using python script to change content.xml file. Any help will be appreciated. I need to change the text typed in that font only. Do not modify english text.