Author Topic: 3 csl-corel-v*.trid.xml for newer zipped Corel Symbol Library *.csl  (Read 196 times)

jenderek

  • Full Member
  • ***
  • Posts: 152
Hello trid users,

some days ago i run TrID on newest zip based Corel Symbol Library
*.csl. All are described correctly as generic Zip document container
by zip-doc-cont.trid.xml. But they are misidentified as zipped
CorelDRAW drawing (*.cdr) by cdr-zip.trid.xml. ( see appended
csl_5-7/output/trid-v-old.txt, csl_8-16.3/output/trid-v-old.txt and
csl_17/output/trid-v-old.txt).

The newest file(1) command describes such CSL examples as Corel Symbol
Library with version 6-16.3 ( see appended csl_5-7/output/file-new.txt
and csl_8-16.3/output/file-new.txt) or with version 17-22 ( see
appended csl_17/output/file-new.txt).

All such inspected Corel samples are zip containers, where first archive
member is an uncompressed file with 8 byte name mimetype. The
compression method 0 is expressed by XML construct like:
   <Bytes>0000</Bytes>
   <Pos>8</Pos>
This can be verified by looking in listing output of 7zip ( see
appended output 7z-l.txt).

This file contains the corresponding mime type. This starts for
inspected Corel samples with "application/x-vnd.corel.".  So i run
tridscan on samples and delete null and garbage patterns and get
definition files. For version version 17 and higher the mime type ends
with zcf.symbol.library+zip whereas for lower versions the type ends
with symbol.library+zip. This gives a 46 (2Eh) byte long mime type
string for newer zip variants and 42 (2Ah) string for older ZIP
variants. This is expressed in csl-corel-v17.trid.xml by XML construct
like:
 <Bytes>2E0000002E000000080000006D696D65747970656170706C69636174696F6E2F
 <ASCII> . . . . . . . . . . . . m i m e t y p e a p p l i c a t i o n /
 <Pos>18</Pos>

Some information about such libraries is found on file formats archive
website. This is expressed by line:
 <RefURL>http://fileformats.archiveteam.org/wiki/Corel_Designer</RefURL>

In lowest zip based versions from 5 to 7 the RIFF part is stored as a
file with name "riffData.cdr". This can be verified by looking in
listing output of 7zip ( see appended csl_5-7/output/7z-l.txt).
This is expressed inside csl-corel-v5.trid.xml in global string
section by line like:
   <String>RIFFDATA.CDR</String>

For version 8 and higher the RIFF part is stored as a file with name
"root.dat". This can be verified by looking in listing output of 7zip
( see appended csl_8-16.3/output/7z-l.txt). This is expressed inside
csl-corel-v8.trid.xml and csl-corel-v17.trid.xml in global string
section by line like:
   <String>ROOT.DAT</String>

With the new 3 definition files the undetected Corel Symbol Libraries
are now recognized ( see appended csl_5-7/output/trid-v-new.txt,
csl_8-16.3/output/trid-v-new.txt and csl_17/output/trid-v-new.txt).
TrID definitions, some examples and output are stored in archive
csl_zip.zip. I hope that my 3 XML files can be used in future version
of triddefs.

With best wishes
Jörg Jenderek

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2076
    • Mark0's Home Page
Re: 3 csl-corel-v*.trid.xml for newer zipped Corel Symbol Library *.csl
« Reply #1 on: June 15, 2020, 01:40:43 AM »
Thanks!