News for hackers. Stuff that matters.
Re:Ask HN: Is Unicode Designed Badly? by HelloNurse on Friday September 09, 2022 @04:47AM (#32776914)
Zalgo text provides a straightforward example of how "reversing a string" is ambiguous and ill-defined: one might conceivably want to transpose "letters" along with their respective piles of combining marks, stacked in the same order, not to move combining marks to adjacent letters in a different order.

And of course what characters are a mark-bearing letter is application-dependent and there might be collateral requirements (e.g. if the reversed text is meant to be displayed swapping closing and opening delimiters such as parentheses: "(note)" -> ")eton(" or "(eton)" ).

There are no comments on this comment yet.