Author Topic: mml-fm.trid.xml for FrameMaker Maker Markup Language file  (Read 848 times)

jenderek

  • Sr. Member
  • ****
  • Posts: 375
mml-fm.trid.xml for FrameMaker Maker Markup Language file
« on: November 22, 2023, 08:35:47 PM »
Hello trid users,

some days ago i handled files with suffix HLP. Unfortunately these extension
is used by different programs for their internal help documentation. Some of
such files are used in context of Adobe FrameMaker.

But before handling the concerned HLP files i must identify some companion
files. In this session i will handle samples with file name suffix MML.

So i run trid utility on such MML examples. All samples are not recognized and
are described as "Unknown!" (see appended trid-v-old.txt in output).

For comparison reason i also run the file format identification utility DROID
(See https://sourceforge.net/projects/droid/). Here all samples are not
recognized.

For comparison reason i also run file command (version 5.45) on such
samples. Here such samples are recognized and described here as "FrameMaker
MML file" (see appended output/file-5.45.txt). The mime type here is
application/x-mif (see appended file-i-5.45.txt in output). The file name
suffix is also not recognized (see appended file-ext-5.45.txt in output).

On Linux according to shared MIME-info database such samples are called "Adobe
FrameMaker document" or "Adobe-FrameMaker-Dokument" with German language. The
samples are recognized by looking for less character followed by phrase MML at
the beginning.

That is in principal the same as i got when running tridscan on my samples.
There this is expressed inside front block by XML construct like:
   <Pattern>
      <Bytes>3C4D4D4C</Bytes>
      <ASCII> . M M L</ASCII>
      <Pos>0</Pos>
   </Pattern>

That information can be found in source freedesktop.org.xml.in found for
examples on gitlab.freedesktop.org. Here only suffix is FM listed. I believe
this is triggered because for usual FrameMaker Documents this is the file name
suffix.
 
Instead of generic mime type text/plain i choose the type used for "usual"
FrameMaker Documents and also used by shared mime database.  So this expressed
in definition by line like:
    <Mime>application/vnd.framemaker</Mime>

I do not like the description o file command, because it contains abbreviation
MML. So i look how others call such files by following URL:
       https://file-extension.net/seeker/file_extension_mml
So i choose name which seems to describe such samples best. This is expressed
by line like:
   <FileType>FrameMaker Maker Markup Language file</FileType>

Unfortunately i found no file format for Adobe FrameMaker MML. So i choose the
page about Adobe FrameMaker on Wikipedia. So that is now expressed by line
like:
   <RefURL>https://en.wikipedia.org/wiki/Adobe_FrameMaker</RefURL>

Inside global strings i get lines with phrase fragments like:
      <String>E FO</String>
      <String>TION</String>
I guess that these are triggered by lucky circumstances (too few examples). So
i delete such lines.

With this new trid definition mml-fm.trid.xml my FrameMaker MML samples are
now recognized and described (see appended trid-v-new.txt in output).

TrID definition and output are stored in archive MML.zip. I hope that my
definition can be used in future version of triddefs.

With best wishes
Jörg Jenderek

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: mml-fm.trid.xml for FrameMaker Maker Markup Language file
« Reply #1 on: November 26, 2023, 05:41:48 PM »
Thanks for the new def!