To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 3686
3685  |  3687
Subject: 
Re: Ldlite for OpenGL and Linux (and uppercase filenames)
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 19 Jan 2000 16:51:09 GMT
Viewed: 
760 times
  
In lugnet.cad.dev, Jacob Sparre Andersen writes:
Don Heyse:

In lugnet.cad.dev, Fredrik Glöckner writes:
Rui Martins <Rui.Martins@link.pt> writes:

Are you sure that was the problem, because Ledit runs on DOS, which
doesn't care on filename case, it's case-insensitive, so it should always
work in DOS.

This is a special LEdit feature, not related to DOS at all.  If the
STUD.DAT filename is uppercase, it is always displayed like a full
stud in LEdit, even if the user chooses to have "line for stud" to
save rendering time.

Fredrik

Let me restate MY preference (and since I'm a newcomer here, feel free to
stomp all over me :^)

My preference is all lower-case (mostly from an aesthetic
point of view), which generally is more readable than upper-case.

If you go way back to the beginning of this thread you'll see that my
PERSONAL preference is also lower case, because it's easier to type, easier
to read, etc.  But I seem to recall a debate a while ago about the rights
to distribute modified versions of the original parts archives.  I was under
the impression that they must be distributed unaltered, which would leave the
PARTS and P dat files in uppercase.  Whenever I port something, and I have
done this before, I try to make the ported program fit the original
environment as much as possible even when it disagrees with my personal
preferences.


1.  DAT files in the P and PARTS directories should be stored in uppercase
    since they come out of the archives that way.

2.  The P, PARTS, MODELS, BITMAPS, VEC directories should be uppercase since
    they seem to come out of the archives that way as well.

I don't think it would be difficult to switch this to
lower-case (if I can convince you guys to agree with me on
the benefits of lower-case).


Not difficult, agreed, but is it legal?  Again my personal preference is
lowercase, but I'm not convinced I can distribute a modified version of
the parts archives which I believe are in uppercase.  Has anyone unarjed
(or whatever program is used) the archives in LINUX to see if they actually
come out in uppercase?

3.  Other DAT files can be stored in whatever case you
    like.  For example: MyModel.dat, MYMODEL.DAT,
    mymodel.dat.  Just don't put it in the P or PARTS
    directories in anything but UPPERCASE.  And don't
    expect to see it if you include it in MyScene.dat with
    different capitalization.

Bad idea.

People working on case-insensitive file systems will happen
to write the file name with one capitalisation, and store it
on the file system with another one. It will work for them,
but it will not work for people working on case-sensitive
file systems.

People working on case-sensitive file systems will happen to
make two files with the same name, except for the
capitalisation. It will work fine for them, but when the
model is copied to a case-insensitive file system one of the
two files will disappear.

Both of these two problems can be avoided by sticking to
either upper or lower case.

I don't see how you can FORCE people to use lower case.  You can SUGGEST
it and point out the ramifications of using mixed case.  You can even go so
far as to RECOMMEND it as a really good idea.  But people working in case-
insensitive filesystems will always make mistakes.  Your best bet is to
make a recommended standard for personal DAT files, put it in a FAQ, and
point it out in LUGNET when people are inconsistent.


4.  You can include bricks and primitives from the P and PARTS directories
    in whatever case you like and they will be UPPERCASED by the programs
    before opening the files.  Any special behavior determined by the case
    can be done before the filename is UPPERCASED.  I'm not quite sure if
    we have some more stringent standards for what goes on inside the bricks
    and primitives files in the PARTS and P directories.  It sounds like we
    do based on the special LEDIT behavior mentioned above.

Not exactly a bad idea. Here is my reformulation:

  No matter how file and directory names are written in
  LDraw files, they shall be converted to lower-case
  in comunication with the operating system and other
  programs.


Once again, I don't think you can force people to store their own personal
files in any particular way.  You can only do that with standard files like
the ones in the P and PARTS directories.  Otherwise we might as well force
people to use Windows to view their DAT files, and I can go back to playing
with the bricks instead of porting Ldlite. ;^)

5.  Automatic UPPERCASING inside the program will ONLY happen for DAT files
    in the P and PARTS directories and their subdirectories.

Disagree.

6.  I'm still not thrilled with this because it makes the DAT file caching
    scheme in Ldlite trickier, but I can't think of a better solution...

If all files are stored with lower-case names, the caching
in LDLite doesn't have to be (much more) complicated.

Play well,

Jacob

------------------------------------------------------------
--  E-mail:               sparre@cats.nbi.dk              --
--  Web...:   <URL: http://hugin.ldraw.org/LEGO/Tog/ >    --
------------------------------------------------------------



Message has 3 Replies:
  CASE style in filenames (was Re: Ldlite for OpenGL and Linux (and uppercase filenames)
 
I have given up on my CASE-SENSITIVE choice, and I now have a Summary of all this talk, with some taughs in the middle. Apart from visual aspect, all files should (not MUST) be UPPERCASE. for compatibility issues, because: - MSDOS keeps the files in (...) (25 years ago, 19-Jan-00, to lugnet.cad.dev)
  Re: Ldlite for OpenGL and Linux (and uppercase filenames)
 
Don Heyse: (...) Sorry, I had forgotten that. (...) I am sure we can get the Jessimans to accept a repackaging of that kind (if we agree on it). (...) A very sensible strategy. (...) We would have to have it approved by the Jessimans. (...) I can't (...) (25 years ago, 19-Jan-00, to lugnet.cad.dev)
  Re: Ldlite for OpenGL and Linux (and uppercase filenames)
 
I'm not quite sure where I left off in this discussion, so I suppose this is as good a place as any for an update. I just hooked up ldglite to Netscape in linux by adding the MIME type "application/x-ldraw" and setting the app to (...) (25 years ago, 20-Jan-00, to lugnet.cad.dev)

Message is in Reply To:
  Re: Ldlite for OpenGL and Linux (and uppercase filenames)
 
Don Heyse: (...) My preference is all lower-case (mostly from an aesthetic point of view), which generally is more readable than upper-case. (...) I don't think it would be difficult to switch this to lower-case (if I can convince you guys to agree (...) (25 years ago, 19-Jan-00, to lugnet.cad.dev)

40 Messages in This Thread:















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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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