Last modified: 2014-08-23 12:27:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T40724, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38724 - VisualEditor: Automatically use "smart quotes" and convert other typing to more advance characters (as an option)
VisualEditor: Automatically use "smart quotes" and convert other typing to mo...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Lowest enhancement
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-26 18:58 UTC by James Forrester
Modified: 2014-08-23 12:27 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description James Forrester 2012-07-26 18:58:57 UTC
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.
Comment 1 James Forrester 2012-07-27 00:25:15 UTC
Also ellipses (... -> …) and other auto-conversions, if this is done.
Comment 2 Amgine 2012-07-27 03:13:17 UTC
And use bom. It's the right thing to do.
Comment 3 Chris McKenna 2013-08-08 10:06:17 UTC
en.wp user Ruud Koot requests "--" be converted to endash and "---" to emdash, which is slightly different to comment 0.
Comment 4 Elitre 2014-06-29 05:32:09 UTC
For German, that would mean changing "" in „“, like it is being suggested at de.wp.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links