How do I keep TextEdit from "correcting" hyphens?

I'm trying to type an address in TextEdit. It contains a 5+4 digit ZIP code, e.g. 12345-6789. The character between the first five digits and the last four digits is supposed to be a hyphen, and that's what I typed, but TextEdit replaces it with an en-dash! I cannot figure out how to prevent it from doing this! Does anybody know how I can persuade this idiot program to just accept the characters I type instead of making an incorrect assumption about what I mean???

This is the kind of frustrating idiocy I've come to expect from Microsoft Word. Now Apple's own TextEdit is doing the same thing? This is infuriating.

MacBook Pro 17, Mac OS X (10.4.10), 4 GB RAM, 160 GB HD

Posted on Sep 23, 2007 7:04 PM

Reply
20 replies

Oct 1, 2007 8:37 AM in response to Roger Wilmut1

I'm investigating that, although it's hard to imagine any third-party program only affecting a few applications.

By the way, I'm also finding this behavior in Address Book. All my phone numbers are now being displayed with en dashes, and hyphens typed between numbers in the Notes field behave just as they do in Text Edit and Pages. If anyone knows what these programs have in common, that might be helpful. They must be using the same text engine, but if I don't know what it's called it makes it hard to look for a plist that might be associated with it.

Oct 4, 2007 6:27 PM in response to David Livesay

David Livesay wrote:
I can't figure out how they get that typography menu, can you?


Open up TextEdit, and then open the font panel (command-"t"). Look at the third menu over from the left on the bottom. It has a little gear icon. Choose "Typography..." from that menu. You can go thru the fonts in the font panel then and see what fonts have what features.

But I can't get all the features that page shows for Helvetica. I only get a choice for common ligatures or no. Some of the other fonts I have have more choices, though. Many of the Adobe fonts have stuff like slashed zeros, swash characters, old style numerals, etc., just not Helvetica....

charlie

Oct 4, 2007 6:36 PM in response to David Livesay

Sorry for disappearing there for a while. I've just had a few really busy days. I do appreciate all your suggestions, especially the ones about fonts, which are the root of this problem. I haven't completely sorted things out, but there's no general pattern emerging. You pretty much have to take if one font at a time.

The first one I looked at was Helvetica. Turns out I had two copies of this font:
* /Library/Fonts/Helvetica (an FFIL font suitcase, about 7 years old)
* /System/Library/Fonts/Helvetica.dfont (a Datafork TrueType font, about 7 months old)

If I selected Helvetica in FontBook and selected "Show Font File" from the menu in the upper left of the window, the file it highlighted in the Finder was Helvetica.dfont. The file that ultimately turned out to be the source of the problem was /Library/Fonts/Helvetica.

Next I looked at HelveticaCY. I only had one copy of this font:
* /Library/Fonts/HelveticaCY.dfont (a Datafork TrueType font, about 10 months old)

So what have we learned?
* The problem font is always an old FFIL font suitcase. Unless it's a relatively new Datafork TrueType font.
* It will always turn out to be a duplicate. Unless it isn't.
* If you do have a duplicate font, FontBook will helpfully mislead you about which one is active.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do I keep TextEdit from "correcting" hyphens?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.