• addfiles.js FILES.BBS description parsing

    From Craig Hendricks@1:103/705 to GitLab issue in main/sbbs on Sun Mar 5 08:52:26 2023
    open https://gitlab.synchro.net/main/sbbs/-/issues/530

    Consider the following entry in a FILES.BBS file:`ZR1-1990.GIF 225,810 06-01-92 640x480 Shiny Red Vette On The Beach`Because addfiles.js considers the first alphabetic character after the filename to be the start of the description, the resulting description that gets imported is "x480 Shiny Red Vette On The Beach", trimming the leading "640" from the 640x480 image dimension spec in the intended description.Suggestion: instead of the first alphabetic character, how about the first alphabetic character immediately following a whitespace? Result of above would become "Shiny Red Vette On The Beach", omitting the "640x480" portion altogether.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sun Mar 5 14:03:54 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/530#note_3347

    Do all the files in the problem list have the dimensions starting the file descriptions like that? If yes, then I think you can use the (new) desc-off optional argument to specify the character offset to the beginning of the useful part of the descriptions (e.g. 40 or 41 based on the example you gave). Leading and trailing white-space is automatically removed from the description.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Craig Hendricks@1:103/705 to GitLab note in main/sbbs on Sun Mar 5 19:36:08 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/530#note_3348

    Yes, all the files in the list are listed that way, starting with the dimensions. It's from the "So Much Screenware" and "So Much Shareware" CD-ROMs.I used the updated addfiles.js with the new offset argument this evening and updated all the descriptions. Worked like a charm. Thanks Rob!
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sun Mar 5 21:30:40 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/530#note_3349

    Cool, good to know!Another idea was an option to skip n-words before starting the imported description. "640x480" could be considered one of those words. I'll leave that to a time when someone actually needs it.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Sun Mar 5 21:30:40 2023
    close https://gitlab.synchro.net/main/sbbs/-/issues/530
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)