xref: /illumos-gate/usr/src/cmd/mandoc/predefs.in (revision 698f87a4)
1*698f87a4SGarrett D'Amore/*	$Id: predefs.in,v 1.4 2012/07/18 10:39:19 schwarze Exp $ */
295c635efSGarrett D'Amore/*
395c635efSGarrett D'Amore * Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
495c635efSGarrett D'Amore *
595c635efSGarrett D'Amore * Permission to use, copy, modify, and distribute this software for any
695c635efSGarrett D'Amore * purpose with or without fee is hereby granted, provided that the above
795c635efSGarrett D'Amore * copyright notice and this permission notice appear in all copies.
895c635efSGarrett D'Amore *
995c635efSGarrett D'Amore * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1095c635efSGarrett D'Amore * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1195c635efSGarrett D'Amore * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1295c635efSGarrett D'Amore * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1395c635efSGarrett D'Amore * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1495c635efSGarrett D'Amore * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1595c635efSGarrett D'Amore * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1695c635efSGarrett D'Amore */
1795c635efSGarrett D'Amore
1895c635efSGarrett D'Amore/*
1995c635efSGarrett D'Amore * The predefined-string translation tables.  Each corresponds to a
2095c635efSGarrett D'Amore * predefined strings from (e.g.) tmac/mdoc/doc-nroff.  The left-hand
2195c635efSGarrett D'Amore * side corresponds to the input sequence (\*x, \*(xx and so on).  The
2295c635efSGarrett D'Amore * right-hand side is what's produced by libroff.
2395c635efSGarrett D'Amore *
2495c635efSGarrett D'Amore * XXX - C-escape strings!
2595c635efSGarrett D'Amore * XXX - update PREDEF_MAX in roff.c if adding more!
2695c635efSGarrett D'Amore */
2795c635efSGarrett D'Amore
2895c635efSGarrett D'AmorePREDEF("Am", "&")
29*698f87a4SGarrett D'AmorePREDEF("Ba", "\\fR|\\fP")
3095c635efSGarrett D'AmorePREDEF("Ge", "\\(>=")
3195c635efSGarrett D'AmorePREDEF("Gt", ">")
3295c635efSGarrett D'AmorePREDEF("If", "infinity")
3395c635efSGarrett D'AmorePREDEF("Le", "\\(<=")
3495c635efSGarrett D'AmorePREDEF("Lq", "\\(lq")
3595c635efSGarrett D'AmorePREDEF("Lt", "<")
3695c635efSGarrett D'AmorePREDEF("Na", "NaN")
3795c635efSGarrett D'AmorePREDEF("Ne", "\\(!=")
3895c635efSGarrett D'AmorePREDEF("Pi", "pi")
3995c635efSGarrett D'AmorePREDEF("Pm", "\\(+-")
4095c635efSGarrett D'AmorePREDEF("Rq", "\\(rq")
4195c635efSGarrett D'AmorePREDEF("left-bracket", "[")
4295c635efSGarrett D'AmorePREDEF("left-parenthesis", "(")
4395c635efSGarrett D'AmorePREDEF("lp", "(")
4495c635efSGarrett D'AmorePREDEF("left-singlequote", "\\(oq")
4595c635efSGarrett D'AmorePREDEF("q", "\\(dq")
4695c635efSGarrett D'AmorePREDEF("quote-left", "\\(oq")
4795c635efSGarrett D'AmorePREDEF("quote-right", "\\(cq")
4895c635efSGarrett D'AmorePREDEF("R", "\\(rg")
4995c635efSGarrett D'AmorePREDEF("right-bracket", "]")
5095c635efSGarrett D'AmorePREDEF("right-parenthesis", ")")
5195c635efSGarrett D'AmorePREDEF("rp", ")")
5295c635efSGarrett D'AmorePREDEF("right-singlequote", "\\(cq")
5395c635efSGarrett D'AmorePREDEF("Tm", "(Tm)")
5495c635efSGarrett D'AmorePREDEF("Px", "POSIX")
5595c635efSGarrett D'AmorePREDEF("Ai", "ANSI")
5695c635efSGarrett D'AmorePREDEF("\'", "\\\'")
5795c635efSGarrett D'AmorePREDEF("aa", "\\(aa")
5895c635efSGarrett D'AmorePREDEF("ga", "\\(ga")
5995c635efSGarrett D'AmorePREDEF("`",  "\\`")
6095c635efSGarrett D'AmorePREDEF("lq", "\\(lq")
6195c635efSGarrett D'AmorePREDEF("rq", "\\(rq")
6295c635efSGarrett D'AmorePREDEF("ua", "\\(ua")
6395c635efSGarrett D'AmorePREDEF("va", "\\(va")
6495c635efSGarrett D'AmorePREDEF("<=", "\\(<=")
6595c635efSGarrett D'AmorePREDEF(">=", "\\(>=")
66