Hello trid users,
some weeks ago i handle some CD-ROM images. Some use suffix CCD.
Unfortunately this file name suffix is also used by CorelCAD Drawing.
So i run trid utility on my CorelCAD Drawing and templates. The later
has suffix CDT. All samples are described with low priority as
"Generic OLE2 / Multistream Compound" with mime type
application/x-ole-storage by docfile.trid.xml. The cdd samples are
described correctly with highest priority as "CorelCAD Drawing" with
mime type application/octet-stream by ccd-corelcad.trid.xml. The CCT
samples are described as "CorelCAD Custom Views" with wrong suffix CWL
and mime type application/octet-stream by cwl-corel.trid.xml (See
appended output/trid-v-old.txt).
For comparison reason i also run file command (version 5.44) on such
samples. Here all samples are also recognized and are described as
generic "Composite Document File V2 Document". For most samples except
of DOGFVIEW.CCD additional information like "Name of Creating
Application: CorelCAD" is shown. It also shows wrong mime type
application/vnd.ms-office (see appended output/file-i-5.44.txt) and no
file name suffix (see appended output/file-ext-5.44.txt). When
excluding internal check option -e cdf i get information by consulting
magic file. Again the samples are described generic as "OLE 2 Compound
Document". Luckily nearly all examples except DOGFVIEW.CCD have a Root
storage object CLSID. In that case file command display afterwords
this information by a phrase like 0x20f414de1cacce11be26db67235e2689
or in curly braces format {DE14F420-AC1C-11CE-BE26-DB67235E2689}. The
first directory entry names after "Root Entry" are like:
Contents
ViewInfo
CustomViewDescriptions
LayerInfo
See appended output/file-soft-5.44.txt. When using newest version
(ole2compounddocs,v 1.25 2023/04/17 16:36:24) the samples instead of
unknown are now described as "CorelCAD Drawing or Template" by using
this GUID (see appended output/file-soft.txt). Now also another mime
type application/x-corel-cad is shown (see appended
output/file-i-soft.txt). Now also 2 file name suffix ccd/cct are shown
(see appended output/file-ext-soft.txt).
For comparison reason i also run the file format identification
utility DROID ( See
https://sourceforge.net/projects/droid/). Here the
examples are recognized and described generic as "OLE2 Compound
Document Format" by PUID fmt/111.
So for file command the CCD samples and the templates are the same
kind, but for trid not. So i run tridscan on my CCT samples to
generate cct-corelcad.trid.xml.
Luckily i found a page about CorelCAD on file formats archive team web
site. This is now expressed by line like:
<RefURL>
http://fileformats.archiveteam.org/wiki/CorelCAD</RefURL>
There also software link to CorelCAD 30-Day Trial Disc is listed. From
there i get my examples. According to registry file CORELCAD.REG all
are registered as ccdw.Document. The CCT samples are there called
CorelCAD Templates and the CWL samples are called "CorelCAD Window
Layouts" whereas these are called "CorelCAD Custom Views" by
cwl-corel.trid.xml.
Instead of CCD another suffix is used for templates. That is expressed
inside TrID definition by line like:
<Ext>CCT</Ext>
So i choose same main name like for CCD definition but with additional
"Template" phrase. So this expressed by line like:
<FileType>CorelCAD Drawing Template</FileType>
I do not refine definition, because i do not know where is the
difference between CCD and CCT examples. As far as i can see the CCD
samples seems to contain 2 additional streams with names Thumbnail and
Model.SAT.comp. That is expressed in ccd-corelcad.trid.xml by lines
like:
<String>M'O'D'E'L'.'S'A'T'.'C'O'M'P</String>^^
<String>T'H'U'M'B'N'A'I'L</String>
The CCT samples are also ccdw.Document images. So i apply the n user
defined mime type shown by file command. This type is expressed by
line like:
<Mime>application/x-corel-cad</Mime>
With the new trid definition now also my Atari CorelCAD Drawing
Templates are described in non generic way (see appended
output/trid-v-new.txt). TrID definitions and output are stored in
archive ccd_cct.zip. I hope that my definition can be used in future
version of triddefs.
With best wishes
Jörg Jenderek