How do you type an en dash in a file name?

965 views
Skip to first unread message

Paul Johnson

unread,
Jan 4, 2011, 10:05:37 PM1/4/11
to kul...@googlegroups.com
I found some funny file names on the internet, which sent me searching.

Did you know there are 3 lengths of hypthen? dash (short), en dash (medium, width of "N"), em dash (long, width of "M").

I hope these come through in whatever encoding email uses these days. I see a big difference.

_-_ : that's two underscores with a single dash between

_�_ : that's two underscores with an en dash between


How do you type an "en dash" or an "em dash"?

I found these symbols in some file names and I can copy/paste to show you what they are, but can't figure how to make
my own.

In LaTeX, the en dash is required between two numbers, but LaTeX also gives a way to enter them. But in the more
general context, the terminal or an email client, well, I can't figure it out.

pj

__
Paul E. Johnson email: paul...@ku.edu
Professor, Political Science http://pj.freefaculty.org
Assoc. Director, Center for Research Methods and Data Analysis
1541 Lilac Lane, Rm 504
University of Kansas Office: (785) 864-9086
Lawrence, Kansas 66045-3129 FAX: (785) 864-5700

Andrew Scott Beals

unread,
Jan 4, 2011, 10:18:00 PM1/4/11
to kul...@googlegroups.com
It's easy with a Mac. En– Em—


On Jan 4, 2011, at 9:05 PM, Paul Johnson wrote:

> I found some funny file names on the internet, which sent me searching.
>
> Did you know there are 3 lengths of hypthen? dash (short), en dash (medium, width of "N"), em dash (long, width of "M").
>
> I hope these come through in whatever encoding email uses these days. I see a big difference.
>
> _-_ : that's two underscores with a single dash between
>

> _–_ : that's two underscores with an en dash between


>
>
> How do you type an "en dash" or an "em dash"?
>
> I found these symbols in some file names and I can copy/paste to show you what they are, but can't figure how to make
> my own.
>
> In LaTeX, the en dash is required between two numbers, but LaTeX also gives a way to enter them. But in the more
> general context, the terminal or an email client, well, I can't figure it out.
>
> pj
>
> __
> Paul E. Johnson email: paul...@ku.edu
> Professor, Political Science http://pj.freefaculty.org
> Assoc. Director, Center for Research Methods and Data Analysis
> 1541 Lilac Lane, Rm 504
> University of Kansas Office: (785) 864-9086
> Lawrence, Kansas 66045-3129 FAX: (785) 864-5700
>

> --
> You received this message because you are subscribed to the Google Groups "kulua-l" group.
> To post to this group, send email to kul...@googlegroups.com.
> To unsubscribe from this group, send email to kulua-l+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/kulua-l?hl=en.
>

Billy Crook

unread,
Jan 4, 2011, 10:40:35 PM1/4/11
to kul...@googlegroups.com
> How do you type an en dash in a file name?

Don't. Please don't. I beg of you.

On Tue, Jan 4, 2011 at 21:18, Andrew Scott Beals <andrew...@gmail.com> wrote:
> It's easy with a Mac.  En– Em—

It is also trivial on GNU. And I'll explain how to do it.

Type [Ctrl]+[Shift]+[u], then the number '2013' for endash (–), '2014'
for emdash (—).

There's nothing magical about endash and emdash. They're unicode just
like thousands of other graphemes.

You can technically use unicode in filenames. But please, don't. If
I catch you doing it on my computers, I will come after you.

Certain web cms software likes to turn double consecutive hyphens into
endashes or emdashes when the page is rendered to visitors. This is
completely unacceptable because when the author documents a GNU+Linux
command that involves a double-dash argument (like rsync
--exclude=/proc .....) and then someone else comes there to get that
command and use it in a terminal, unless they're hand typing it out
again, bash will freak out when it is fed invalid unicode dashes from
the clipboard.

Please do not abuse unicode.

Paul Johnson

