I don't know when this started happening, but today I have noticed numerous examples where the Discourse software is changing plain quotes, ' and " into smart quotes ' and ".
For example:
'use a single plain quote'
"use a double plain quote"
Here's the screenshot of what I typed, taken in the edit panel
which clearly shows I type plain quotes,
but Discourse turns them into smart/fancy quotes, screenshot in the Preview Panel
@peternlewis, can this be turned off? If so, please do so.
I would guess it is a shiny new feature of 1.9.5 or 1.9.6.
So it appears to apply to text, but not to quoted text:
hello 'there’
hello “there”
hello 'there'
hello 'there'
There does not seem to be an way to turn it off in the settings. You can ask on meta.discourse.org I guess, see if it is indeed a new intended feature and it is intended there is no way to disable it.
So now I can turn it off, but should I. Clearly @JMichaelTX doesn't like it, and I can see issues for code, but code should be in code blocks or quoted, so I'm not sure turning it off is necessarily good.
Yes, there is a very specific reason to turn this off: The benefit of this feature is cosmetic, but there can be an adverse technical effect.
While it is good that if we put text in a quote block it does not convert the quotes, the problem is that many users are not informed enough to do so, so very often we will get requests to process some text data which the user just types into a forum post, without a quote block.
So, let's say it is RegEx issue. If I just copy the text and it includes fancy quotes (but the user typed plain quotes), then my solution will be flawed.
So the real question should be, why do you want this feature? What is the benefit to the forum or KM?
KM and this forum are technical subjects. They are not about publishing, where the fancy quotes are usually required.
We have survived for years without the use of fancy quotes here in this forum. Why change? Just to look pretty???
The ones in the first post ate curly quotes, so the forum is not doing anything to them.
I'm not yet convinced.
Personally, I like the feature (although for myself I often actively use the curly quotes, but it is nice to not have to).
Feel free to continue to point out issues where confusion is caused, I am willing to be convinced, but I am not yet convinced that the disadvantages are sufficient to overcome the convenience.
After thinking about this awhile it's become clear to me that we will have recurring issues on the forum with converted quotes in improperly posted code and data samples.
A) Code and textual data that is already on the forum that worked fine when posted but is now broken.
B) Code and textual data that will be posted in future.
How much of a nuisance will it be?
How much time will be wasted dealing with related users issues/questions and wrestling with mangled code/data?
<shrug>
One way or the other I guess we'll see...
You mean it's nice to not have to reach for the keystrokes – and still have curly quotes due to the auto-conversion?
I have several macros that handle curly quotes in Typinator.
dq == “{^}” -- Emplace curly double-quotes with cursor in between.
dqq == “{clip}” -- Emplace curly double-quotes with contents of clipboard in between.
sq == ‘{^}’ -- Emplace curly single-quotes with cursor in between.
sqq == ‘{clip}’ -- Emplace curly single-quotes with contents of clipboard in between.
These save me quite a lot of trouble, although I need to enhance the macros using the clipboard to automatically strip leading and trailing blank lines.