You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keywords shall contain only printable Latin-1 [ISO_8859-1] characters and spaces; that is, only character codes 32-126 and 161-255 decimal are allowed. To reduce the chances for human misreading of a keyword, leading spaces, trailing spaces, and consecutive spaces are not permitted in keywords, nor is the non-breaking space (code 160) since it is visually indistinguishable from an ordinary space.
Hex is preferred to decimal values when referring to code point ranges and I18N prefers if references also use the Unicode name when referring to specific characters. The Latin-1 heritage of some parts of PNG should not prevent switching to this best practice.
For example, instead of the non-break space (code 160) it should say U+00A0 NON-BREAKING SPACE and the ranges "32-126" and "161-255" would be 0x20-7E and 0xA1-FF respectively. This is easier for folks familiar with Unicode ;-).
The text was updated successfully, but these errors were encountered:
@svgeesus is there particular reason (historical, maybe?) that the PNG spec might prefer decimal values?
If not, would it be okay to just use hex everywhere? (Having both hex and decimal increases surface area for mistakes.)
I tend to agree that chunk signatures should be in hex while they are all in decimal. But that is separate to resolving the Internationalization comment so I prefer to do a separate issue and PR for that part.
Keywords and text string
https://www.w3.org/TR/2022/WD-png-3-20221025/#11keywords
Hex is preferred to decimal values when referring to code point ranges and I18N prefers if references also use the Unicode name when referring to specific characters. The Latin-1 heritage of some parts of PNG should not prevent switching to this best practice.
For example, instead of the non-break space (code 160) it should say U+00A0 NON-BREAKING SPACE and the ranges "32-126" and "161-255" would be
0x20-7E
and0xA1-FF
respectively. This is easier for folks familiar with Unicode ;-).The text was updated successfully, but these errors were encountered: