Author Topic: cbt.trid.xml for Tour data file *.CBT  (Read 891 times)

jenderek

  • Sr. Member
  • ****
  • Posts: 375
cbt.trid.xml for Tour data file *.CBT
« on: June 26, 2022, 08:35:06 PM »
Hello trid users,

some days ago i handled files with name extension CBT.  Some examples are
described as "Dan Bricklin's Demo demo (generic)" by dbd-gen.trid.xml with
wrong extension DBD (See appended output/trid-v-old.txt).

My examples are part of Turbo Pascal version 5.5 and are used by TOUR.EXE.
This program is an introduction to the Integrated Development Environment
(IDE) of Turbo Pascal. So i mention this facts in a remark line. This
information is described in the README of the software. This information can
also be found online for Turbo Pascal Download. This is be expressed by
reference URL by line like:
   <RefURL>
   https://muhaz.org/turbo-pascal-download-details.html
   </RefURL>

For comparison reason i check these examples by file command utility. When
running file command (version version 5.42) all examples are described as
data. (See appended output/file-5.42.txt).

Unfortunately i found no file format description. So i do not know if CBT
files are based on Dan Bricklin's Demo file format.  So i run tridscan on
these CBT examples to generate cbt.trid.xml.  Afterwards i look at
constructs and clean up lines.

Unfortunately my definition is based only on 2 examples TPTOUR1.CBT and
TPTOUR2.CBT. So i get still many patterns. So first i delete short nil
patterns probably generated by lucky circumstances like:
   <Bytes>00</Bytes>
   <Pos>25</Pos>
   <Bytes>00</Bytes>
   <Pos>982</Pos>

When looking in examples i also think that some longer or no nil patterns
are generated by lucky circumstances. These are expressed by constructs
like:
   <Bytes>00000000000300</Bytes>
   <Pos>59</Pos>
   <Bytes>00FF</Bytes>
   <Pos>67</Pos>
   <Bytes>0000000000000400</Bytes>
   <Pos>73</Pos>
So i also delete these constructs.

In global strings are short garbage patterns probably generated by lucky
circumstances. These are expressed by lines like:
   <String>ATED DE</String>
   <String>ED DEV</String>
   <String>ND PRO</String>
   <String>P'''P</String>
   <String>1989</String>
   <String>DING</String>
   <String>ED T</String>
So i delete such lines.

So only some lines referring to company are left. These look like:
   <String>BORLAN</String>
   <String>INC.</String>
Then there are lines referring to software or program. These look like:
   <String>TOUR</String>
   <String>PASCAL</String>

The first and probably most characteristic are the starting bytes looking
similar to Dan Bricklin demo. This is expressed by construct like:
   <Bytes>5479706554322041</Bytes>
   <ASCII> T y p e T 2   A</ASCII>
   <Pos>0</Pos>

With the new trid definition these CBT examples are now described ( see
appended output/trid-v-new.txt). TrID definitions, some examples and output
are stored in archive cbt_pascal.zip. I hope that my XML file can be used in
future version of triddefs.

With best wishes
Jörg Jenderek


Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2731
    • Mark0's Home Page
Re: cbt.trid.xml for Tour data file *.CBT
« Reply #1 on: July 14, 2022, 02:12:38 AM »
I think these are indeed Dan Bricklin's Demo files, so they are already correctly recognized.