summaryrefslogtreecommitdiffstats
path: root/tmac/fixmacros.sed
diff options
context:
space:
mode:
Diffstat (limited to 'tmac/fixmacros.sed')
-rw-r--r--tmac/fixmacros.sed7
1 files changed, 7 insertions, 0 deletions
diff --git a/tmac/fixmacros.sed b/tmac/fixmacros.sed
new file mode 100644
index 0000000..56caf9f
--- /dev/null
+++ b/tmac/fixmacros.sed
@@ -0,0 +1,7 @@
+# try to fix macros for AT&T troff so that they work without groff's -C switch
+s/^\([.'][ ]*[^\\ ][^ \\]\)\([^ ]\)/\1 \2/
+s/^\(\\![.'][ ]*[^\\ ][^ \\]\)\([^ ]\)/\1 \2/
+s/\([.'][ ]*i[ef] *[^ ]* [.'][ ]*[^\\0-9 ][^ \\]\)\([^ ]\)/\1 \2/
+s/\([.'][ ]*i[ef] *[^ ]* \\{[.'][ ]*[^\\0-9 ][^ \\]\)\([^ ]\)/\1 \2/
+s/\([.'][ ]*[da]s *[^ \\][^ \\]\)\([^ ]\)/\1 \2/
+s/\\\*\[/\\*[[]/