pkgsrc/textproc/texi2roff/patches/patch-ak
agc 70f43d63b9 Initial import of texi2roff-2.0 into the NetBSD packages collection.
Provided in PR 13059 by Ben Collver (collver@linuxfreemail.com)

Texi2roff is an unmaintained program program to convert Texinfo to troff.
Beverly Erlebacher wrote the program and made the last release in the late
1980's. William Bader produced a patch in 1996 adding numerous commands and
other functionality. Alain Knaff added a translation table to generate man
pages, and uses it to generate the manuals for mtools.  Ben Collver
integrated William Bader's and Alain Knaff's changes and made minor cleanups.
2001-05-30 11:45:41 +00:00

149 lines
6.8 KiB
Text

$NetBSD: patch-ak,v 1.1.1.1 2001/05/30 11:45:42 agc Exp $
--- tablemandoc.h.orig Mon May 28 13:14:52 2001
+++ tablemandoc.h Mon May 28 13:11:47 2001
@@ -0,0 +1,144 @@
+/*
+ * tablemandoc.h - -mandoc macros table and other explicit troff
+ * command strings
+ *
+ */
+
+#include "table-common.h"
+
+/*
+ * miscellaneous commands, described in texi2roff.h
+ */
+struct misccmds mandoccmds = {
+ "'\\\" t\n.de TQ\n.br\n.ns\n.TP \\\\$1\n..\n",
+ "\n.PP\n",
+ "\n.IP\n",
+ "\n.RS\n",
+ "\n.RE\n"
+};
+
+struct tablerecd mandoctable[] = { TABLE_COMMON
+ "@MANquote", "\n", "", "\n", "", PARAGRAPH,
+ "@MANtitle", "\n", ".TH ", "\n", "", PARAGRAPH,
+ "@MANskip", "@MANend-skip","", "", "", DISCARD,
+ "@appendix", "\n",
+ "\n.if !\\n(_- \\{\\\n.nr _- 1\n.nr $1 0 1\n.af $1 A\\}\n.bp\n.ds __ ",
+ "\n.sh 1 \\*(__ \n.(x \n\\n($1 \\*(__ \n.)x\n","\\fB", HEADING,
+ "@appendixsec", "\n", "\n.ds __ ",
+ "\n.sh 2 \\*(__ \n.(x \n\\n($1.\\n($2 \\*(__ \n.)x\n",
+ "\\fB", HEADING,
+ "@appendixsection", "\n", "\n.ds __ ",
+ "\n.sh 2 \\*(__ \n.(x \n\\n($1.\\n($2 \\*(__ \n.)x\n",
+ "\\fB", HEADING,
+ "@appendixsubsec", "\n", "\n.ds __ ",
+ "\n.sh 3 \\*(__ \n.(x \n\\n($1.\\n($2.\\n($3 \\*(__ \n.)x\n",
+ "\\fB", HEADING,
+ "@appendixsubsubsec","\n", "\n.ds __ ",
+ "\n.sh 4 \\*(__ \n.(x \n\\n($1.\\n($2.\\n($3.\\n($4 \\*(__ \n.)x\n",
+ "\\fB", HEADING,
+ "@bullet{", "}", "* ", "", "", CHAR,
+ "@chapter", "\n", "\n.SH ","\n", "", HEADING,
+ "@contents", "\n", "\n.nr % 0 1\n.af % i\n.bp \\n%+1\n",
+ ".ce\n\\fBTable of Contents\\fR\n.sp 2\n.xp \n","",INPARA,
+ "@defcmd", "@end", "\n.lp\n*\\ Command: ","","", HEADING,
+ "@defcmdx", "\n", "\n.lp\n*\\ Command: ","\n.br\n","",HEADING,
+ "@defconst", "@end", "\n.lp\n*\\ Constant: ","","", HEADING,
+ "@defconstx", "\n", "\n.lp\n*\\ Constant: ","\n.br\n","",HEADING,
+ "@deffn", "@end", "\n.lp\n*\\ ", "", "", HEADING,
+ "@deffnx", "\n", "\n.lp\n*\\ ", "\n.br\n","", HEADING,
+ "@defmac", "@end", "\n.lp\n*\\ Macro: ","","", HEADING,
+ "@defmacx", "\n", "\n.lp\n*\\ Macro: ","\n.br\n","",HEADING,
+ "@defmethod", "@end", "\n.lp\n*\\ Operation on ","","",HEADING,
+ "@defmethodx", "\n", "\n.lp\n*\\ Operation on ","\n.br\n",
+ "", HEADING,
+ "@defopt", "@end", "\n.lp\n*\\ User Option: ","","",HEADING,
+ "@defoptx", "\n", "\n.lp\n*\\ User Option: ","\n.br\n",
+ "", HEADING,
+ "@defspec", "@end", "\n.lp\n*\\ Special Form: ","","",HEADING,
+ "@defspecx", "\n", "\n.lp\n*\\ Special Form: ","\n.br\n",
+ "", HEADING,
+ "@defun", "@end", "\n.lp\n*\\ Function: ","","", HEADING,
+ "@defunx", "\n", "\n.lp\n*\\ Function: ","\n.br\n","",HEADING,
+ "@defvar", "@end", "\n.lp\n*\\ Variable: ","","", HEADING,
+ "@defvarx", "\n", "\n.lp\n*\\ Variable: ","\n.br\n","",HEADING,
+ "@display", "@end", "\n.(l I\n","\n.)l\n \n","", DISPLAY,
+ "@end", "\n", "", "\n.sp\n.in\n", "", END,
+ "@enumerate", "@end", "\n\n", "", "", ITEMIZING,
+ "@error{", "}", "error->", "", "", CHAR,
+ "@example", "@end", "\n \n.nf\n.ft 3\n.in +0.3i\n",
+ "\n.fi\n.in -0.3i\n.ft R\n.lp\n \n",
+ "\\fR\\&\\f(CW", DISPLAY,
+ "@example{", "}", "\\fR\\&\\f(CW","","\\fR\\&\\f(CW",INPARA,
+ "@exdent", "\n", "\n.lp\n", "\n", "", PARAGRAPH,
+ "@file{", "}", "\\fR\\&\\f(CW\\(if", "\\(is",
+ "\\fR\\&\\f(CW", INPARA,
+ "@footnote{", "}", "\n.(f \n", "\n.)f\n","", DISCARD,
+ "@group", "@end", "\n.(b\n", "\n.)b\n","", PARAGRAPH,
+ "@heading", "\n", "\n.bp\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@headings", "\n", "", "", "", DISCARD,
+ "@iappendix", "\n", "\n.bp\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@iappendixsec", "\n", "\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@iappendixsubsec", "\n", "\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@ichapter", "\n", "\n.bp\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@ignore", "@end", "", "", "", PARAGRAPH,
+ "@include", "\n", "", "", "", INCLUDE,
+ "@isection", "\n", "\n.SS ", "\n", "", HEADING,
+ "@isubsection", "\n", "\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@isubsubsection", "\n", "\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@item", "\n", "\n.TP\n", "\\ \n","", ITEM,
+ "@itemize", "@end", "\n\n", "", "", ITEMIZING,
+ "@itemx", "\n", ".TQ\n", "\n", "", ITEM,
+ "@iunnumbered", "\n", "\n.SH ", "\n", "", HEADING,
+ "@iunnumberedsec", "\n", "\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@iunnumberedsubsec","\n", "\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@majorheading", "\n", "\n.sp 4\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@menu", "@end", "\n.(l I\n\\s8Menu: \n",
+ "\\s0\n.)l\n","", DISPLAY,
+ "@node", "\n", "\n.lp\n\\s8Node:",
+ "\\s0\n.br\n","", PARAGRAPH,
+ "@noindent", "\n", "\n.lp\n", "", "", PARAGRAPH,
+ "@pxref{", "}", "see section ","", "", PARAGRAPH,
+ "@quotation", "@end", "\n.(q\n.nh\n", "\n.)q\n","", DISPLAY,
+ "@samp{", "}", "\\fR\\&\\f(CW\\(if", "\\(is",
+ "\\fR\\&\\f(CW",INPARA,
+ "@section", "\n", "\n.SS ", "\n", "", HEADING,
+ "@settitle", "\n", "\n.ds St ",
+ "\n.oh '\\\\*(St''%'\n.eh '%''\\\\*(St'\n","", HEADING,
+ "@smallbook", "\n", "", "", "", DISCARD,
+ "@smallexample", "@end", "\n.(l I\n\\fR\\&\\f(CW\n",
+ "\n.)l\n", "\\fR\\&\\f(CW",DISPLAY,
+ "@subheading", "\n", "\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@subsection", "\n", "\n.SS \\ \\ ", "\n", "", HEADING,
+ "@subsubheading", "\n", "\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@subsubsection", "\n", "\n.ds __ \n.B ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@summarycontents", "\n", "\n.nr % 0 1\n.af % i\n.bp \\n%+1\n",
+ ".ce\n\\fBTable of Contents\\fR\n.sp 2\n.xp \n","", INPARA,
+ "@table", "@end", "\n\n", "", "", ITEMIZING,
+ "@titlefont{", "}", "\n.sz +10\n.ce\n",
+ "\n.sz -10\n","",PARAGRAPH,
+ "@titlepage", "@end", "\n.tp\n", "\n.bp\n","", PARAGRAPH,
+ "@titlespec", "@end", "\n.tp\n.ce \n\\&\\*(St \n",
+ "\n", "", PARAGRAPH,
+ "@unnumbered", "\n", "\n.SH ", "\n", "", HEADING,
+ "@unnumberedsec", "\n", "\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@unnumberedsubsec","\n", "\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@unnumberedsubsubsec","\n","\n.ds __ ",
+ "\n.(x \n\\*(__ \n.)x\n.uh \\*(__ \n","\\fB", HEADING,
+ "@vfil", "\n", "", "\n", "", DISCARD
+};
+