Clarify definition of “whitespace” / “blank characters” #375
Replies: 4 comments
-
And I would like to mention (even though this is overkill), with a custom typeface, any character could appear blank. Eg. if I make my own font "vladde.ttf" and made the letter However, going this far is overkill, in my opinion. |
Beta Was this translation helpful? Give feedback.
-
Good point, that should be fixed. I’m not determined yet what protocol to follow regarding spec changes now that we track versions, because I don’t just want to commit to master and cut a new version for every tiny change. I’ll come up with a procedure.
Appreciate the nit-pick, you are spot on actually. This phrasing was intentionally sloppy, not for a good reason but more out of laziness back then. Since the spec refers to unicode character classes for what a “letter” is, I think it’s best to base the definition of whitespace on that as well. (See https://en.wikipedia.org/wiki/Whitespace_character#Unicode). |
Beta Was this translation helpful? Give feedback.
-
Also, linebreaks are technically whitespace as well, but that’s not how the term is used in the spec. |
Beta Was this translation helpful? Give feedback.
-
Fixed via #119. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
tl;dr: in the whitespace definition, replace
another character
withany other characters
.In the specification, “whitespace” is defined as:
I interpret the "[…] or another character […]" as "[…] or one other character […]", as if there were three distinct whitespace characters. The last one mentioned is not specified, and thus could be interpreted as letting the user select a third blank character, or possibly that the third character was forgotten and not put in the specification.
A more appropriate definition would be:
Beta Was this translation helpful? Give feedback.
All reactions