8

I can type a minus (-), an en dash (–) and an em dash (—) easily, I often need hyphens (‐) though. Is there an easy keyboard shortcut? If not how else should I go about inserting hyphens into my prose? Thanks.

3
  • 1
    Just curious: when typing in a word processor, one can simply press the minus key rather than the real hyphen, to get a hyphen the software understands, right? (OpenOffice.org, for example, uses auto-correct to turn a hyphen into a minus, when applicable. Pressing the key that gets one a minus in a simple editor, gets me a hyphen in OpenOffice.org and the like.)
    – Arjan
    Apr 6, 2011 at 15:31
  • Yes, word processors usually replace a minus with the correct glyph for the context.
    – Max Howell
    Apr 6, 2011 at 15:32
  • 4
    In fact, what you said was a minus (U+2D) is a hyphen-minus, which can represent many distinct characters but is usually rendered like a hyphen in a proportional-width font. A minus (−, U+2212) has the same width, height and thickness as a plus sign (e.g. −+−+−). If you want an exclusive hyphen, it is U+2010 (‐).
    – musiphil
    Jan 28, 2014 at 5:20

2 Answers 2

5

It's a one-or-the-other solution, but you could use the built in text-replacement on OS X to replace a minus with a hyphen.

enter image description here

On the left I typed a minus, on the right I inserted a hyphen from the OS X Character Viewer. In theory it should replace all instances of a minus typed with a hyphen. As I said though, it's a one or the other solution. Alternatively, if you use the minus more than an en dash, just replace the en dash with a hyphen.

2

You can use Ukelele to create a custom keyboard layout (starting with the default Mac layout) which has the hyphen character in it.

You must log in to answer this question.

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