Closed Bug 1009256 Opened 11 years ago Closed 11 years ago

FR locale needs   before any ! or ? which affects the desktop snippet service

Categories

(Snippets :: Service, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jcollings, Assigned: osmose)

References

Details

French typography has a different rule for breaking spaces when including ! or ? Here are two examples: JSON Snippet ID: 6 https://bugzilla.mozilla.org/show_bug.cgi?id=1009226 Desktop Snippet ID: 3761 https://bugzilla.mozilla.org/show_bug.cgi?id=1002554 So it's necessary to add   for the text to show correctly however the addition of & affects whether or not it gets pushed out in the snippet server.
Blocks: 1002554, 1009226
Note (just to be sure we are on the same page) that of course the non-breaking space HTML entity must be treated like any other HTML entity and be replaced by the browser with the non-breaking character. For instance œ will be replaced with "œ" by Firefox. Seems pretty obvious, but worth mentioning it rather that seeing " " displayed on about:home later :)
No longer blocks: 1009226
Summary: FR locale needs   before any ! or ? which affects the snippet service → FR locale needs   before any ! or ? which affects the desktop snippet service
It looks like using the unicode character U+202F which was designed exactly for this case solves the problem, as it produces valid XML. Maybe it's worth investigating an easy way to add this character when needed either by translating it's HTML representation   to unicode on save() or by adding a javascript call to add it in text box on button click. The simplest way is to copy paste it from wikipedia page :) https://en.wikipedia.org/wiki/Non-breaking_space
The special unicode character seems to be working just fine. We can automatically convert html entity   to the special space, on snippet save to make this even easier. Jean, would this automation be helpful to you or are you fine using the special space directly?
Flags: needinfo?(jcollings)
No you don't need to build in the automation, it's pretty easy for me to use the special space directly. Thank you.
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(jcollings)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.