summaryrefslogtreecommitdiffstats
path: root/magic/Magdir/troff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:00:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 17:00:10 +0000
commit1ebbd027274333758fc3517685d81847601db676 (patch)
tree5259d053d3e3066e0745150805fa4b20184eef98 /magic/Magdir/troff
parentInitial commit. (diff)
downloadfile-1ebbd027274333758fc3517685d81847601db676.tar.xz
file-1ebbd027274333758fc3517685d81847601db676.zip
Adding upstream version 1:5.45.upstream/1%5.45upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'magic/Magdir/troff')
-rw-r--r--magic/Magdir/troff44
1 files changed, 44 insertions, 0 deletions
diff --git a/magic/Magdir/troff b/magic/Magdir/troff
new file mode 100644
index 0000000..301a40b
--- /dev/null
+++ b/magic/Magdir/troff
@@ -0,0 +1,44 @@
+
+#------------------------------------------------------------------------------
+# $File: troff,v 1.14 2023/06/01 16:00:46 christos Exp $
+# troff: file(1) magic for *roff
+#
+# updated by Daniel Quinlan (quinlan@yggdrasil.com)
+
+# troff input
+0 search/1 .\\" troff or preprocessor input text
+!:strength +12
+!:mime text/troff
+0 search/1 '\\" troff or preprocessor input text
+!:strength +12
+!:mime text/troff
+0 search/1 '.\\" troff or preprocessor input text
+!:strength +12
+!:mime text/troff
+0 search/1 \\" troff or preprocessor input text
+!:strength +12
+!:mime text/troff
+#0 search/1 ''' troff or preprocessor input text
+#!:mime text/troff
+0 regex/20l \^\\.[A-Za-z][A-Za-z0-9][\ \t] troff or preprocessor input text
+!:strength +12
+!:mime text/troff
+0 regex/20l \^\\.[A-Za-z][A-Za-z0-9]$ troff or preprocessor input text
+!:strength +12
+!:mime text/troff
+
+# ditroff intermediate output text
+0 search/1 x\ T ditroff output text
+>4 search/1 cat for the C/A/T phototypesetter
+>4 search/1 ps for PostScript
+>4 search/1 dvi for DVI
+>4 search/1 ascii for ASCII
+>4 search/1 lj4 for LaserJet 4
+>4 search/1 latin1 for ISO 8859-1 (Latin 1)
+>4 search/1 X75 for xditview at 75dpi
+>>7 search/1 -12 (12pt)
+>4 search/1 X100 for xditview at 100dpi
+>>8 search/1 -12 (12pt)
+
+# output data formats
+0 string \100\357 very old (C/A/T) troff output data