[File] [PATCH] Magdir/riff CorelSHOW presentation *.shw + background .*shb

Jörg Jenderek joerg.jen.der.ek at gmx.net
Thu Jul 20 23:29:17 UTC 2023


Hello,
some days ago i handled some RIFF based samples from Corel. When i
run file command version 5.44 on such samples i get a output like:

40WINNER.SHW: RIFF (little-endian) data
frog.shw:     RIFF (little-endian) data
multi.shw:    RIFF (little-endian) data
qtour.shw:    RIFF (little-endian) data
test-shb.shb: RIFF (little-endian) data
test-shr.shr: RIFF (little-endian) data

All samples are at least general described by Magdir/riff with line
 0	string		RIFF		RIFF (little-endian) data
but with --extension option only ??? is displayed. Furthermore with
option -i for samples only generic application/octet-stream is
shown.

For comparison reason i also run the file format identification
utility DROID ( See https://sourceforge.net/projects/droid/).
The SHW samples are described as "Corel Presentation" by PUID
fmt/877	based on extension (See appended droid-shw.csv.gz).

For comparison reason i run the file format identification utility
TrID ( See https://mark0.net/soft-trid-e.html). This identifies also
all examples with low priority as "Generic RIFF container" by
riff.trid.xml. The SHW samples are described as "CorelSHOW
presentation" with additional (v4) by shw-corel.trid.xml or with
additional (v5) by shw-corel-5.trid.xml. The SHB sample is described
as "CorelSHOW Background (v5)" by shb-corel.trid.xml.
The SHR sample is described as "CorelSHOW player data (v5)" by
shr-corel.trid.xml (See appended trid-v-shw.txt.gz).
This tool list the used file name extension and with -v option the
related URL pointing to used file format information. That
informations are expressed by comment lines inside Magdir/riff like:

# URL:		http://fileformats.archiveteam.org/wiki/SHW_(Corel)
# Reference:	http://mark0.net/download/triddefs_xml.7z
#		defs/s/shw-corel.trid.xml
#		defs/s/shw-corel-5.trid.xml
#		defs/s/shb-corel.trid.xml
#		defs/s/shr-corel.trid.xml

On the mentioned site you also find some samples to download.
According to that documentation by second tag marker these corel
files are identified. So i add lines like:
 >8	string		shw4	\b, CorelSHOW presentation, version 4
 !:mime	application/x-corel-shw
 !:ext	shw
 >8	string		shw5	\b, CorelSHOW presentation, version 5
 !:mime	application/x-corel-shw
 !:ext	shw
 >8	string		shl5	\b, CorelSHOW Background, version 5
 !:mime	application/x-corel-shb
 !:ext	shb
 >8	string		shr5	\b, CorelSHOW player data, version 5
 !:mime	application/x-corel-shr
 !:ext	shr
Instead of generic application/octet-stream i also show user defined
mime type.

After applying the above mentioned modifications by patch
file-5.44-riff-shw.diff then all my inspected examples
are now described with more details. This now looks like:

40WINNER.SHW: RIFF (little-endian) data
	      , CorelSHOW presentation
	      , version 4
frog.shw:     RIFF (little-endian) data
	      , CorelSHOW presentation
	      , version 4
multi.shw:    RIFF (little-endian) data
	      , CorelSHOW presentation
	      , version 4
qtour.shw:    RIFF (little-endian) data
	      , CorelSHOW presentation
	      , version 5
test-shb.shb: RIFF (little-endian) data
	      , CorelSHOW Background
	      , version 5
test-shr.shr: RIFF (little-endian) data
	      , CorelSHOW player data
	      , version 5

I hope my diff file can be applied in future version of file
utility.

With best wishes,
Jörg Jenderek
--
Jörg Jenderek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: droid-shw.csv.gz
Type: application/x-gzip
Size: 420 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20230721/0f861431/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trid-v-shw.txt.gz
Type: application/x-gzip
Size: 684 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20230721/0f861431/attachment-0001.bin>
-------------- next part --------------
--- file-5.44/magic/Magdir/riff.old	2022-08-16 15:01:06.000000000 +0200
+++ file-5.44/magic/Magdir/riff	2023-07-21 00:58:30.774479200 +0200
@@ -332,6 +332,35 @@
 # MORE TESTS NEEDED HERE!
 #>>>0	use		corel-des
 #>>>0	use		corel-draw
+# From:		Joerg Jenderek
+# URL:		http://fileformats.archiveteam.org/wiki/SHW_(Corel)
+# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/s/shw-corel.trid.xml
+# Note:		called "CorelSHOW presentation (v4)" by TrID
+#		and "Corel Presentation" by DROID via PUID fmt/877
+>8	string		shw4		\b, CorelSHOW presentation, version 4
+#!:mime	application/octet-stream
+!:mime	application/x-corel-shw
+!:ext	shw
+# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/s/shw-corel-5.trid.xml
+# Note:		called "CorelSHOW presentation (v5)" by TrID
+>8	string		shw5		\b, CorelSHOW presentation, version 5
+#!:mime	application/octet-stream
+!:mime	application/x-corel-shw
+!:ext	shw
+# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/s/shb-corel.trid.xml
+# Note:		called "CorelSHOW Background (v5)" by TrID
+>8	string		shl5		\b, CorelSHOW Background, version 5
+#!:mime	application/octet-stream
+!:mime	application/x-corel-shb
+# GRR: no example
+!:ext	shb
+# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/s/shr-corel.trid.xml
+# Note:		called "CorelSHOW player data (v5)" by TrID
+>8	string		shr5		\b, CorelSHOW player data, version 5
+#!:mime	application/octet-stream
+!:mime	application/x-corel-shr
+# GRR: no example
+!:ext	shr
 >8	string		NUNDROOT	\b, Steinberg CuBase
 # From:		Joerg Jenderek
 # URL:		http://fileformats.archiveteam.org/wiki/MIDI_Instrument_Definition_File
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-5.44-riff-shw.diff.sig
Type: application/octet-stream
Size: 740 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20230721/0f861431/attachment.obj>


More information about the File mailing list