Make WordPress Core

Opened 8 years ago

Closed 4 years ago

#39874 closed defect (bug) (wontfix)

Apostrophe cannot stay put, always replaced for a left single quotation mark.

Reported by: abtop's profile ABTOP Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.7.2
Component: Editor Keywords:
Focuses: Cc:

Description

I am trying to set the simplest text string — 's, s'
That's it. The mark is the apostrophe both times. WordPress is consistently changes this to opening and closing single quotation marks. I am not quoting anybody, I am giving examples of how possessiveness is indicated in English.

Why can't I have MY content the way I write it?

Attachments (2)

Screen Shot 2017-02-14 at 12.18.02 PM.png (52.2 KB) - added by tristangemus 8 years ago.
Screen Shot 2017-02-14 at 12.18.08 PM.png (13.1 KB) - added by tristangemus 8 years ago.

Download all attachments as: .zip

Change History (10)

#1 follow-up: @tristangemus
8 years ago

Hi there,

I'm running a clean install of 4.7.2 on the Twenty Seventeen theme and I am able to paste your exact text in the editor and display it on the front end.

Which version of Wordpress are you using? And which theme? If you have a local or dev environment, try disabling some plugins and switching to a bundled Wordpress theme such as Twenty Seventeen.

(Screenshots pending)

#2 in reply to: ↑ 1 @SergeyBiryukov
8 years ago

Replying to tristangemus:

I'm running a clean install of 4.7.2 on the Twenty Seventeen theme and I am able to paste your exact text in the editor and display it on the front end.

In the screenshots, the apostrophes are converted to single quotes, exactly as described. This is done by the built-in wptexturize() function, with no plugins involved.

Replying to ABTOP:

Why can't I have MY content the way I write it?

There's a number of plugins to disable wptexturize() per post or globally.

#3 @tristangemus
8 years ago

My apologies, I misread the initial ticket. Disregard my post above, thanks @SergeyBiryukov

#4 @gitlost
8 years ago

Using Unicode U+2019 apostrophes ’s, s’ rather than ambiguous ASCII ones is probably the easiest solution.

#5 follow-up: @ABTOP
8 years ago

@SergeyBiryukov, thank you, you are most helpful. But think for a second about the value of a feature of it takes a plugin to get rid of it. Eh?

@tristangemus, if you bump up the font size, you'd see better that it's a different squiggle.

@gitlost, U+2019 is RIGHT SINGLE QUOTATION MARK. Sure, it looks similar. Yes, it can be a workaround.

The bigger question remains, however: why am I being forced to work around WordPress's unjustifiable ambition to alter my content?

User's content must be off limits for any alteration. You can't tell people "This is the best Web publishing platform which will empower you to get your ideas out (after we RegEx the hell out of it)."

#6 in reply to: ↑ 5 ; follow-up: @SergeyBiryukov
8 years ago

Replying to ABTOP:

But think for a second about the value of a feature of it takes a plugin to get rid of it. Eh?

I'd prefer having correct typography out of the box (which is what wptexturize() generally does, except for a few edge cases), and installing a plugin to work around those edge cases, if needed.

If wptexturize() was disabled by default, having to install a plugin on all of my sites just to format typographical symbols correctly seems less than ideal. Of course, one could always enter the correct quotes, dashes, etc. manually, but it requires a strong habit and distracts from actual writing.

#7 in reply to: ↑ 6 @ABTOP
8 years ago

Replying to SergeyBiryukov:
Your convenience is my inconvenience. There is plenty of room in the "Writing" settings for an "off" switch for wptexturize().

As it stands, I still consider this a bug: there is no reason to treat two letters an a comma as any sort of a quote. You want fancier typography? Get fancier with RegEx!

#8 @noisysocks
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.