12

(Related to this request, and this question)

For better or for worse, in French, one is supposed to insert a non-breakable space before various punctuation (? : ! ;).

I can hand-code  s into questions, but they get escaped in comments.

Is there any chance you could 'escape' the escaping for us? :)

UPDATE I've rolled a user-script to convert Ctrl-spaces to non-break-spaces (inspired by Frédéric's answer below).

2
  • For better or for worse, in French, one is supposed to insert a non-breakable space before various punctuation. This is an english website...or did I miss something here? Sep 2, 2011 at 6:40
  • 5
    @Strait, yes, you missed something :)
    – Benjol
    Sep 2, 2011 at 6:48

1 Answer 1

15

That would indeed be useful, even though special-casing a single HTML entity like that might not be the right thing to do (there probably are other entities that would benefit from the same treatment).

However, maybe we don't need special support to achieve this. There are ways to input actual no-break space characters, depending on your operating system and graphical environment. Wikipedia has a nice list here.

I was able to test the following key sequences:

  • Everything on Windows: hold Alt, (on the numeric keypad) 0, 1, 6, 0, release Alt.

  • GTK-based Firefox on Linux: Ctrl + Shift + U, 0, 0, A, 0.

  • On Mac, Alt +        Space        .

6
  • Nice, but unfortunately ecx.images-amazon.com/images/I/31H-CGFkkLL._SL500_AA300_.jpg :(
    – Benjol
    Aug 30, 2011 at 9:49
  • 7
    Whoa! You just taught me how to type unicode characters on my linux machine! +1
    – Paul
    Aug 30, 2011 at 9:50
  • @Benjol, no keypad? Not even through an Fn modifier like on laptops? That's indeed unfortunate :) Aug 30, 2011 at 10:02
  • Fréd, woops! Well spotted, I just have to hit Num Lock, silly me ! (Not very convenient though, I think I'm going to try and hack together a gm script for alt+space!)
    – Benjol
    Aug 30, 2011 at 10:23
  • This is the first occasion on which I've wanted a Mac for reasons of simplicity... Aug 30, 2011 at 10:41
  • . testing some spaces.
    – genesis
    Aug 30, 2011 at 22:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .