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

Jörg Jenderek (GMX) joerg.jen.der.ek at gmx.net
Thu Dec 7 16:52:10 UTC 2023


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trid-v-bfont.txt.gz
Type: application/x-gzip
Size: 469 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20231207/151409c2/attachment.bin>
-------------- next part --------------
--- file-5.45/magic/Magdir/frame.old	2021-02-23 01:49:24.000000000 +0100
+++ file-5.45/magic/Magdir/frame	2023-12-07 17:30:53.310665500 +0100
@@ -8,4 +8,3 @@
 #
-# Note that this is the Framemaker Maker Interchange Format, not the
-# Normal format which would be application/vnd.framemaker.
+# URL:		https://en.wikipedia.org/wiki/Adobe_FrameMaker
 #
@@ -43,4 +42,14 @@
 >17	string		1.0		 (1.x)
+# Reference:	http://mark0.net/download/triddefs_xml.7z/defs/b/bfont.trid.xml
+# Update:	Joerg Jenderek 2023
+# Note:		called "XFrameMaker Bitmapped screen Font" by TrID and
+#		"Adobe FrameMaker font" by shared MIME-info database from freedesktop.org
 0	string		\<MakerScreenFont	FrameMaker Font file
-!:mime	application/x-mif
+#!:mime	application/octet-stream
+#!:mime	application/x-mif
+!:mime	application/x-font-framemaker
+!:ext	bfont
+# Note:		maybe also other version like: 1.x
+>17	string		!1.01
+>>17	string		x		 (%-0.4s)
 >17	string		1.01		 (%s)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-5.45-frame-bfont.diff.sig
Type: application/octet-stream
Size: 710 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20231207/151409c2/attachment.obj>


More information about the File mailing list