Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On Windows, the key combination Alt + 2+ 5+ 5 creates a blank space. How can I achieve this on Ubuntu?

share|improve this question

3 Answers 3

When you type Alt + numbers in Windows, you are actually typing Alt + character's ASCII code.

To achieve the same in Ubuntu, you must type Ctrl + Shift + character in Unicode.

Example 1:

  • Alt + 255 on Windows creates a non-breaking space (ASCII 255)
  • This character in Unicode is U+00A0
  • On Ubuntu, type it as Ctrl + Shift + U then 00A0

Example 2:

  • Alt + 173 on Windows creates an inverted exclamation mark (ASCII 173)
  • This character in Unicode is U+00A1
  • On Ubuntu, type it as Ctrl + Shift + U then 00A1
share|improve this answer
    
I also would like to know the unicode code for windows alt+173 in ubuntu. –  Valladao Dec 17 '11 at 5:33
5  
You don't need to hold Ctrl-Shift for the whole number, you can release them after the "u", and add a space at end of code. –  enzotib Dec 17 '11 at 6:58
    
@Valladao, I updated my answer to better explain how to type these characters in general, and I included both 173 and 255 as examples. –  michaelms Dec 17 '11 at 15:13
    
@enzotib nice to know I can let go of those keys and actually type with my left hand. :) –  michaelms Dec 17 '11 at 15:13
    
it may be important to note, that this won't work if your caps are locked –  JorgeArtware Aug 11 at 0:10

Another way — «Compose key»

A compose key, available on some computer keyboards, is a special kind of modifier key designated to signal the software to interpret the following (usually two) keystrokes as a combination in order to produce a character not found directly on the keyboard. For example, striking Compose followed by O and then C can produce the symbol ©, the copyright symbol). wikipedia.org

  • ENABLE [Ubuntu 13.04]: System settings... → Keyboard → Layout settings → Options → «Compose key position» and set it, for example, on «Menu» (key between right ALT and CTRL).

  • DO: Hold key «Menu» and push «Space» 2 times. Should get 1 non-breaking space: « ».

Here more Linux compose key sequences: hermit.org

share|improve this answer

ctrl+shift+u+2000, and ctrl+shift+u+2006 respectively

share|improve this answer
    
You can see those 2 chars here: " " and " ". Yep. 2000 and 2006 do nothing. In linux, you have to use Hex, not Dec. –  Tim Dec 6 at 22:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.