STIL Length Restriction?
Brought to you by:
pfusik
I had an issue today with an STIl entry, because (as it appears) the path or file name was too long
Works:
/Groups/Anschuetz_Eric_and_Weisgerber_John_and_Anschuetz_Robert/Sailing_Sailing.sap
COMMENT: Traditional song from the Atari 8bit game “Piracy II” by Anschuetz/Weisgerber/Anschuetz
Doesn't Work:
/Groups/Anschuetz_Eric_and_Weisgerber_John_and_Anschuetz_Robert/Sailing_Sailing_Over_the_Bounding_Main.sap
COMMENT: Traditional song from the Atari 8bit game “Piracy II” by Anschuetz/Weisgerber/Anschuetz
The 2nd version didn't show up in WASAP. Not sure where this issue is from or if there is a yet undocumented limitation.
astil.c limits the number of characters per line to 100. I'm pretty sure the official spec (https://www.hvsc.de/download/C64Music/DOCUMENTS/STIL.faq) posed this limit (probably even stricter, at 80 or 90 characters), but I can't find it now for the filename lines (nor all lines).
I'm against lifting it. By using paths this long, we can hit the 256 path limit on Windows.
How about "Anschuetz_E_and_Weisgerber_J_and_Anschuetz_R" ?
I only asked, because the STIL spec actually does not state anything about the path length explicitly. Only the tags ( "COMMENT: ") which are all 9 characters and the values (which are at most 90 characters) are mentioned. Effectively, the HVSC STIL uses 78 characters per line.
I also didn't mean to change the limit, but add instead a check on my side, if there is a defined limit.
I've added the details to https://asma.scene.pl/wiki/StilVsExtraSapTags
I have to check my resolution for Coop-names, if it requires full names so it can map the individual artists for validation. Anyway paths are short enough for now.
Last edit: Peter Dell 3 days ago
Check added with https://github.com/asma-atari-org/asma.atari.org/commit/7a65eee0e617c576ffbd0a276207ddd2fa4eb670