Collapse (v/)hkern tags' into compound u1/u2/g1/g2 attributes
In a font spec, <hkern> and <vkern> elements can make up a marjority of the space of the markup, due to the combinatorial explosion of character pair kerning info, with one such tag per character pair there is kerning info for. They can typically be collapsed to much fewer kern tags than that, though. Example:
<hkern g1="M.alt" g2="P.alt" k="10" />
<hkern g1="M.alt" u2="­" k="10" />
<hkern g1="M.alt" u2="®" k="10" />
<hkern g1="M.alt" u2="ç" k="10" />
<hkern g1="M.alt" u2="ð" k="10" />
<hkern g1="M.alt" u2="ò" k="10" />
<hkern g1="M.alt" u2="ó" k="10" />
<hkern g1="M.alt" u2="ô" k="10" />
<hkern g1="M.alt" u2="õ" k="10" />
<hkern g1="M.alt" u2="ö" k="10" />
<hkern g1="M.alt" u2="ø" k="10" />
<hkern g1="M.alt" u2="ù" k="10" />
<hkern g1="M.alt" u2="ú" k="10" />
<hkern g1="M.alt" u2="û" k="10" />
<hkern g1="M.alt" u2="ü" k="10" />
<hkern g1="M.alt" u2="ý" k="10" />
<hkern g1="M.alt" u2="ÿ" k="10" />
<hkern g1="M.alt" u2="œ" k="10" />
<hkern g1="M.alt" u2="–" k="10" />
<hkern g1="M.alt" u2="—" k="10" />
…can be collapsed down to:
<hkern k="10" g1="M.alt" g2="P.alt" u2="—
…or, for short:
<hkern k="10" g1="M.alt" g2="P.alt" u2="—,
I think both the g1/u1 and g2/u2 attributes can be collapsed at the same time too, for the optimal case where {some set of character-1:s} and {some set of character-2:s} have the same kern attribute between all their enumerable tuples [ch1, ch2], which would amount to yet a strength reduction of the output size.
Blueprint information
- Status:
- Not started
- Approver:
- None
- Priority:
- Undefined
- Drafter:
- None
- Direction:
- Needs approval
- Assignee:
- None
- Definition:
- New
- Series goal:
- None
- Implementation:
-
Unknown
- Milestone target:
- None
- Started by
- Completed by