VisualEditor: Add non-breaking space (nbsp) to the "special character" dialog
Open, NormalPublic


Author: misc2006

The most obvious way to add a non-breaking space (other than typing it, see T53045) would be the Insert -> Special Characters dialog.

Alternative: T53045: VisualEditor: Ctrl+Space/Opt+Space to insert a non-breaking space (NBSP)


bzimport set Reference to bz68429.
bzimport created this task.Jul 23 2014, 9:00 AM

Adding 68425 or users will have no idea what it is.

Elitre added a subscriber: Elitre.Jan 6 2015, 10:53 AM
Gnom1 added a subscriber: Gnom1.Mar 9 2015, 1:34 PM
Ltrlg added a subscriber: Ltrlg.Mar 9 2015, 5:07 PM

A hopefully clearer rationale for this request, from User:Gnom:

Our typography rules call for a non-breaking space when discussing units and abbreviations ("a marathon is run over a distance of 42.195 km" calls for 42.195 km ; "water boils at 100 °C" requires 100 °C ; "Mary Shelley created the character of Dr. Frankenstein" includes Dr. Frankenstein ). I frequently use it in every law-related article in relation to the "§" sign, an example for this would be the article on Mietvertrag (Deutschland).

(Notice the several occurrences of the NBSP in

Aklapper changed the title from "VisualEditor: Add non-breaking space to the "special character" dialog" to "VisualEditor: Add non-breaking space (nbsp) to the "special character" dialog".Mar 19 2015, 11:09 AM
Aklapper set Security to None.

Or you could somehow annotate the whole word as nowrap. Arguably <nowrap>100 °C</nowrap> would be clearer than 100&nbsp;°C

We already have the ability to use different label on the button than the character that will be inserted (we use it for more meaningful labels for combining characters, and in fact for invisible ones like zero-width non-joiner and joiner). We should probably make the label say "NBSP" if we do this.

Nnemo added a subscriber: Nnemo.Apr 27 2015, 12:46 PM

Due to various implementation details this is more difficult than it looks (it's not just a matter of adding an entry to the list of available characters). If we implement T53045: VisualEditor: Ctrl+Space/Opt+Space to insert a non-breaking space (NBSP), I'm not sure if this one will be worth it.

Given that happened, I guess that the special character option is still more difficult to implement than the other one, even if just as a temporary workaround?