Smart quotes for smart Ubuntu people

Jason Santa Maria recently put together “Smart Quotes for Smart People” to explain that using old-fashioned “straight quotes” (the ones that don’t curve, like this: ” ) is a typographical horror and we should be using proper curved quotation marks when writing. He is wholly correct in this.1 There have traditionally been problems where smart quotes have ended up in program code to be cut-and-pasted, with obvious shrieking from your computer when it fails to recognise them, but when actually writing for human consumption, we should be writing with human punctuation. Wordpress, which I’m using to publish this site, is good at this (well done, Wordpress team!), allowing you to write with typewriter-style straight quotes and then converting them for you, but many things do not. JSM’s2 polemic, for National Punctuation Day, includes instructions on how to actually type proper quotation marks at the keyboard for Windows and Mac users, but not (yet) for Ubuntu. So, the explanation below.

To type proper quotation marks on Ubuntu:

Single opening quoteShift+AltGr then < then '
Single closing quoteShift+AltGr then > then '
Double opening quoteShift+AltGr then < then "
Double closing quoteShift+AltGr then > then "

You’ll notice a certain amount of commonality here. First, the Shift+AltGr to mean “I’d like to type something special”, then < or > to mean “left” or “right”, then the quotation mark you want to type. So a right double-quote is typed as a straight double-quote with “specially, make it the right-hand one of these” before it.

That Shift+AltGr thing is actually the Compose key, and it can be used to type all sorts of inaccessible characters without having to remember a magic number for them. For example, the copyright symbol © is typed with Shift+AltGr, o, c — that is: “specially, draw a circle around c”. Learning a couple of these means that you can guess others: for example, the registered trademark symbol ® is Shift+AltGr, o, r, for it is a circle around an “r”. An O with a slash through it — Ø — is Shift+AltGr, /, O. That’s why the Shift+AltGr is called “Compose”: you use it to compose together a series of characters. And now you can use it to write smart quotes for human beings.

  1. To quote from the site itself, “When dealing with code, straight quotes are often required. Otherwise, straight quotes should never appear in your design work and professional writing, unless you are making a site about proper punctuation.”
  2. normally I’d use a surname here, viz. “Langridge’s polemic”, but I’m not sure whether that would be “Maria’s” or “Santa Maria’s”, horrible English imperialist that I am
I'm currently available for hire, to help you plan, architect, and build new systems, and for technical writing and articles. You can take a look at some projects I've worked on and some of my writing. If you'd like to talk about your upcoming project, do get in touch.

More in the discussion (powered by webmentions)

  • Alex Willmer responded at @sil Ooh, that's nice. I ♥ shift + altgr + < + 3, but shift + altgr + : + ) makes me ☺
  • Stuart Langridge responded at @moreati great, innit? So much nicer than having to know codes.
  • Alex Willmer responded at @sil or *cough* googling Unicode every time
  • Alex Willmer responded at @sil this feels ideal subject matter for a @tomscott video: "Howto emoji on {Windows|OSX|OS/2|Linux}?"
  • Alex Willmer responded at @sil or (with nice UX/UI that shows well in a gif) the kind of feature that might get much broader media coverage than usual w Ubuntu
  • Stuart Langridge responded at @moreati yeah; something like that was at the back of my mind when asking the question about shortcodes
  • Alex Willmer responded at @sil having said all that "Compose key" is a _terrible_ name for what's now a key sequence
  • Stuart Langridge responded at @moreati good technology ahead of others, terrible over-technical name. This is a familiar feeling.
  • Alex Willmer responded at @sil I think I've had similar visions - something inspired by the overlay that appears when you hold down the Win (meta?) key?
  • Stuart Langridge responded at @moreati I did a little work a regime back trying to use onboard, the popup keyboard, with a custom emoji layout. Never finished it
  • Jonathan Lange responded at @sil @moreati Have I talked to you about monads lately?
  • Ben Frain responded at Thanks Stuart, I’ll go and check that out!
  • carlo lobrano 🇮🇹🇪🇺🐧💜🛴 responded at It's a cool thing. I use it daily, having an English keyboard layout, but writing also In Italian. Good thing that guys at @elementary put the compose…
  • Stuart Langridge responded at ooh that sounds cool. What does the settings app do with the Compose key? Teach you how to use it, or allow you to set which key it is, or...?
  • carlo lobrano 🇮🇹🇪🇺🐧💜🛴 responded at Uhm, teaching how to use it would be a great idea. It just let you decide which key map to the compose. The same thing gnome tweaks does, but out of t…
  • Stuart Langridge responded at ooh! I did not know (a) that tweaks did that and (b) that in tweaks on my machine it's set to Scroll Lock which also works as well as shift+altgr! Nic…
  • carlo lobrano 🇮🇹🇪🇺🐧💜🛴 responded at It's a bit hidden In tweaks 😁
  • Jan Sundman responded at
  • Alan Pope 🍺🐧🐱🇬🇧🇪🇺 responded at
  • John Nordberg responded at
  • carlo lobrano 🇮🇹🇪🇺🐧💜🛴 responded at
  • ItzSwirlz responded at
  • Matthew Somerville responded at Windows people, get Keyferret – – then it’s AltGr, hyphen twice. I use it all the time, can’t believe no-one appears to have mentioned i…