4 ms·
Some language settings (on windows) will auto replace the '' and "" set for ʻʼ and “” as that is the correct spelling in the set language. There is also the low
by trashb 7mo ago
Some language settings (on windows) will auto replace the '' and "" set for ʻʼ and “” as that is the correct spelling in the set language. There is also the lower quotes that can be used but it seems usually a normal comma and double comma is used as codepoint (U+002C, U+201E) ,’ „”.
This really messed me up when I started programming since those quotes will not work when writing in a language that expects a set of the same character but they may use the same glyph. This is one of the many reasons I have my systems set to English.
I agree that for a normal writing environment it may be advantageous to have it auto replace since it is also just easier to hit the same key twice and have it auto open/close.
- jeroenhd 7mo agoI have never encountered that behaviour outside of Microsoft Word and its alternatives, I've always had this happen application-side. Is this an IME thing? Or a non-Unicode-compatible code page? Because I don't think there's any other Windows-side automatic replacement of that type. Many blog engines online will also try to be helpful and replace quotes with smart quotes, which makes copy-pasting source code from tutorials quite a pain.
- trashb 7mo agoFrom what I remember (it was a while back) it was both in notepad, notepad++ and geany. I was using, probably win xp or 7 at the time. I remember the only way I could fix it at the time was to change the language and keyboard settings to international English. I can't seem to replicate the behavior now on win 11 even with the same language set and keyboard layout (system language set to English), so perhaps I'm misremembering? It seems that this keyboard layout does enable typing ¨ U+00A8 so perhaps I am confused with that and that some editors (word etc) do the opening/closing replacement. IME is not used, though interestingly in Asian languages the do used even different quotes, example Japanese:「x」and『x』
- jeroenhd 7mo agoI know that some keyboard layouts come with different characters, which can be confusing when similar-looking keys are in the same place on a US-Int keyboard (nl-NL has a ¨ character almost exactly where the normal " would be for instance), but that's just the OS following the standard keyboard layout. The actual " you would want for programming is on top of the 2 in that layout. Similarly, in other keyboard layouts you will likely find the characters you intended to type with the right (shift+)altgr key combos. The dead keys setting can be applied to any keyboard layout if you so choose (though it's usually only enabled by default for US International and regional languages that often use dead keys); you could combine dead keys with a ¨-containing keyboard layout if you so choose.