It seems that KM text fields use smart quotes when straight quotes are typed. I can't imagine where on my system that would be determined or how to change this.
I agree - I keep forgetting to mention it. This is especially bad when writing shell scripts, where the wrong kind of quotes can cause problems that are hard to detect.
Aha! Thanks. It didn’t make sense to me that KM would do this. I don’t recognize those options. Do they default to smart quotes or did I do something I don’t remember?
Maybe this post will help other people sort out their own confusion about this.
What is really a (probably unsolvable problem) is that any macro that pastes or types text that includes quotes ought to – right? – type the quotes according to the user’s settings you showed.
Automatic smart quotes don’t happen in every application – obviously not in Terminal, Script Editor, Script Debugger, Emacs, or any other development tool. I wonder what in OS X or in the individual applications determines whether or not they follow that preference.
Turning on or off the entries in the Substitutions menu affects that field only and only for as long as that field remains. So it is essentially useless.
You can turn off “Smart” quotes in the system preferences.
Automatic Smart Quotes are forced off in the Execute Script actions. Most of the rest of the fields honour your settings for smart quotes.
Similarly, Smart Copy/Paste it turned off in Execute Script actions. I don’t know if there is a system wide way of turning that off.
By the way, in trying to put straight quotes into text I have had better luck with pasting them than typing them. I think typing them triggers the application’s handling of quotes. Unfortunately, if I put another straight quote in, it turns that and a previous one into smart quotes.
Are you all distinguishing smart quoting within text fields, or is this about full documents too?
It’s not so much an issue of turning of your General smart quote settings, it’s a question of doing what’s right by your macro users. You don’t want to tell them what settings to use, and you don’t want them to be surprised. Very complex situation with, I think, no resolution under all our constraints.