Page MenuHomePhabricator

VisualEditor: Automatically use "smart quotes" and convert other typing to more advance characters (as an option)
Open, LowestPublic


From user suggestion, along the lines of how Microsoft Word works.

This would involve a number of language-specific substitutions (and probably some shared ones); for English, I believe it would at least involve:

  • If a user types the character string 'foo "bar', on the pressing of the 'b' it would convert the '"' character to a an “.
  • If a user types the '"' character whilst in a string that has an “ in it earlier, convert the character to an ”.
  • If a user types in ' - ', on the pressing of the space character after the hyphen, covert the hyphen to an &endash;.
  • If a user types in ' -- ', on the pressing of the space character after the second hyphen, covert the two hyphens into one &emdash;.

Worth considering as a nice to have; this would probably want to be both site-configurable (is it available at all; if yes, is it default-on), and user-configurable.

Version: unspecified
Severity: enhancement



Related Objects

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 1:04 AM
bzimport set Reference to bz38724.

Also ellipses (... -> …) and other auto-conversions, if this is done.

wmf.amgine3691 wrote:

And use bom. It's the right thing to do.

en.wp user Ruud Koot requests "--" be converted to endash and "---" to emdash, which is slightly different to comment 0.

For German, that would mean changing "" in „“, like it is being suggested at de.wp.

matmarex removed matmarex as the assignee of this task.Apr 29 2015, 11:01 PM

I actually can't promise that I'll implement this soon, so I'm unassigning myself; sorry. I'm still interested in this, and proper typography on the wikis in general :)

Moyogo added a subscriber: Moyogo.Aug 27 2016, 8:56 PM

Anything going on? It's high time that typography is corrected automatically; I don't get how you can classify this as lowest priority!