unread,
Jan 4, 2011, 11:08:06 PM1/4/11
to kul...@googlegroups.com
On 01/04/2011 09:40 PM, Billy Crook wrote:
>> How do you type an en dash in a file name?
>
> Don't. Please don't. I beg of you.
>
> On Tue, Jan 4, 2011 at 21:18, Andrew Scott Beals <andrew...@gmail.com> wrote:
>> It's easy with a Mac. En� Em�

>
> It is also trivial on GNU. And I'll explain how to do it.
>
> Type [Ctrl]+[Shift]+[u], then the number '2013' for endash (�), '2014'
> for emdash (�).
>
In an MLTerm, I do that, and just see 2013 on the command line.

So I think that means you have fiddled your input system, with SCiM or something such. Right?

pj

--

lowell

unread,
Jan 4, 2011, 11:20:00 PM1/4/11
to kul...@googlegroups.com
both 2013 & 2014 give me the same-sized mark: " � " (I have to hit
enter to turn the numerals into the dash.)

On 01/04/2011 09:40 PM, Billy Crook wrote:

>> How do you type an en dash in a file name?
> Don't. Please don't. I beg of you.
>
> On Tue, Jan 4, 2011 at 21:18, Andrew Scott Beals<andrew...@gmail.com> wrote:

>> It's easy with a Mac. En� Em�


> It is also trivial on GNU. And I'll explain how to do it.
>

> Type [Ctrl]+[Shift]+[u], then the number '2013' for endash (�), '2014'

> for emdash (�).

Billy Crook

unread,
Jan 4, 2011, 11:35:54 PM1/4/11
to kul...@googlegroups.com
On Tue, Jan 4, 2011 at 22:08, Paul Johnson <paul...@ku.edu> wrote:
> In an MLTerm, I do that, and just see 2013 on the command line.
>
> So I think that means  you have fiddled  your input system, with SCiM or something such.  Right?

I'm using Gnome Terminal. Handling these sort of "alt codes" seems to
work the same in all GTK programs. It fails in xterm, ktorrent, and
tty2.

On Tue, Jan 4, 2011 at 22:20, lowell <low...@kc.rr.com> wrote:
> both 2013 & 2014 give me the same-sized mark: " – "  (I have to hit enter to


> turn the numerals into the dash.)

Oh yeah. I forgot about that. Enter submits it. I bet em and en
dash simply are the same size in your fontface.

Again, boo hiss unicode, bad, don't do it.

Paul Johnson

unread,
Jan 6, 2011, 3:27:35 PM1/6/11
to kul...@googlegroups.com
On 01/04/2011 10:35 PM, Billy Crook wrote:
> On Tue, Jan 4, 2011 at 22:08, Paul Johnson <paul...@ku.edu> wrote:
>> In an MLTerm, I do that, and just see 2013 on the command line.
>>
>> So I think that means you have fiddled your input system, with SCiM or something such. Right?
>
> I'm using Gnome Terminal. Handling these sort of "alt codes" seems to
> work the same in all GTK programs. It fails in xterm, ktorrent, and
> tty2.
>

I've reached the same conclusion. It depends on the program. Most Gnome/GTK things (gnome-terminal, gedit) use the
S+C+U NNNN approach. That also works in the Nautilus file manager's rename panel. xterm does nothing about it, Emacs
has its own unique scheme, C-8, but that depends on whether your keyboard is American English or American English (with
dead keys). The XFCE file manager Thunar DOES respond to C+S+U. KDE must have its own scheme entirely, as none of these
approaches work in their file manager dolphin.

Well, in the end, it is another case of situation normal, all f*cked up.

Nick Anderson

unread,
Jan 5, 2011, 4:41:01 PM1/5/11
to kul...@googlegroups.com
On 01/04/2011 09:05 PM, Paul Johnson wrote:
> I found some funny file names on the internet, which sent me searching.
>
> Did you know there are 3 lengths of hypthen? dash (short), en dash (medium, width of "N"), em dash (long, width of "M").
>
> I hope these come through in whatever encoding email uses these days. I see a big difference.
>
> _-_ : that's two underscores with a single dash between
>
> _�_ : that's two underscores with an en dash between
>
>
> How do you type an "en dash" or an "em dash"?
>
> I found these symbols in some file names and I can copy/paste to show you what they are, but can't figure how to make
> my own.
>
> In LaTeX, the en dash is required between two numbers, but LaTeX also gives a way to enter them. But in the more
> general context, the terminal or an email client, well, I can't figure it out.

