To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 14740
14739  |  14741
Subject: 
Re: LDraw File Format Spec 1.0 DRAFT - Call for Public Comments
Newsgroups: 
lugnet.cad
Date: 
Thu, 23 Aug 2007 14:11:39 GMT
Viewed: 
5317 times
  
In lugnet.cad, Travis Cobbs wrote:
  
  
   While at it, please disallow spaces in filenames in line type 1.

This is why so many novice computer users think that computers are hard to use. Developers make arbitrary (and totally unnecessary) restrictions like this, and then don’t understand when the users complain. They tell the users that they are wrong. Well, I’m here to tell you, spaces in filenames are a fact of life, and not supporting them in your software is bad. Disallowing them in a general file spec like this is, in my opinion, totally unconscionable.

I thought I’d add a clarification to the above. A quick look at LDView’s Change History file will show that I only added support for spaces in submodel filenames in version 3.0. Furthermore, I listed it as an addition, not a bug fix, and LDView even spits out a warning when it finds such filenames.

I perfectly well understand that many programs don’t support this, and I’m not saying that those programs are broken. What I am saying it that it’s not appropriate to say in the spec that spaces aren’t allowed in filenames. And furthermore, I think that supporting spaces in filenames is a feature that programs should have going forward (which is what this spec is all about). Users should be able to use them and they should work. The main reason for having them be discouraged (as they are in the spec) is because many programs don’t support them.

Ok, the whitespace debate has gone on long enough. It’s been years now! Someone in the LSC needs to step up and really define what’s an acceptable filename, whitespace and all. Personally I think since MLCad is established, popular, and pretty much frozen the specification should probably just codify whatever it accepts. It’s not what I’d have implemented, but it’ll do.

I believe MLCad uses everything from the the first non-whitepace character to the end of the line, where whitespace characters are space, tab, CR, and LF. I can’t remember if it truncates the name at the last non-whitespace character, or if it includes trailing whitespace. I’m pretty sure quotes are included in the filename by MLCad, so you can’t use them to enclose a filename with leading (or trailing) whitespace. I don’t know if MLCad has different (more relaxed) rules for the top level main model filename. I do know that some other programs do this, because either the command line or the file browser is more generous with the filenames.

Perhaps someone in the LSC could run some tests and get it down exactly so we could finally end this debate. Or would that force the specs to be punted off to the next LSC? ;-)

Have fun,

Don



Message is in Reply To:
  Re: LDraw File Format Spec 1.0 DRAFT - Call for Public Comments
 
(...) I thought I'd add a clarification to the above. A quick look at LDView's (URL) Change History> file will show that I only added support for spaces in submodel filenames in version 3.0. Furthermore, I listed it as an addition, not a bug fix, (...) (17 years ago, 22-Aug-07, to lugnet.cad, FTX)

55 Messages in This Thread:


















Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR