3 ms·
> O/0 and I/1/l are confusable characters within ASCII. You're mixing up two different ways that people use the word "confusable": things that look similar in
by josephcsible 5y ago
> O/0 and I/1/l are confusable characters within ASCII.
You're mixing up two different ways that people use the word "confusable": things that look similar in some fonts, versus things that look exactly the same regardless of font. I want the latter to be banned from source files but not the former.
- lifthrasiir 5y agoConfusables are a defined concept in Unicode [1]. And there seems no other good way to define "confusables", since many if not most pairs of characters are distinguishable in some but not all fonts and you can always make a font that distinguishes every code point (I once did that, for example distinguishing Latin-Greek-Cyrillic homoglyphs in subtle ways). [1] https://www.unicode.org/reports/tr39/#Confusable_Detection https://www.unicode.org/reports/tr39/#Confusable_Detection
- josephcsible 5y ago> you can always make a font that distinguishes every code point Even ones like zero-width joiners and right-to-left marks?
- lifthrasiir 5y agoSure, every graphic code point ;-) But we are talking about Unicode identifiers, and the Unicode recommendation doesn't allow BiDi markers in identifiers and has a provision to limit the use of ZWJ and ZWNJ in them.