From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,ed9583389b92fa19,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1995-02-19 09:51:00 PST Path: nntp.gmd.de!stern.fokus.gmd.de!ceres.fokus.gmd.de!zib-berlin.de!uni-paderborn.de!news.sni.de!aquila.sni-usa.com!noc.near.net!paperboy.wellfleet.com!news-feed-1.peachnet.edu!insosf1.infonet.net!newshost.marcam.com!news.mathworks.com!hookup!swrinde!pipex!sunic!news.funet.fi!news.csc.fi!news.helsinki.fi!not-for-mail From: D.P.Simpson@dcs.warwick.ac.uk (Duncan P Simpson) Newsgroups: comp.os.linux.announce Subject: Magic entry for RTF files Followup-To: comp.os.linux.setup Date: 19 Feb 1995 19:51:00 +0200 Organization: Department of Computer Science, Warwick University, England Sender: wirzeniu@cc.helsinki.fi Message-ID: <3i80e4$igs@kruuna.helsinki.fi> NNTP-Posting-Host: kruuna.helsinki.fi Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Keywords: /etc/magic, file(1), Rich Text Format 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.