Filenames


Filenames
#1
Hi folks,

The official specification for texture mapping says:

Quote:Filenames that themselves contain double quotes must use \ as an escape character immediately prior to the double quote. The \ character itself must be doubled up (\\) in order to be used to specify a sub-directory, but it is recommended that / be used instead in this case. (In LDraw files, \ and / are interchangeable as path separators.)

I have several questions...

Are these sentences referring to quoted filenames specifically, or all filenames? It's not very clear from the context of the document. The paragraph starts (before the bit I've quoted) by talking about quoted filepaths specifically but then changes tack to talk about appending "textures/" which is surely not specific to a quoted filepath.

It would seem to make sense that a regular non-quoted path to a texture ought to be able to use a single backslash as a separator since it seems to be common practice when referencing parts etc, and the quote that separators are "interchangeable".

Should the backslash "escape character" work with characters other than " and a second backslash or just those two?

The main spec page is even fuzzier about filenames - no mention of spaces or quoting. Is it allowed, disallowed, discouraged? All we seem to get is just:
Quote:"Special characters, such as &, #, |, and ?, should be avoided as they may also cause cross-platform issues and create problems when used in URLs."
The use of the phrase 'such as' lacks clarity: which characters should be discouraged and which are fine? It would surely help people to know. Are any characters disallowed? e.g. are quotes and spaces allowed?

Or am I missing something obvious here?

Thanks everyone!
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Filenames - by Toby Nelson - 2024-01-08, 21:02
RE: Filenames - by Orion Pobursky - 2024-01-08, 21:32
RE: Filenames - by Roland Melkert - 2024-01-08, 21:56
RE: Filenames - by Toby Nelson - 2024-01-09, 10:11
RE: Filenames - by Travis Cobbs - 2024-01-09, 17:06
RE: Filenames - by Toby Nelson - 2024-01-10, 10:58
RE: Filenames - by Toby Nelson - 2024-01-10, 11:23
RE: Filenames - by Travis Cobbs - 2024-01-12, 1:40
RE: Filenames - by Toby Nelson - 2024-01-12, 15:01
RE: Filenames - by Orion Pobursky - 2024-01-12, 16:51
RE: Filenames - by Travis Cobbs - 2024-01-10, 18:01
RE: Filenames - by Roland Melkert - 2024-01-10, 23:03
RE: Filenames - by Toby Nelson - 2024-01-11, 12:19
RE: Filenames - by Roland Melkert - 2024-01-11, 22:38
RE: Filenames - by Toby Nelson - 2024-01-14, 8:41

Forum Jump:


Users browsing this thread: 1 Guest(s)