w3c / imsc-hrm

IMSC Hypothetical Render Model
https://w3c.github.io/imsc-hrm/spec/imsc-hrm.html
Other
1 stars 6 forks source link

Clarify behaviour for duplicate glyphs #70

Closed nigelmegitt closed 9 months ago

nigelmegitt commented 9 months ago

In §10. Paint Text:

For each glyph associated with a character in a presented region of Intermediate Synchronic Document En, the Presentation Compositor:

I think this is ambiguous: If the presented region contains the same glyph multiple times, it is unclear if that glyph should be processed once, or distinctly each time it appears - the latter meaning is intended, as shown informatively in Figure 4.

Further, assuming the intent is to process the glyph distinctly each time, if it is not in the Glyph Cache the first time it is processed, then for subsequent times when it reoccurs, it needs to be clear that it is in the Glyph Cache (because it was copied there first time around).

I think the simplest fix for both of these is to adjust the quoted text above to say something like:

Iterating through each character in the character content of each presented region of Intermediate Synchronic Document En, for the glyph associated with that character, the Presentation Compositor: