IDML Filter: BaselineShift, KerningValue and Tracking text properties have to be of double type

Issue #785 resolved
Denis Konovalyenko created an issue

According to the "10.4.6 Common Text Properties" section of the IDML Specification, the BaselineShift, KerningValue and Tracking attributes can hold double values.

The current implementation treats them as integers, thus under the conditions when there are floating point numbers present, the filter exits with the NumberFormatException like this:

java.lang.NumberFormatException: For input string: "-99.99999999999999"

    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:580)
    at java.lang.Integer.valueOf(Integer.java:766)
    at net.sf.okapi.filters.idml.StoryChildElementsMerger.canValuesBeIgnored(StoryChildElementsMerger.java:386)

Comments (3)

  1. Log in to comment