Author Topic: mif-DMI.trid.xml for Management Information Format (*.mif)  (Read 2021 times)

jenderek

  • Sr. Member
  • ****
  • Posts: 361
mif-DMI.trid.xml for Management Information Format (*.mif)
« on: November 12, 2019, 07:59:27 PM »
Hello trid users,

some weeks ago i had to handle some ImageMagick bitmaps which have
normally filename extension miff. But some times also extension mif is
used. When searching on my systems for such files and running trid some
samples are described as "Unknown!" (See appended output/trid-old.txt).

A few information about that undetected file format can be found on
Wikipedia expressed by line like:

   <RefURL>https://en.wikipedia.org/wiki/Management_Information_Format</RefURL>

Apparently such samples are plain text files. This is expressed by line:

   <Mime>text/plain</Mime>

So i run tridscan on examples to generate mif-DMI.trid.xml. Such files seem
to always start with string like "Start Component". Some times these word are
capitalized and some times words are in low case. This is described in
front block section by XML constructs:

   <ASCII> t a r t</ASCII>
   <Pos>1</Pos>
   <ASCII> o m p o n e n t</ASCII>
   <Pos>7</Pos>

And in global strings section this is described by line:
   <String>START COMPONENT</String>

Such mif files also contain other start and end directives. This is expressed
in global strings section by lines like:

   <String>END COMPONENT</String>
   <String>START ATTRIBUTE</String>
   <String>END ATTRIBUTE</String>
   <String>START GROUP</String>
   <String>END GROUP</String>

With the new trid definition all such mif-examples are now described ( see
appended output/trid-v-new.txt). TrID definition, some examples and output
are stored in archive mif.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: 2667
    • Mark0's Home Page
Re: mif-DMI.trid.xml for Management Information Format (*.mif)
« Reply #1 on: November 12, 2019, 08:30:04 PM »
Hi!

I searched for some other MIF files, and found some that have all uppercase keywords.
So I end up creating two separates def: one that starts with "start component", and the other with "S" and then a "C" (plus the strings for both).
I kept your name in the credits and added mine as a refine.

Thanks for the new def, as usual!