[File] [PATCH] Magdir/sf3 support for the Simple File Format Family of formats
Yukari Hafner
shinmera at tymoon.eu
Wed Jun 25 09:53:00 UTC 2025
This patch adds magic/Magdir/sf3, which recognises the files as
specified for the Simple File Format Family (SF3). The magic entries
also parse out some of the files' fields for nicer output.
The SF3 specification can be found here:
https://shirakumo.org/docs/sf3/specification
Along with sample files for testing here:
https://shirakumo.org/projects/sf3/tree/master/samples/
One thing to note: file warns on file extensions with dots in them. For
SF3 the canonical file extension has an extra prefix for each contained
file type, such as: au.sf3, img.sf3, etc. I've set the file extension to
just "sf3" for all of them now, but if in this case it would be better
if the warning is ignored and the dotted extensions should be used
instead, please let me know and I'll submit an updated patch.
Similarly, if there's cleaner ways to parse out some of the data
(particularly the indirect reads as required for the model file
confounded me for a while) please let me know.
Sincerely, Yukari Hafner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-support-for-Simple-File-Format-Family-SF3-file-t.patch
Type: text/x-patch
Size: 3385 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20250625/274989f6/attachment.bin>
More information about the File
mailing list