[File] [PATCH] Magdir/pascal unrecognised Turbo Pascal Tour data *.CBT+ Dan Bricklin's Demo *.DBD
Jörg Jenderek
joerg.jen.der.ek at gmx.net
Tue Jul 26 01:18:22 UTC 2022
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
some days ago i send patches for DOS COM executables. One Syslinux
COMboot variant use file name extension CBT instead of COM.
For control reason i look for other files with CBT extension on my
systems. There are 2 files TPTOUR1.CBT and TPTOUR2.CBT. These are
part of Borland Turbo Pascal 5.5 compiler suite and are used by
TOUR.EXE program for a guided introduction tour to compiler suite.
When running file command (version 5.42) on such examples and
related files i get an output like:
MOUSE.DBD: data
RUNME.DBD: data
TPTOUR1.CBT: data
TPTOUR2.CBT: data
_PPRINT.SG2: data
For comparison reason i also run the file format identification
utility DROID ( See https://sourceforge.net/projects/droid/). This
identifies all CBT examples wrong as "Comic Book Archive" by PUID
fmt/1462 based on file name extension (See appended
droid-bricklin.csv.gz)
For comparison reason i run the file format identification utility
TrID ( See https://mark0.net/soft-trid-e.html). At least all
examples are described as "Dan Bricklin's Demo demo (generic)" by
TrID definition dbd-gen.trid.xml via 4 byte starting pattern Type.
The DBD examples are also described with higher rate as "Dan
Bricklin's Demo 2 demo" by TrID definition dbd-v2.trid.xml via
following 2 byte phrase D2 (See appended trid-v-bricklin.txt.gz).
Unfortunately i found no file format specification. There exist a
page on Wikipedia about the software author Dan Bricklin and you
find the Demo II Program User Manual. That is now expressed by
comment lines like:
# URL: https://en.wikipedia.org/wiki/Dan_Bricklin
# URL: https://dl.winworldpc.com/
# Dan%20Bricklins%20Demo%20II%20Version%202%20Manual.7z
# Reference: http://mark0.net/download/triddefs_xml.7z
# defs/d/dbd-gen.trid.xml
# defs/d/dbd-v2.trid.xml
According to TrID definition i create inside Magdir/pascal lines like
:
0 string/b Type
> 4 string D2 Dan Bricklin's Demo 2 demo
!:ext dbd
> 4 string T2 Turbo Pascal TOUR data
!:mime application/x-borland-cbt
!:ext cbt
> 4 default x Dan Bricklin's Demo demo (generic)
!:ext dbd
Instead of generic mime type application/octet-stream i display an
user defined type.
After applying the above mentioned modifications by patch
file-5.42-pascal.bricklin.diff then all my Borland Turbo Pascal CBT
samples and related files are now identified. This now looks like:
MOUSE.DBD: Dan Bricklin's Demo 2 demo
RUNME.DBD: Dan Bricklin's Demo 2 demo
TPTOUR1.CBT: Turbo Pascal TOUR data
TPTOUR2.CBT: Turbo Pascal TOUR data
_PPRINT.SG2: Dan Bricklin's Demo demo (generic)
I hope my diff file can be applied in future version of file
utility.
There exist still some other file formats with CBT suffix. I will
try to handle this in a future session.
With best wishes,
Jörg Jenderek
- --
Jörg Jenderek
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
iF0EARECAB0WIQS5/qNWKD4ASGOJGL+v8rHJQhrU1gUCYt9A3gAKCRCv8rHJQhrU
1hevAJ42PRgXGGkeQidTEbJjq6PbqeTgvwCfbDas0zrR5E9bu9S3RkTHCvA7YgY=
=YQM7
-----END PGP SIGNATURE-----
-------------- next part --------------
--- file-5.42/magic/Magdir/pascal.old 2020-06-15 02:01:01.000000000 +0200
+++ file-5.42/magic/Magdir/pascal 2022-07-26 03:01:37.059657300 +0200
@@ -13,2 +13,27 @@
0 string PPU Pascal unit
>3 string x \b, version %s
+
+# From: Joerg Jenderek
+# URL: https://en.wikipedia.org/wiki/Dan_Bricklin
+0 string/b Type
+# URL: https://dl.winworldpc.com/Dan%20Bricklins%20Demo%20II%20Version%202%20Manual.7z
+# Reference: http://mark0.net/download/triddefs_xml.7z/defs/d/dbd-v2.trid.xml
+>4 string D2 Dan Bricklin's Demo 2 demo
+#!:mime application/octet-stream
+!:ext dbd
+# URL: https://muhaz.org/turbo-pascal-download-details.html
+# From: Joerg Jenderek
+# Note: used by Turbo Pascal 5.5 TOUR.EXE
+>4 string T2 Turbo Pascal TOUR data
+#!:mime application/octet-stream
+!:mime application/x-borland-cbt
+!:ext cbt
+# WHAT iS THAT?
+#>4 string \040P Dan Bricklin's Demo 2 foo
+#!:mime application/octet-stream
+# _PPRINT.SG2 _PASCII.SG2
+#!:ext sg2
+# Reference: http://mark0.net/download/triddefs_xml.7z/defs/d/dbd-gen.trid.xml
+>4 default x Dan Bricklin's Demo demo (generic)
+#!:mime application/octet-stream
+!:ext dbd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-5.42-pascal-bricklin.diff.sig
Type: application/octet-stream
Size: 714 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20220726/5f9b640f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: droid-bricklin..csv.gz
Type: application/x-gzip
Size: 372 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20220726/5f9b640f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trid-v-bricklin.txt.gz
Type: application/x-gzip
Size: 429 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20220726/5f9b640f/attachment-0001.bin>
More information about the File
mailing list