LDInspector


Header Meta question
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":
  1. 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. Sad
  2. 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. Smile
  3. 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? Huh
  4. 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. Cool
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
Reply
« Next Oldest | Next Newest »



Messages In This Thread
LDInspector - by Stefan Frenz - 2020-02-07, 21:50
RE: LDInspector - by Stefan Frenz - 2020-02-07, 22:16
RE: LDInspector - by Stefan Frenz - 2020-02-11, 10:17
RE: LDInspector - by N. W. Perry - 2020-02-08, 5:39
RE: LDInspector - by Stefan Frenz - 2020-02-08, 8:31
RE: LDInspector - by Magnus Forsberg - 2020-02-08, 11:20
RE: LDInspector - by Stefan Frenz - 2020-02-08, 15:37
RE: LDInspector - by Magnus Forsberg - 2020-02-08, 17:34
RE: LDInspector - by Stefan Frenz - 2020-02-09, 14:23
RE: LDInspector - by Orion Pobursky - 2020-02-09, 14:43
RE: LDInspector - by Stefan Frenz - 2020-02-09, 15:58
RE: LDInspector - by Magnus Forsberg - 2020-02-09, 17:22
RE: LDInspector - by Stefan Frenz - 2020-03-09, 7:15
RE: LDInspector - by Philippe Hurbain - 2020-03-09, 8:28
RE: LDInspector - by Stefan Frenz - 2020-03-10, 22:37
RE: LDInspector - by N. W. Perry - 2020-02-08, 14:17
RE: LDInspector - by Willy Tschager - 2020-02-08, 9:41
RE: LDInspector - by Stefan Frenz - 2020-02-08, 9:49
RE: LDInspector - by Willy Tschager - 2020-02-11, 17:28
RE: LDInspector - by Stefan Frenz - 2020-02-11, 18:57
RE: LDInspector - by Willy Tschager - 2020-02-12, 7:31
RE: LDInspector - by Stefan Frenz - 2020-02-12, 7:50
RE: LDInspector - by Stefan Frenz - 2020-02-13, 9:36
RE: LDInspector - by Willy Tschager - 2020-02-13, 20:40
RE: LDInspector - by Stefan Frenz - 2020-02-14, 6:21
RE: LDInspector - by Stefan Frenz - 2020-02-14, 15:14
RE: LDInspector - by Willy Tschager - 2020-02-15, 17:26
RE: LDInspector - by Stefan Frenz - 2020-02-15, 19:27
RE: LDInspector - by Stefan Frenz - 2020-02-21, 9:41
RE: LDInspector - by Willy Tschager - 2020-02-21, 14:16
RE: LDInspector - by Stefan Frenz - 2020-02-21, 14:27
RE: LDInspector - by Willy Tschager - 2020-02-23, 9:48
RE: LDInspector - by Stefan Frenz - 2020-02-23, 11:36
RE: LDInspector - by Willy Tschager - 2020-02-25, 11:27
RE: LDInspector - by Philippe Hurbain - 2020-02-25, 15:38
RE: LDInspector - by Stefan Frenz - 2020-02-25, 15:47
RE: LDInspector - by Philippe Hurbain - 2020-02-25, 16:14
RE: LDInspector - by Philippe Hurbain - 2020-02-25, 17:20
RE: LDInspector - by Stefan Frenz - 2020-02-25, 17:30
RE: LDInspector - by Stefan Frenz - 2020-02-14, 15:15
RE: LDInspector - by N. W. Perry - 2020-02-14, 16:16
RE: LDInspector - by Stefan Frenz - 2020-02-14, 16:37
RE: LDInspector - by N. W. Perry - 2020-02-25, 17:49
RE: LDInspector - by Stefan Frenz - 2020-02-25, 17:56
RE: LDInspector - by N. W. Perry - 2020-02-25, 21:15
RE: LDInspector - by Stefan Frenz - 2020-02-25, 21:37
RE: LDInspector - by N. W. Perry - 2020-02-26, 21:07
RE: LDInspector - by Stefan Frenz - 2020-02-26, 21:19
RE: LDInspector - by N. W. Perry - 2020-02-27, 1:01
RE: LDInspector - by Stefan Frenz - 2020-02-27, 8:16
RE: LDInspector - by N. W. Perry - 2020-03-02, 17:25
RE: LDInspector - by Stefan Frenz - 2020-03-03, 6:35
RE: LDInspector - by N. W. Perry - 2020-04-04, 21:55
RE: LDInspector - by Philippe Hurbain - 2020-02-27, 8:47
RE: LDInspector - by Stefan Frenz - 2020-02-27, 9:51
RE: LDInspector - by Philippe Hurbain - 2020-02-27, 10:11
RE: LDInspector - by Stefan Frenz - 2020-02-27, 13:11
RE: LDInspector - by Orion Pobursky - 2020-02-27, 13:33
RE: LDInspector - by Stefan Frenz - 2020-02-27, 13:45
RE: LDInspector - by Stefan Frenz - 2020-02-27, 14:32
RE: LDInspector - by Philippe Hurbain - 2020-02-27, 14:50
RE: LDInspector - by Stefan Frenz - 2020-02-15, 7:00
RE: LDInspector - by Willy Tschager - 2020-02-25, 11:29
RE: LDInspector - by Stefan Frenz - 2020-02-25, 13:10
RE: LDInspector - by Orion Pobursky - 2020-02-25, 14:10
RE: LDInspector - by Stefan Frenz - 2020-02-27, 14:30
RE: LDInspector - by Orion Pobursky - 2020-02-27, 15:00
RE: LDInspector - by Stefan Frenz - 2020-02-26, 19:42
RE: LDInspector - by Stefan Frenz - 2020-02-28, 15:47
RE: LDInspector - by Willy Tschager - 2020-02-25, 11:51
RE: LDInspector - by Stefan Frenz - 2020-02-25, 13:08
RE: LDInspector - by Stefan Frenz - 2020-03-04, 16:15
RE: LDInspector - by Stefan Frenz - 2020-03-10, 22:35
RE: LDInspector - by Stefan Frenz - 2020-03-16, 7:16
RE: LDInspector - by N. W. Perry - 2020-03-19, 1:39
RE: LDInspector - by Stefan Frenz - 2020-03-19, 6:23
RE: LDInspector - by N. W. Perry - 2020-03-20, 1:19
RE: LDInspector - by Stefan Frenz - 2020-04-04, 14:05
RE: LDInspector - by N. W. Perry - 2020-04-05, 1:24
LDInspector version 0.2 - by Stefan Frenz - 2020-04-01, 9:21
RE: LDInspector version 0.2 - by Stefan Frenz - 2020-04-04, 13:40
RE: LDInspector version 0.2 - by Stefan Frenz - 2020-04-04, 13:52
RE: LDInspector version 0.2 - by Stefan Frenz - 2020-04-08, 12:37
RE: LDInspector version 0.2 - by Stefan Frenz - 2020-04-12, 13:01
RE: LDInspector version 0.2 - by Stefan Frenz - 2020-04-12, 14:41
RE: LDInspector version 0.2 - by Stefan Frenz - 2020-04-13, 19:49
Header Meta question - by Stefan Frenz - 2020-04-30, 12:34
RE: Header Meta question - by Stefan Frenz - 2020-05-02, 9:53
RE: Header Meta question - by Orion Pobursky - 2020-05-02, 12:42
RE: Header Meta question - by Stefan Frenz - 2020-05-02, 13:13
RE: Header Meta question - by Leonardo Zide - 2020-05-03, 16:27
RE: LDInspector version 0.2 - by Stefan Frenz - 2020-04-12, 13:10
current version update - by Stefan Frenz - 2020-04-26, 14:20
RE: LDInspector version 0.2 - by Stefan Frenz - 2020-05-01, 15:54
RE: LDInspector version 0.2 - by Stefan Frenz - 2020-05-01, 18:59
RE: LDInspector - by Michael Heidemann - 2020-04-12, 20:20
RE: LDInspector - by Stefan Frenz - 2020-04-13, 6:12
LDInspector version 0.3 - by Stefan Frenz - 2020-05-06, 16:54
RE: LDInspector - by N. W. Perry - 2020-05-06, 20:31
RE: LDInspector - by Stefan Frenz - 2020-05-07, 5:10
RE: LDInspector - by N. W. Perry - 2020-05-07, 15:27
RE: LDInspector - by Stefan Frenz - 2020-08-17, 9:56
RE: LDInspector - by Lasse Deleuran - 2020-08-17, 12:05
RE: LDInspector - by Stefan Frenz - 2020-08-17, 12:34
RE: LDInspector - by Orion Pobursky - 2020-08-17, 14:03
RE: LDInspector - by Stefan Frenz - 2020-08-17, 14:52
RE: LDInspector - by Orion Pobursky - 2020-08-17, 14:57
RE: LDInspector - by Stefan Frenz - 2020-08-17, 15:43
RE: LDInspector - by Stefan Frenz - 2020-08-18, 10:27
RE: LDInspector - by Stefan Frenz - 2020-08-29, 21:43
RE: LDInspector - by rajubhaiya - 2020-09-24, 20:00
RE: LDInspector - by Stefan Frenz - 2020-09-25, 6:49
LDInspector version 0.4 - by Stefan Frenz - 2020-10-02, 17:41
RE: LDInspector - by N. W. Perry - 2021-04-24, 4:47
RE: LDInspector - by Stefan Frenz - 2021-04-24, 9:27
RE: LDInspector - by N. W. Perry - 2021-04-24, 13:33
RE: LDInspector - by Stefan Frenz - 2021-04-24, 14:00
RE: LDInspector - by Orion Pobursky - 2021-04-24, 14:32
RE: LDInspector - by Stefan Frenz - 2021-04-24, 15:07
RE: LDInspector - by N. W. Perry - 2021-04-24, 14:43
RE: LDInspector - by Stefan Frenz - 2021-04-24, 15:09
RE: LDInspector - by N. W. Perry - 2021-04-24, 23:06
RE: LDInspector - by Stefan Frenz - 2021-04-25, 7:50
RE: LDInspector - by N. W. Perry - 2021-04-25, 12:53
RE: LDInspector - by Stefan Frenz - 2021-04-25, 13:33
LDInspector version 0.5 - by Stefan Frenz - 2021-09-24, 8:31
LDInspector version 0.6 - by Stefan Frenz - 2022-01-19, 13:47
LDInspector update - by Stefan Frenz - 2022-03-17, 8:51
RE: LDInspector update - by N. W. Perry - 2022-03-17, 13:41
RE: LDInspector update - by Stefan Frenz - 2022-03-17, 13:45
RE: LDInspector update - by N. W. Perry - 2022-03-18, 3:30
LDInspector mini-update - by Stefan Frenz - 2022-03-18, 10:16
RE: LDInspector version 0.7 - by Stefan Frenz - 2022-09-28, 12:05
RE: LDInspector - by N. W. Perry - 2023-11-20, 1:17
RE: LDInspector - by Stefan Frenz - 2023-11-20, 7:53
RE: LDInspector - by Orion Pobursky - 2023-11-20, 13:42
RE: LDInspector - by Orion Pobursky - 2023-11-22, 15:14
RE: LDInspector - by Stefan Frenz - 2023-12-17, 11:24
RE: LDInspector - by N. W. Perry - 2023-11-20, 19:57
RE: LDInspector - by Orion Pobursky - 2023-11-20, 20:15
RE: LDInspector - by Roland Melkert - 2023-11-20, 22:54
RE: LDInspector - by N. W. Perry - 2023-11-21, 1:56
RE: LDInspector - by Stefan Frenz - 2023-11-21, 8:06
RE: LDInspector - by Orion Pobursky - 2023-11-21, 13:54
RE: LDInspector - by Stefan Frenz - 2023-11-21, 14:35

Forum Jump:


Users browsing this thread: 3 Guest(s)