Last modified: 2011-03-13 18:06:25 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 T12246, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10246 - French space fix
French space fix
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Lowest minor (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-06-13 17:29 UTC by mike
Modified: 2011-03-13 18:06 UTC (History)
0 users

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

spaces in front of punctuation replaced with a no-break space surrounded with a span with a font size of 0.25em (709 bytes, patch)
2007-06-13 17:55 UTC, mike
Same fix as extension (890 bytes, patch)
2007-06-15 17:39 UTC, mike
Removes french typo (799 bytes, patch)
2007-06-15 17:40 UTC, mike

Description mike 2007-06-13 17:29:42 UTC
The no-break space added before french punctuation symbols like ";", "!" or ":" is wrong. It should be one fourth of an em wide (see the french page about punctuation : ).

Since the HTML entity doesn't look well supported, I suggest we replace the actual "&nbsp;" with "<span style="font-size: 0.25em;">&nbsp;</span>".
Comment 1 mike 2007-06-13 17:55:55 UTC
Created attachment 3756 [details]
spaces in front of punctuation replaced with a no-break space surrounded with a span with a font size of 0.25em
Comment 2 mike 2007-06-15 17:39:35 UTC
Created attachment 3784 [details]
Same fix as extension

If you'd rather move this behavior to an extension, here's the code.
Comment 3 mike 2007-06-15 17:40:43 UTC
Created attachment 3785 [details]
Removes french typo

And here's the patch to remove the behavior from the core.
Comment 4 Brion Vibber 2007-06-15 18:24:09 UTC
This would be far too fragile, producing invalid output where text appears eg inside HTML attribute values.

Doesn't really seem worth the effort, given that normal-sized spaces are being used to begin with.

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