The simple way is to use a character map if you dont do it very often.
The gnome variant is gucharmap.

To actually type the characters you will need to enter a special
keystroke combination. I think its the unicode value at least in gnome,
at any rate you can see the special incantation in the character map.

hold ctrl + shift while typing the code

example ctrl+shift U2014 == em dash �
and ctrl+shift U2013 == en dash �

At least for me it underlines the text as I am typing it and when you
release the ctrl+shift it pops in the correct character.

Nick Andrson

unread,
Jan 8, 2011, 7:15:59 PM1/8/11
to kul...@googlegroups.com, kul...@googlegroups.com
Wow that one was slow delivery

Sent from my mobile

On Jan 5, 2011, at 3:41 PM, Nick Anderson <ni...@cmdln.org> wrote:

> On 01/04/2011 09:05 PM, Paul Johnson wrote:
>> I found some funny file names on the internet, which sent me searching.
>>
>> Did you know there are 3 lengths of hypthen? dash (short), en dash (medium, width of "N"), em dash (long, width of "M").
>>
>> I hope these come through in whatever encoding email uses these days. I see a big difference.
>>
>> _-_ : that's two underscores with a single dash between
>>

>> _–_ : that's two underscores with an en dash between


>>
>>
>> How do you type an "en dash" or an "em dash"?
>>
>> I found these symbols in some file names and I can copy/paste to show you what they are, but can't figure how to make
>> my own.
>>
>> In LaTeX, the en dash is required between two numbers, but LaTeX also gives a way to enter them. But in the more
>> general context, the terminal or an email client, well, I can't figure it out.
>
> The simple way is to use a character map if you dont do it very often.
> The gnome variant is gucharmap.
>
> To actually type the characters you will need to enter a special
> keystroke combination. I think its the unicode value at least in gnome,
> at any rate you can see the special incantation in the character map.
>
> hold ctrl + shift while typing the code
>

> example ctrl+shift U2014 == em dash —
> and ctrl+shift U2013 == en dash –


>
> At least for me it underlines the text as I am typing it and when you
> release the ctrl+shift it pops in the correct character.
>

Steve Nordquist

unread,
Jan 9, 2011, 4:50:04 PM1/9/11
to kul...@googlegroups.com
Ah, the joy of holding alt while you punch numbers and count
empty-block UTF-16 placeholder characters....
The CMS converting dieresis and dashes isn't something that makes much
sense for presentation of code, not to say it isn't named ColdFusion
CMS or styled amain. How do you file all your chop socky and
bollywood flicks, (or rather the Summer Olympics from 2010) anyhow?
And why shouldn't all those glyphs be considered regex generics,
really?

#> pts/3's admin, damejudydensch, has changed status to RAGEQUIT.

Oops, gotta...write some checkfiles named with backticks or ranges or something.

w--
Why not just use the metacharacter that wishes for more

Karl Schmidt

unread,
Jan 9, 2011, 9:00:59 PM1/9/11
to kul...@googlegroups.com
Kit USA just sent me a letter telling me they will no longer provide static IP with my DSL service..

So, I'm looking at what is available - (I need a static for some things I do).

U-verse is available - they have a box across the street.. There seems to be quite a mess with
dealing with their required router box.

Years ago I looked into Sunflower and they had a very high charge to use a static ( $140/mo?).

Wondering if others here in Lawrence that might have been exposed to both might have some feedback?

I'm not sure, but it looks like I would have to go with business rates to get a static IP with
U-verse - not sure what games they play with that at Sunflower. Hmm Sunflower has caps - 250


What I had worked - worked well - few outages - good speed.

The bit I've heard is Sunflower (that is under new management ) has good support - ATT bad support,
but if you get things working U-verse might be the better deal.

Love to hear any current u-verse internet only users..

--------------------------------------------------------------------------------
Karl Schmidt EMail Ka...@xtronics.com
Transtronics, Inc. WEB http://xtronics.com
3209 West 9th Street Ph (785) 841-3089
Lawrence, KS 66049 FAX (785) 841-0434

