• walden@wetshav.ing
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    7
    ·
    8 days ago

    An em dash is --, two dashes. It’s a way to break up a sentence – sort of like a comma.

    Apparently AI uses them a lot.

    • starman2112@sh.itjust.works
      link
      fedilink
      arrow-up
      25
      ·
      8 days ago

      I’m too pedantic to let this slide. An em-dash — is a single dash, the width of an m. An en-dash – is a single dash the width of an n

      • trxxruraxvr@lemmy.world
        link
        fedilink
        arrow-up
        7
        ·
        8 days ago

        If we’re going to be pedantic, the em is a unit of width that depends on the font, but not necessarily the with off an m. Some texts apparently used to define it as the width of the capital M, but this definition is obsolete. source

      • Tess@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        6
        ·
        8 days ago

        So that’s where the name comes from. I never would’ve guessed it was something this straightforward :)

      • ___@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        8 days ago

        On that note, are em dashes and en dashes identical in monospace fonts, if every letter is the same width?

        Edit: I tested this on a few monospace fonts, and they have a character for en dashes but not em dashes

        • forestbeasts@pawb.social
          link
          fedilink
          arrow-up
          2
          ·
          7 days ago

          Very, very similar, yes. It can be annoying!

          We’ve got our browser set to use a monospace font for everything, everywhere, including all websites. It’s awesome for seeing if you’ve accidentally typed two spaces. Not so great for checking to make sure you’re using the right kind of dash!

          – Frost

          (also Lemmy, because it’s annoying, is going to turn my double - here into an en/em dash (not 100% sure which). In this case, I DO in fact mean a double -, dangit.)

    • rabidhamster@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      5
      ·
      8 days ago

      I don’t use AI much. Is it actually using two dashes? 'Cause an em dash is its own character: “—” vs --

      I had to put those in manually with the — html entity in the pre utf-8 web days.

      • walden@wetshav.ing
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 days ago

        You’re right. I’ve always just typed two hyphens and called it good but technically it should be one long dash.

        • rabidhamster@lemmy.dbzer0.com
          link
          fedilink
          English
          arrow-up
          2
          ·
          8 days ago

          Haha, yeah, I probably wouldn’t have learned to care that much if design clients didn’t yell at me about it 20 years ago.

      • PapaStevesy@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        7 days ago

        Different length dashes serve different grammatical purposes, so you can assume they didn’t just use one dash because they intended to use two.

        Funnily enough, the “dash” people use most often isn’t even technically called a dash, it’s a hyphen.