[File] [PATCH] Magdir/frame FrameMaker Font; mime type and extension

Christos Zoulas christos at zoulas.com
Sun Dec 10 16:08:12 UTC 2023


Committed, thanks!

christos

> On Dec 7, 2023, at 11:52 AM, Jörg Jenderek (GMX) <joerg.jen.der.ek at gmx.net> wrote:
> 
> Hello,
> 
> some days ago i must handles some old software samples from Adobe
> Framemaker. One file sort are fonts.
> 
> So i look on my systems for such files. When running file command
> version 5.45 on such fonts i get an output like:
> 
> AG-DmO9.bfont:  FrameMaker Font file (1.01)
> H-O8.bfont:     FrameMaker Font file (1.01)
> NCS-B10.bfont:  FrameMaker Font file (1.01)
> Symbol24.bfont: FrameMaker Font file (1.01)
> Tim-B18.bfont:  FrameMaker Font file (1.01)
> Tim-BI12.bfont: FrameMaker Font file (1.01)
> Tim-I14.bfont:  FrameMaker Font file (1.01)
> ZC-MI10.bfont:  FrameMaker Font file (1.01)
> test-v1.bfont:  FrameMaker Font file
> 
> With option --extension only 3 byte sequence ??? is shown and with -i
> option application/x-mif is shown.
> 
> For comparison reason i run the file format identification utility
> TrID ( See https://mark0.net/soft-trid-e.html). My font samples are
> described as "FrameMaker Bitmapped screen Font" by bfont.trid.xml.
> Here now application/x-font-framemaker mime type is shown. For file name
> suffix is bfont shown (See appended trid-v-bfont.txt.gz).
> 
> For comparison reason i also run the file format identification
> utility DROID ( See https://sourceforge.net/projects/droid/). This
> identifies no examples.
> 
> On Linux according to shared MIME-info database such samples are called
> "Adobe FrameMaker font". Here also application/x-font-framemaker is used
> as mime type and no file name suffix is shown. The samples are just
> recognized by looking for 16 byte sequence <MakerScreenFont at the
> beginning. That information can be seen in source freedesktop.org.xml.in
> found for example on gitlab.freedesktop.org.
> 
> That informations are expressed by comment line inside Magdir/frame like:
> # URL:		https://en.wikipedia.org/wiki/Adobe_FrameMaker
> # Reference:	http://mark0.net/download/triddefs_xml.7z
> #		defs/b/bfont.trid.xml
> The description happens by lines inside Magdir/frame  like:
> 0	string		\<MakerScreenFont	FrameMaker Font file
> !:mime	application/x-mif
> >17	string		1.01		 (%s)
> 
> So this now becomes like:
> 0	string		\<MakerScreenFont	FrameMaker Font file
> !:mime	application/x-font-framemaker
> !:ext	bfont
> >17	string		!1.01
> >>17	string		x		 (%-0.4s)
> >17	string		1.01		 (%s)
> 
> In my examples version number was 1.01 but TrID only checks for major
> version digit 1. So maybe there exist samples with other versions.
> 
> After applying the above mentioned modifications by patch
> file-5.45-frame-bfont.diff then all my inspected FrameMaker fonts are
> still described but now also for version unequal 1.01 this possible
> information is shown. This now looks like:
> 
> AG-DmO9.bfont:  FrameMaker Font file (1.01)
> H-O8.bfont:     FrameMaker Font file (1.01)
> NCS-B10.bfont:  FrameMaker Font file (1.01)
> Symbol24.bfont: FrameMaker Font file (1.01)
> Tim-B18.bfont:  FrameMaker Font file (1.01)
> Tim-BI12.bfont: FrameMaker Font file (1.01)
> Tim-I14.bfont:  FrameMaker Font file (1.01)
> ZC-MI10.bfont:  FrameMaker Font file (1.01)
> test-v1.bfont:  FrameMaker Font file (1.23)
> 
> I hope my diff file can be applied in future version of file
> utility.
> 
> With best wishes,
> Jörg Jenderek
> --
> Jörg Jenderek
> <trid-v-bfont.txt.gz><file-5_45-frame-bfont_diff.DEFANGED-4><file-5_45-frame-bfont_diff_sig.DEFANGED-5>-- 
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
> <sanitizer.log>



More information about the File mailing list