I'm very sorry for asking again. After reading several documents (like
File Format,
Official META Commands and
Library Header Specification, thank you Mike for explicitly pointing to the
Specifications Main Page) over and over again, and also after reading the corresponding part of MPDCenter-Source (where I found "IsValidHeaderMetaCommand" which allows at most "Name:, Author:, !KEYWORDS, !CATEGORY, !LICENSE, !LDRAW_ORG, !HISTORY, CMDLINE, BFC, !HELP"; thank again to Mike for providing), I still think that
(2020-04-13, 7:53)Stefan Frenz Wrote: Code:
0 FILE 4565 - main.ldr
0 !LEOCAD MODEL BACKGROUND GRADIENT 0 0 0.74902 1 1 1
0 main
0 Name: 4565 - main.ldr
0 Author: Robert Paciorek [bercik]
0 !LICENSE Redistributable under CCAL version 2.0 : see CAreadme.txt
could be invalid at the "0 !LEOCAD" Meta line in the header, especially because it is before the description "0 main".
So there are some options how LDInspector handles something like "0 !LEOCAD":
- Treat them generally as valid / ignore them, regardless of their position. Then I don't understand the docs, but it would be the easiest option to implement.
- Treat them as invalid, but keep their position even if file is saved lateron. This would make LDInspector handling such lines equal to unresolvable references or mirrored parts (line is wrong, but you are the boss). This seems the neatest option to me, although it is the complicated one.
- Treat them as invalid if position is before Author and always write them back after the header if file is saved. Diff to opt2: do not try to keep those meta lines before any Author field (line is wrong, and it is fixed always). Maybe this is what is wanted?
- Not a real option: treat description and header as being "too" invalid. This is the current behavior of LDInspector I would like to change and I'm sure nobody wants to have, especially because there are some more "official OMR" files containing "0 !LEOCAD" before the description meta.
Did I miss something? Do you have an advice for me or a wish how LDInspector should behave?
Thanks in advance and best regards
Stefan