2 ms·
I would base direction on adjacent whitespace/punctuation instead of trying to do pairing.
by Izkata 3y ago
I would base direction on adjacent whitespace/punctuation instead of trying to do pairing.
- mbork_pl 3y agoNice try, too. How would you handle Spanish quotation marks at the beginning of the sentence, then? And what about French quotes which are separated from their contents by a thin space? All of that is possible, of course, with large tables of special cases. Or, you know, you could just have separate characters for opening/closing quotation marks. ;-)
- Izkata 3y ago> All of that is possible, of course, with large tables of special cases. Yes, that's how ligatures work. Pairing across characters is the one I'm not sure I've heard of before in fonts. Edit: Besides, how do you think these are typed on keyboards without separate keys? The software already detects and replaces them based on context.