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