Welcome! Log In Create A New Profile

Advanced
Line type 1 and 0 FILE filename/part name upper/lowercase specification
avatarAugust 29, 2014 06:07AM
Hi (again) all, people.

I'm still working on a simple Java renderer for LDraw models, and now I'm a little confused about part/filename/subfile/"0 FILE" MPD extension/etc. for case sensitivity.

- In "File Format 1.0.2" there are no statements about case-sensitivity for file names or line type "1". Only in "Direct color" ("hex values must be uppercase") and "File Type" (case insensitive).

- In "File Format Restrictions for the Official Library" under "LDraw Files/File Name" it states "While both upper and lower case letters are permitted in filenames, filenames are case-insensitive. Currently, all official parts are issued with upper-case only names." But in "complete.zip" official library all part/subpart/primitive names are lower-case!

- Zip files are case sensitive (and so are developer libraries to access Zip files), and when extract files in a case-sensitive file system use original-case filenames. Search file names in ZIP file is case sensitive, so it is important to know how a part/subpart/primitive file is named in official library: 3070b.DAT, 3070B.dat or 3070B.DAT are different.

- Looking at "MPD Language Extension", filename case isn't specified. But in a forum message (here) it is clearly stated that "And MPD file lookup probably shouldn't be case-sensitive, because no other filename lookups in LDraw files are case-sensitive".

So, my questions:
- Can I assume that in MPD-type file all internal references to sub-file can be case insensitive?
- Can I assume that part/subpart/primitives file names in Official library are all lowercase?
- LDR-type file with external reference to sub-file needs to be case-sensitive, because now almost all filesystem are case-sensitive. So, can I consider external referenze to sub-file are case-sensitive?

Thank you for your great work on LDraw libraries!

Mario
PS: when my Java viewer is ready I'll share it with you.
SubjectAuthorViewsPosted
Line type 1 and 0 FILE filename/part name upper/lowercase specification Mario Pascucci163August 29, 2014 06:07AM
Re: Line type 1 and 0 FILE filename/part name upper/lowercase specification Roland Melkert67August 29, 2014 09:12AM
Re: Line type 1 and 0 FILE filename/part name upper/lowercase specification Travis Cobbs60August 29, 2014 10:12AM
Re: Line type 1 and 0 FILE filename/part name upper/lowercase specification Roland Melkert81August 29, 2014 11:19AM
Re: Line type 1 and 0 FILE filename/part name upper/lowercase specification Mario Pascucci94September 01, 2014 07:48AM
Re: Line type 1 and 0 FILE filename/part name upper/lowercase specification Chris Dee83August 29, 2014 09:54AM
Re: Line type 1 and 0 FILE filename/part name upper/lowercase specification Mario Pascucci85August 31, 2014 01:28AM
Re: Line type 1 and 0 FILE filename/part name upper/lowercase specification Steffen64August 31, 2014 09:08AM
Re: Line type 1 and 0 FILE filename/part name upper/lowercase specification Chris Dee49August 31, 2014 01:55PM
Re: Line type 1 and 0 FILE filename/part name upper/lowercase specification Mario Pascucci84September 01, 2014 02:51AM



Sorry, only registered users may post in this forum.

Click here to login