Author Topic: updated gramps-xml.trid.xml for GRAMPS XML  (Read 807 times)

jenderek

  • Sr. Member
  • ****
  • Posts: 375
updated gramps-xml.trid.xml for GRAMPS XML
« on: June 01, 2023, 06:13:32 PM »
Hello trid users,

some days ago i handle some genealogical database. One format used filename
extension GRAMPS. That is used by software with this name.

So i run trid utility on my GRAMPS examples. Some i found inside example sub
directory under doc directory inside GRAMPS software package.  The samples are
described correctly with low priority as "Generic XML (ASCII)" with mime type
text/xml by xml.trid.xml. The example.gramps sample is described wrong with
highest priority as "Aleph One Marathon Markup Language" by mml.trid.xml.  But
the examples should be described as "GRAMPS XML" by gramps-xml.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 recognised and described generic as "XML
1.0 document".  The tool also show some additional information about encoding
(like ASCII text or Unicode text). It also shows mime type text/xml (see
appended output/file-i-5.44.txt) and no file name suffix (see appended
output/file-ext-5.44.txt).

For comparison reason i also run the file format identification utility DROID
( See https://sourceforge.net/projects/droid/). Here the examples are also
recognised. These are described generic as "Extensible Markup Language" with
version 1.0 by PUID fmt/101. Her the GRAMPS is considered as invalid.

The samples are just XML text files. So the generic mime type text/xml in
principal is OK. But on my mint 21.1 the gramps samples are associated with
application/x-gramps-xml after installing the software with version 5.1.5-1,
but on Windows with software version 5.1.5 i get no association here. So this
is now expressed line like:
      <Mime>application/x-gramps-xml</Mime>

So i run tridscan to update gramps-xml.trid.xml. Then i looked what has
changed in the definition.  In the global strings section now many lines
vanish like:
      <String>LOCATION COUNTRY</String>
      <String>SOURCEREF HLINK</String>
      <String>CHILDREF HLINK</String>
      <String>PARENTIN HLINK</String>
      <String>REPOREF HLINK</String>
      <String>MOTHER HLINK</String>
      <String>OBJREF HLINK</String>
      <String>REPOSITORIES</String>
      <String>FATHER HLINK</String>
      <String>DESCRIPTION</String>
      <String>MANUSCRIPT</String>
      <String>REPOSITORY</String>
      <String>ION STATE</String>
      <String>FILE SRC</String>
      <String>PLACEOBJ</String>
      <String>FAMILIES</String>
      <String>SPUBINFO</String>
      <String>REL TYPE</String>
      <String>OBJECTS</String>
      <String>RESNAME</String>
      <String>SABBREV</String>
      <String>ADDRESS</String>
      <String>DEATH</String>
      <String>.JPG</String>
      <String>MIME</String>
      <String>CITY</String>
      <String>NOTE</String>
      <String>WWW.</String>

The lines which are apparently characteristic survived like:
      <String>GRAMPS-PROJECT.ORG</String>
      <String>DTD GRAMPS XML</String>
      <String>GRAMPSXML.DTD</String>

With the updated trid definitions now my genealogical GRAMPS examples are
described (see appended output/trid-v-new.txt). TrID definitions and output
are stored in archive gramps_trid.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: updated gramps-xml.trid.xml for GRAMPS XML
« Reply #1 on: June 02, 2023, 11:02:02 PM »
Thanks!