• NegativeLookBehind
    link
    fedilink
    302 years ago

    Something similar happened to me a while back. I was copying some code from a Mac to a remote Linux host. For some reason the Mac was using a thing called an “en dash” which is slightly longer than a regular hyphen - and was really fucking frustrating to figure out.

    • @pthaloblue@sh.itjust.works
      link
      fedilink
      552 years ago

      I don’t know why I’m here commenting about this, but I love type, so:

      Hyphen (-): the short one, used for hyphenated words. fire-eaters. Close-up.

      en-dash (–): slightly longer, traditionally the length of a lowercase"n" in the typeface. Used between for things like a timeframe. 10–11:30, August–October

      em-dash (—): the longest of the three, and the length of a lowercase “m”. Used as a punctuation mark to denote a side comment or to abruptly cut off a sentence. “It’s a great punctuation mark—in fact I overuse it—but it’s still useful.” “Hey where are you going with that giant—”

      I didn’t bother to double check the definitions, so there might be more specific rules, but these are my rules of thumb.

    • @lobut@lemmy.ca
      link
      fedilink
      22 years ago

      Some mac apps have some quirks, the default note app was probably not meant for pasting code in, but when you do it changes the quotes and makes them all fancy. Drives me up the wall and there’s nobody to blame but me.

      • @psud@aussie.zone
        link
        fedilink
        12 years ago

        For someone who abuses it, there is a remarkable absence of em-dashes in your comment :—)