String.normalize needs info on normalization forms #2594
Comments
Agreed that this page is not helpful. I forced myself to understand this stuff when working on the interactive example for it. I've forgotten it all of course but could probably resurrect it, so I can take this issue. |
It's not very brief, but I've written an expanded description of the concepts of canonical and compatibility normalization: https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize#Description and how they can be applied using @chrisdavidmills , please let me know if this makes sense and looks correct! I think we also need a new interactive example, the current one isn't very good. |
Nice writing @wbamberg ; very clear and understandable, and I enjoyed learning something new! I made a couple of very minor text updates, changed the subheadings to add "normalization" to end of each as I thought it was more descriptive, and finally I changed the usage of I think we can call this done. |
Thanks for the review, Chris, much appreciated.
This is my devtools bugbear! Unfortunately you can't redeclare Writing examples like this makes me think that we (in a future version of MDN) should just let writers attach a flag to a code block saying "this is executable", then the platform would automatically make it interactive. |
oop, terminology fail ;-) I meant "assign different values to them" — this means that you can test the entire code in the section in the console without having to reload the page. With |
See also: https://bugzilla.mozilla.org/show_bug.cgi?id=1580891 |
Reported in Discourse: https://discourse.mozilla.org/t/string-normalize-needs-info-on-normalization-forms/50613 and quoted here for convenience:
The article String.normalize 1 needs a (brief) description or comparison between the four supported normalization forms. Reading the specs on this is hard, to say the least. It would be help to have a brief comparative description of each form, in one or two sentences.
The difference between composition and decomposition is sort of clear, if you have some understanding of how (de)composed characters work. People that don’t know about this, might easily choose the wrong form for their use case, or ignore having to normalize alltogether.
The difference between canonical and compatible, is complete abacadabra to me, although there surely are people that do get what they mean. Again, it needs a brief comparison to clear it up.
Since I don’t feel qualified to describe the differences myself, can I hereby request someone with a bit more knowledge on normalization, to do it for us? It’d be very much appreciated. Thanks.
The text was updated successfully, but these errors were encountered: