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 dont understand when the users
complain. They tell the users that they are wrong. Well, Im 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 Id add a clarification to the above. A quick look at
LDViews 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 dont support this,
and Im not saying that those programs are broken. What I am saying
it that its not appropriate to say in the spec that spaces arent
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 dont support them.
|
Ok, the whitespace debate has gone on long enough. Its been years
now! Someone in the LSC needs to step up and really define whats 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. Its
not what Id have implemented, but itll 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 cant remember if it truncates the name at
the last non-whitespace character, or if it includes trailing
whitespace. Im pretty sure quotes are included in the filename by
MLCad, so you cant use them to enclose a filename with leading (or
trailing) whitespace. I dont 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:
55 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|