mirror of
https://github.com/storytold/indd-utils.git
synced 2026-11-22 02:00:46 +01:00
IDML writes a fraction attribute (HorizontalScale, VerticalScale, AutoLeading, the spacing and glyph scaling attributes, RubyXScale, KentenXScale) as the stored value times 100 with its binary noise, for example 112.99999999999999. Rounding to 9 decimals matched none of the 24,055 reference values with more than 9 decimals in the trustworthy pairs; the full product matches 23,910, and the exact matches among the shorter values stay the same (140,887 of 142,524). Evidence in attributes.md, percentages. compare.py compares numbers to 6 significant digits, so its counts do not change.