Wishful thinking: Time wounds all heels.

--------------------------------------------------------------------------------

Rezty Felty

unread,
Jan 9, 2011, 9:29:54 PM1/9/11
to kul...@googlegroups.com
I use Sunflower, and do some personal hosting, what I've found over 5 years+ of using them is that the "dynamic" works just fine, my IP never changes unless I change the NIC my cablemodem is attached to . . . which has happened maybe 3 times?

Rezty Felty
Hallmark Digital - Infrastructure
816.559.1196 office


MSN rusty...@hotmail.com
YIM HiRez_L
AIM HiRezL
ICQ 1932818
Skype Rezty.Felty
Googletalk Re...@KC-Felty.Net


Karl Schmidt

unread,
Jan 9, 2011, 10:23:30 PM1/9/11
to kul...@googlegroups.com
On 01/09/2011 08:29 PM, Rezty Felty wrote:
> I use Sunflower, and do some personal hosting, what I've found over 5
> years+ of using them is that the "dynamic" works just fine, my IP never
> changes unless I change the NIC my cablemodem is attached to . . . which
> has happened maybe 3 times?

Yes - I know about DDNS, but I have to use a static due to an agreement.

What kind of upload speeds do you get? - looks like no way to go over 1Mb/sec

What do you think of their service - Know anything about AT&Fee's U-verse?


--------------------------------------------------------------------------------
Karl Schmidt EMail Ka...@xtronics.com
Transtronics, Inc. WEB http://xtronics.com
3209 West 9th Street Ph (785) 841-3089
Lawrence, KS 66049 FAX (785) 841-0434

The most important single central fact about a free market is that no exchange
takes place unless both parties benefit.
Milton Friedman

--------------------------------------------------------------------------------

Billy Crook

unread,
Jan 9, 2011, 11:08:54 PM1/9/11
to kul...@googlegroups.com

On Jan 9, 2011 9:23 PM, "Karl Schmidt" <ka...@xtronics.com> wrote


> Yes - I know about DDNS, but I have to use a static due to an agreement.

If your agreement does not also specify v4, you can get a static v6 network from hurricane electric for gratis.

Frank Wiles

unread,
Jan 10, 2011, 12:01:41 PM1/10/11
to kul...@googlegroups.com
On Sun, Jan 9, 2011 at 8:00 PM, Karl Schmidt <ka...@xtronics.com> wrote:
>
> Years ago I looked into Sunflower and they had a very high charge to use a
> static ( $140/mo?).

I've got a static and it's only $15/month, granted on that's on my
personal account and I believe one comes included with the business
plans.

--
Frank Wiles
Revolution Systems | http://www.revsys.com/
fr...@revsys.com   | (800) 647-6298

David Nicol

unread,
Jan 10, 2011, 12:24:48 PM1/10/11
to kul...@googlegroups.com
On Sun, Jan 9, 2011 at 3:50 PM, Steve Nordquist
<steve.n...@gmail.com> wrote:
> And why shouldn't all those glyphs be considered regex generics,
> really?

in Perl they are, and furthermore if the unicode consortium has
declared a group of characters like "DASHLIKE CHARACTERS" it is
available by that name with a standard name wrapping syntax, in teh
regexen.

Jeffrey Watts

unread,
Jan 10, 2011, 1:20:30 PM1/10/11
to kul...@googlegroups.com
Nick:  Google flagged your message as potential spam, so I had to approve it to go through.

Jeffrey.

Kendric Beachey

unread,
Jan 10, 2011, 5:01:29 PM1/10/11
to kul...@googlegroups.com
I'm a uverse "internet and TV" user.  The internet side has been fine...the router is actually not bad, has plenty of controls, but I did run into trouble when I tried to do fancy stuff like forwarding different ports to different machines.  I'm no longer trying to pass any ports through, just browsing/emailing/etc, and it all works OK.

The TV side is where my gripes are.  Anyone who's been using TiVo for a long time and then had to deal with the uverse DVR knows what I'm talking about.  If SureWest builds down to my neighborhood, I'm jumping ship.

