Page MenuHomePhabricator

Automatic typographic quotation marks
Open, LowPublicFeature

Description

Author: bugzilla

Description:
It would be nice if Mediawiki could get a “Smart Quotes (and Apostrophes)” ability. I don’t care much if it would change the characters in the source or if it only changed " and ' for display. MW should of course ignore straight marks that are code themselves (Wiki markup or HTML, and inside <source/>).

Several [http://www.poppyware.com/dunham/smartQuotes.html algorithms] have been published, so no need to reinvent the wheel, but if you assume certain style guides be followed, they may even be simplified and leave no ambiguous situations. (The Manual of Style for the English Wikipedia, for instance, requires double quotation marks used in the logic style.)

I would prefer if only " and ' would be converted, not character SGML/HTML/XML references, but that would only work on the code and not the display level of course.


Version: unspecified
Severity: enhancement

Details

Reference
bz22700

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:11 PM
bzimport set Reference to bz22700.
bzimport added a subscriber: Unknown Object (MLST).

/me notes when I type a " I expect it to be a ", not some smart quote thing. Some wiki's (wikinews in particular) have policies against using smart quotes in articles.

conrad.irwin wrote:

I would not enjoy this feature either, but it could easily be added by an extension, either at save time, or parse time. I've changed the product to MediaWiki extensions accordingly.

bugzilla wrote:

Wikinews and English Wikipedia advice against typographic quotation marks simply because users can’t be expected to enter them correctly and consistently. A smart quotes feature would eliminate that concern.

There are, however, also people who actually like straight quotes better, but that also depends on the font – they might be okaish with some sans serif typefaces (as in the standard skin Monobook), but they are always ugly with serif faces.

A " or ' surrounded by whitespace (or punctuation) on both sides should probably not be converted.

The extension should be language-aware.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:01 AM
Aklapper removed a subscriber: wikibugs-l-list.