Pages: [1]   Go Down

Author Topic: Underscores or Hyphens  (Read 2777 times)

jmwscot

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 77
    • http://www.johnwoodphotowork.com
Underscores or Hyphens
« on: July 31, 2009, 08:56:28 am »

Could someone please clarify whether to use either a hyphen or an underscore as a separator in an image file. If I 'Save for Web' in Photoshop it inserts hyphens but in Lightroom files for uploading to web have underscores inserted. I have also read in many posts that Google ignores underscores and treats the name as all one word. However I notice that most professional images use underscores. Is there a definitive answer?

John
Logged

DarkPenguin

  • Guest
Underscores or Hyphens
« Reply #1 on: August 01, 2009, 12:53:34 pm »

Quote from: jmwscot
Is there a definitive answer?

No, I don't think there is.
Logged

Panopeeper

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1805
Underscores or Hyphens
« Reply #2 on: August 01, 2009, 09:48:21 pm »

Quote from: jmwscot
Could someone please clarify whether to use either a hyphen or an underscore as a separator in an image file
There are functional differences betwen an underscore and a hyphen in certain programs. For example some text formatting programs treate hyphen as a suitable location for word separation, but not underscore. The relevance of that is tiny, namely how the URL appears in text format.

The only really important aspect is, that space should be anywhere in the URL, for that often causes erroneous reconstruction (many programs end the URL at the first space, when you click on the link you use only part of the URL).
Logged
Gabor

frugal

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 73
    • http://www.andrewdaceyphotography.com/
Underscores or Hyphens
« Reply #3 on: August 02, 2009, 12:33:33 pm »

Personally, I find underscore as easier to scan over as a space so I use it for spaces and hyphens for situations that I want a hyphen. Hyphen also has certain other meanings where underscore typically doesn't. For instance, I use ISO format dates (I work in IT so I got in the habit, I can elaborate on the advantages of this format if necessary), which is yyyy-mm-dd, if I used hyphens for separating other elements this would get confusing.

Using a mix gives you more versatility. If I wanted to add more elements to the filename (such as a sequence number), I'd likely separate them with underscores, this helps my eye scan over the elements very easily. Say something like 2009-08-02_032_hydrostone.nef, right away I can see the date, sequence number and descriptive text.
Logged

milt

  • Jr. Member
  • **
  • Offline Offline
  • Posts: 70
    • Striking & Distinctive Custom Photographic Prints
Underscores or Hyphens
« Reply #4 on: August 07, 2009, 07:54:58 pm »

I second the comment about Google.  Google treats only hyphen as a word separator, and it also likes long descriptive file and directory names.  Any professionals using underscores in their web file names are missing a bet.

--Milt--
Logged
Los Gatos, California | http://miltonbarber.com

peteh

  • Full Member
  • ***
  • Offline Offline
  • Posts: 200
    • http://
Underscores or Hyphens
« Reply #5 on: August 07, 2009, 10:10:37 pm »

I use underscores in FILE names .I don't think the web likes them.
Logged
Pages: [1]   Go Up