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.

In Mac OS X there are ways to input punctuation marks by combination of some keystrokes. For example, Alt + ; inputs a precomposed ellipsis character (, U+2026). Alt + [ opens a curly double quote character (, U+201C). Is there any way to input such punctuation marks in simple combination of keystrokes in Ubuntu?

The following is a list of characters I want to use:

  • (U+2018): Single quote opening
  • (U+2019): Single quote closing
  • (U+201C): Double quote opening
  • (U+201D): Double quote closing
  • (U+2026): Precomposed ellipsis
  • (U+2014): Em dash
  • (U+2013): En dash
share|improve this question
    
See askubuntu.com/questions/358/… –  belacqua May 3 '12 at 22:50
    
That's ok, but what if I have switched my alternate keyboard? Then I have to switch keyborad, e.g. <kbd>Alt</kbd>+<kbd>Shift</kbd>, enter <kbd>Control</kbd>+<kbd>Shift</kbd>+U, 2026, <kbd>Enter</kbd> and then switch back to my alternate keyboard (again <kbd>Alt</kbd>+<kbd>Shift</kbd>). Too much in order to enter a single character. I would rather prefer the ability to define my own key sequences. Forgot to say that the reason to switch keyboards is that <kbd>Control</kbd>+<kbd>Shift</kbd>+U is entered like <kbd>Control</kbd>+<kbd>Shift</kbd>+Θ when Greek keyboard is on. –  Panos Papadopoulos Apr 5 at 12:04
add comment

1 Answer

I think what you are looking for is in the Unicode composition section of the Ubuntu documentation for the ComposeKey. The next bit is based on the instructions in that section.


Another means to enter non-keycap characters is to enter them as a Unicode character number.

  • Press ShiftCtrl+U.

    Release U while continuing to hold down ShiftCtrl.

    Enter the four hexadecimal digit (0123456789abcdef) number for the Unicode character code point. (An underlined u followed by the number will display as you type.)

    Release ShiftCtrl.

  • Another alternative is to press (and release) ShiftCtrl+U. An underlined u is displayed.

    Enter the hexadecimal Unicode character code point

    Press Return.


I used the instructions above to create this string: ‘some text’ … (Ta-Da!)

For whatever its worth, I found this by looking at this answer to the question "How can I type special characters like ë?".

This question was at the top of the list of links "Related" to your question. The Related links list is always present in the right hand sidebar of any question on a Stack Exchange site.

share|improve this answer
    
I don't believe you need to hold down Shift+Control. (I don't on my machine anyway.) –  Michael Mior Jun 28 '13 at 2:39
add comment

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.