[206] in linux-announce channel archive
Magic entry for RTF files
daemon@ATHENA.MIT.EDU (Lars Wirzenius)
Sun Feb 19 14:44:20 1995
Date: Sun, 19 Feb 1995 19:51:03 +0200
From: Lars Wirzenius <wirzeniu@cc.helsinki.fi>
To: linux-activists@niksula.hut.fi, linux-announce@vger.rutgers.edu
X-Mn-Key: announce
Newsgroups: comp.os.linux.announce
From: D.P.Simpson@dcs.warwick.ac.uk (Duncan P Simpson)
Subject: Magic entry for RTF files
Organization: Department of Computer Science, Warwick University, England
Keywords: /etc/magic, file(1), Rich Text Format
Approved: linux-announce@tc.cornell.edu (Lars Wirzenius)
Followup-to: comp.os.linux.setup
Since rich text format is a candidate for special treatment (for example
processing by rtf2LaTeX, then latex then however you print a dvi file
in a lpr filter script) and very easy to indentify here is a magic entry for
it. This format should identify newer version of the RTF format but the
only format the tools I could get my hands on handle is version 1.
rtf2LaTeX is avaialable from ftp.tex.ac.uk and probably other ctan mirror
sites as well. Also on ftp.tex.ac.uk is the description of the rtf format
(version 1) that I used to generate this magic entry. The RTF format quite
struct about what appears at the start of an RTF file and insists everything
is 7-bit ascii.
BTW: The magic file currently seems to lack entries for standard #!...
sequeneces with no space between the #! and the interpreter name
(for example #!/bin/sh is not recognised and #! /bin/sh is).
Duncan (-:
#------------------------------------------------------------------------------
# rtf: file(1) magic for RTF (Rich text format)
#
# This information was gleaned from the version 1 documentation
#
0 string {\\rtf Rich text (RTF ver
>5 byte x %c,
>6 string \\mac Apple Mac chars)
>6 string \\ansi ANSI chars)
>6 string \\pc IBM PC chars)
>6 string \\pca IBM PS/2 chars)
--
Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov
PLEASE remember Keywords: and a short description of the software.