8

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
3
  • See askubuntu.com/questions/358/…
    – belacqua
    May 3, 2012 at 22:50
  • 1
    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.
    – user265585
    Apr 5, 2014 at 12:04
  • @user265585 askubuntu.com/questions/131044/… below, and moreover: please note the linked question(s) to the right. Jul 4, 2015 at 1:25

2 Answers 2

10

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.

1
  • 2
    I don't believe you need to hold down Shift+Control. (I don't on my machine anyway.) Jun 28, 2013 at 2:39
0

Here is how to type those characters using the compose key:

  • (U+2018): compose key, then ', <
  • (U+2019): compose key, then ', >
  • (U+201C): compose key, then ', <
  • (U+201D): compose key, then ", >
  • (U+2026): compose key, then ., .
  • (U+2014): compose key, then -, -, -
  • (U+2013): compose key, then -, -, .
0

You must log in to answer this question.

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