xref: /freebsd/contrib/file/magic/Magdir/troff (revision 02e9120893770924227138ba49df1edb3896112a)
1
2#------------------------------------------------------------------------------
3# $File: troff,v 1.14 2023/06/01 16:00:46 christos Exp $
4# troff:  file(1) magic for *roff
5#
6# updated by Daniel Quinlan (quinlan@yggdrasil.com)
7
8# troff input
90	search/1	.\\"		troff or preprocessor input text
10!:strength +12
11!:mime	text/troff
120	search/1	'\\"		troff or preprocessor input text
13!:strength +12
14!:mime	text/troff
150	search/1	'.\\"		troff or preprocessor input text
16!:strength +12
17!:mime	text/troff
180	search/1	\\"		troff or preprocessor input text
19!:strength +12
20!:mime	text/troff
21#0	search/1	'''		troff or preprocessor input text
22#!:mime	text/troff
230	regex/20l	\^\\.[A-Za-z][A-Za-z0-9][\ \t]	troff or preprocessor input text
24!:strength +12
25!:mime	text/troff
260	regex/20l	\^\\.[A-Za-z][A-Za-z0-9]$	troff or preprocessor input text
27!:strength +12
28!:mime	text/troff
29
30# ditroff intermediate output text
310	search/1	x\ T		ditroff output text
32>4	search/1	cat		for the C/A/T phototypesetter
33>4	search/1	ps		for PostScript
34>4	search/1	dvi		for DVI
35>4	search/1	ascii		for ASCII
36>4	search/1	lj4		for LaserJet 4
37>4	search/1	latin1		for ISO 8859-1 (Latin 1)
38>4	search/1	X75		for xditview at 75dpi
39>>7	search/1	-12		(12pt)
40>4	search/1	X100		for xditview at 100dpi
41>>8	search/1	-12		(12pt)
42
43# output data formats
440	string		\100\357	very old (C/A/T) troff output data
45