[File] [PATCH] Magdir/pascal unrecognised Turbo Pascal Tour data *.CBT+ Dan Bricklin's Demo *.DBD

Christos Zoulas christos at zoulas.com
Sat Jul 30 16:53:19 UTC 2022


Committed, thanks!

christos

> On Jul 25, 2022, at 9:18 PM, Jörg Jenderek <joerg.jen.der.ek at gmx.net> wrote:
> 
> -----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-----
> <file-5_42-pascal-bricklin_diff.DEFANGED-0><file-5_42-pascal-bricklin_diff_sig.DEFANGED-1><droid-bricklin..csv.gz><trid-v-bricklin.txt.gz>--
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
> <sanitizer.log>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20220730/a7cc7ab5/attachment.asc>


More information about the File mailing list