Author Topic: cdr-v8b.trid.xml for version 8 Bidi of CorelDraw Document (*.cdr)  (Read 238 times)

jenderek

  • Full Member
  • ***
  • Posts: 102
cdr-v8b.trid.xml for version 8 Bidi of CorelDraw Document (*.cdr)
« on: September 26, 2019, 09:56:25 PM »
Hello trid users,

some days ago i run TrID on my CorelDraw Document test collection with file
name extension cdr. Corel Drawings with intermediate version 8 Bidi (called
by CoreDraw X3) are only identified by riff.trid.xml as "Generic RIFF
container" ( see appended output/trid-old.txt).

The samples are not recognized as CorelDraw Document by cdr.trid.xml because
second riff tag is low cased string cdr8, whereas in other versions second
riff tag starts with up cased string CDR. For version 8.0 this tag is CDR8.
This is expressed by XML construct:

   <Bytes>4344</Bytes>
   <ASCII> C D</ASCII>
   <Pos>8</Pos>

So this construct does not match Corel Drawing with version 8.0 Bidi. So i
create cdr-v8b.trid.xml definition for this version by running tridscan.

The main difference to other riff based Corel Drawings is the second XML
construct:
   <Bytes>636472387672736E020000002103</Bytes>
   <ASCII> c d r 8 v r s n . . . . !</ASCII>
   <Pos>8</Pos>

The version number is also stored in third following 2 byte sized tag vrsn
with hexadecimal value 0x2103. Interpreting this as little endian short value
gives 0801 in decimal. So what is called by CoreDraw version 8 Bidi is marked
by numeric major version 8 and 1 as minor version. For version 8 the vrsn
value is 0x2003 which must be interpreted as major version 8 and 0 as minor
version.

Some information about such CorelDraw documents is found on fileformats
archiveteam website. This is expressed by additional line:
   <RefURL>http://fileformats.archiveteam.org/wiki/CorelDRAW</RefURL>

There does not exist a registered mime type. According to web site
reposcope.com i choose an user defined. This is expressed by line:
      <Mime>application/x-coreldraw</Mime>

When i select in Corel Draw to store drawing as template, then extension CDT
instead CDR is used for this version. This is now expressed by line:
   <Ext>CDR/CDT</Ext>
I also mention this fact by remark line:
   <Rem>CDT is used for template</Rem>

With the new definition file CorelDraw samples with version 8 Bidi are
now recognized ( see appended output/trid-new-v.txt). TrID definitions, some
samples and output are stored in archive v8b.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: 1932
    • Mark0's Home Page
Re: cdr-v8b.trid.xml for version 8 Bidi of CorelDraw Document (*.cdr)
« Reply #1 on: September 27, 2019, 02:17:13 PM »
Thanks!