Kendric Beachey


On Sun, Jan 9, 2011 at 8:00 PM, Karl Schmidt <ka...@xtronics.com> wrote:

Andrew Scott Beals

unread,
Jan 10, 2011, 5:23:55 PM1/10/11
to kul...@googlegroups.com

On Jan 4, 2011, at 9:40 PM, Billy Crook wrote:

>> How do you type an en dash in a file name?
>
> Don't. Please don't. I beg of you.
>
> On Tue, Jan 4, 2011 at 21:18, Andrew Scott Beals <andrew...@gmail.com> wrote:
>> It's easy with a Mac. En– Em—
>
> It is also trivial on GNU. And I'll explain how to do it.
>
> Type [Ctrl]+[Shift]+[u], then the number '2013' for endash (–), '2014'
> for emdash (—).

That's trivial? OSX is Option - for En and Option Shift - for Em.

> You can technically use unicode in filenames. But please, don't. If
> I catch you doing it on my computers, I will come after you.

Let's talk about spaces in directory names and programs that don't quote properly, like rsync, not to mention thousands of silly shell and perl scripts…

> Certain web cms software likes to turn double consecutive hyphens into
> endashes or emdashes when the page is rendered to visitors. This is
> completely unacceptable because

it's a broken behaviour.

> Please do not abuse unicode.

ಠ_ಠ


Karl Schmidt

unread,
Jan 10, 2011, 5:32:02 PM1/10/11
to kul...@googlegroups.com
On 01/10/2011 11:01 AM, Frank Wiles wrote:
> On Sun, Jan 9, 2011 at 8:00 PM, Karl Schmidt<ka...@xtronics.com> wrote:
>>
>> Years ago I looked into Sunflower and they had a very high charge to use a
>> static ( $140/mo?).
>
> I've got a static and it's only $15/month, granted on that's on my
> personal account and I believe one comes included with the business
> plans.
>


What kind of connection do they use - would I just configure Ethernet or have to mess with PPPoE?


--------------------------------------------------------------------------------
Karl Schmidt EMail Ka...@xtronics.com
Transtronics, Inc. WEB http://xtronics.com
3209 West 9th Street Ph (785) 841-3089
Lawrence, KS 66049 FAX (785) 841-0434

The main plank in the National Socialist program is to abolish the liberalistic concept of the
individual... Adolf Hitler

--------------------------------------------------------------------------------

Karl Schmidt

unread,
Jan 10, 2011, 6:30:47 PM1/10/11
to kul...@googlegroups.com
On 01/10/2011 04:01 PM, Kendric Beachey wrote:
> I'm a uverse "internet and TV" user. The internet side has been
> fine...the router is actually not bad, has plenty of controls, but I did
> run into trouble when I tried to do fancy stuff like forwarding
> different ports to different machines. I'm no longer trying to pass any
> ports through, just browsing/emailing/etc, and it all works OK.

I have already dug into that - it appears their Router (no choices) that uses (abuses?) ARP to limit
each Ethernet MAC address to just one IP.

The workaround would be using vetd - Virtual Ethernet Device - I have notes about it (by someone
else) stashed here.

http://wiki.xtronics.com/index.php/U-verse_notes

Trying to find out what my interface to sunflower would be with a static - would I still have to use
PPPoE?

--------------------------------------------------------------------------------
Karl Schmidt EMail Ka...@xtronics.com
Transtronics, Inc. WEB http://xtronics.com
3209 West 9th Street Ph (785) 841-3089
Lawrence, KS 66049 FAX (785) 841-0434

The government can not provide rights; it can only restrict them. kps

--------------------------------------------------------------------------------

Paul Espinosa

unread,
Jan 10, 2011, 7:52:40 PM1/10/11
to kul...@googlegroups.com
On Mon, Jan 10, 2011 at 5:30 PM, Karl Schmidt <ka...@xtronics.com> wrote:
>
> Trying to find out what my interface to sunflower would be with a static -
> would I still have to use PPPoE?
>

No.

Reply all
Reply to author
Forward
0 new messages