feat: write DesiredGlyphScaling of paragraph ranges

Text attribute 0x1B33 is DesiredGlyphScaling, a fraction written x100.
Paragraph run overrides in 10 documents store 0.96 to 0.99, matching the
22 IDML ParagraphStyleRange values; root styles and text defaults store
1.0 (IDML 100).

compare.py --exclude own/, trustworthy pairs: TextRange
PSR.DesiredGlyphScaling 0 -> 89/89, Cell/ParagraphStyleRange 0 -> 1/1;
no extra values.
This commit is contained in:
aiongg committed 2026-10-10 13:23:29 +00:00
1 parent c513cdf03d
commit 3ba72f54ce
2 files changed
+2

No files matched your search

+1
View File
@@ -352,6 +352,7 @@ styles with INDD styles of the same name (486 styles), then checked with
| 0x1B2F | `MinimumWordSpacing` | fraction ×100 | 77/77 styles |
| 0x1B31 | `MaximumLetterSpacing` | fraction ×100 | 78/78 styles; see below |
| 0x1B32 | `MinimumLetterSpacing` | fraction ×100 | 78/78 styles; see below |
| 0x1B33 | `DesiredGlyphScaling` | fraction ×100 | 22/22 `ParagraphStyleRange` elements in 10 documents (96 to 99), 1,251 trustworthy pairs; 1.0 in the root style and text defaults of every pair, as IDML's 100. No other text list of the pairs has it |
| 0x1B37 | `StartParagraph` | 0 Anywhere, 1 NextColumn, 2 NextPage, 3 NextFrame, 4 NextOddPage | 78/78 styles; codes below |
| 0x1B3C | `Position` | 0 Normal, 1 Superscript, 2 Subscript, 3 OTSuperscript, 4 OTSubscript, 5 OTNumerator, 6 OTDenominator (runs/styles: 107/23, 4/7, 1/0, 3/0, 21/0 for 1, 2, 3, 4, 6) | 20/20 ranges, 78/78 styles |
| 0x1B40 | `KeepLinesTogether` | 1 = true | 78/78 styles; see below |
+1
View File
@@ -476,6 +476,7 @@ pub(super) const TEXT_ATTRS: &[(u32, &str, Kind, bool)] = &[
(0x1B22, "HyphenateCapitalizedWords", Kind::Bool, false),
(0x1B34, "MaximumGlyphScaling", Kind::Percent, false),
(0x1B35, "MinimumGlyphScaling", Kind::Percent, false),
(0x1B33, "DesiredGlyphScaling", Kind::Percent, false),
(0x1B20, "HyphenateAfterFirst", Kind::Number, false),
(0x1B23, "HyphenateWordsLongerThan", Kind::Number, false),
(0x1B39, "KeepWithNext", Kind::Number, false),