Page MenuHomePhabricator

narrow no-breaking space &nnbsp; missed
Closed, DeclinedPublic

Description

Author: Juergen.Thomas

Description:
HTML offers   and &nnbsp; (narrow no-breaking space). Wiki offers   and   but   allows line breaking. Typographic rules say (in Germany, at least): One has to use a thin space to show tousands and a fixed space to combine value and unit: 123 456 km² Both spaces must be no-breakings.

Either   is extended to "no-break". Or &nnbsp; is installed.

Thank you!


Version: unspecified
Severity: enhancement
OS: Windows 7
Platform: PC

Details

Reference
bz26205

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 11:13 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz26205.
bzimport added a subscriber: Unknown Object (MLST).

HTML offers   and &nnbsp;

Source? Wikipedia disagrees that &nnbsp; is a real entity in (x)html.

Either   is extended to "no-break". Or &nnbsp; is installed.

We just generally offer what html does. Adding our own entities and translating them on the fly seems to be a bad idea because then it'd be confusing as to why &somethingRandom; works when it doesn't in html. Furthermore it'd be extremely confusing to have the parser replace   with a character other then what   represents in html.

Note: you can currently type this character using the entities   or   (or by directly typing it in. In firefrox, ctrl+shift+u + 202f (thats a literal plus) types it in. If thats too hard to remember, why not create a template {{nnbsp}} containing the character.

I suggest wontfixing this.

Juergen.Thomas wrote:

Sorry, I misunderstood the de.wikipedia article "Geschütztes Leerzeichen". The abbreviation NNBSP doesn't concern to an html code like I meant.

I'ld better avoid a template {{nnbsp}} if wikimedia would contain a general solution.

I shall use   or a template further on. Sorry for unnecessary request.