| Commit | Line | Data |
|---|---|---|
| 92d0a6a6 | 1 | .ig |
| 4d3e9548 JL |
2 | Copyright (C) 1989-2001, 2002, 2003, 2005, 2007, 2009 |
| 3 | Free Software Foundation, Inc. | |
| 92d0a6a6 JR |
4 | |
| 5 | Permission is granted to make and distribute verbatim copies of | |
| 6 | this manual provided the copyright notice and this permission notice | |
| 7 | are preserved on all copies. | |
| 8 | ||
| 9 | Permission is granted to copy and distribute modified versions of this | |
| 10 | manual under the conditions for verbatim copying, provided that the | |
| 11 | entire resulting derived work is distributed under the terms of a | |
| 12 | permission notice identical to this one. | |
| 13 | ||
| 14 | Permission is granted to copy and distribute translations of this | |
| 15 | manual into another language, under the above conditions for modified | |
| 16 | versions, except that this permission notice may be included in | |
| 17 | translations approved by the Free Software Foundation instead of in | |
| 18 | the original English. | |
| 19 | .. | |
| 465b256c | 20 | . |
| 92d0a6a6 | 21 | .TH @G@NROFF @MAN1EXT@ "@MDATE@" "Groff Version @VERSION@" |
| 465b256c | 22 | . |
| 92d0a6a6 JR |
23 | .SH NAME |
| 24 | @g@nroff \- emulate nroff command with groff | |
| 465b256c | 25 | . |
| 92d0a6a6 | 26 | .SH SYNOPSIS |
| 4d3e9548 JL |
27 | . |
| 28 | .\" Redefine OP because no spaces are allowed after an option's argument. | |
| 92d0a6a6 | 29 | .de OP |
| 4d3e9548 JL |
30 | . ie \\n(.$-1 \ |
| 31 | . RI "[\fB\\$1\fP" "\\$2" "]" | |
| 32 | . el \ | |
| 33 | . RB "[" "\\$1" "]" | |
| 92d0a6a6 | 34 | .. |
| 4d3e9548 JL |
35 | |
| 36 | .SY @g@nroff | |
| 37 | .OP \-CchipStUvwW | |
| 92d0a6a6 | 38 | .OP \-d cs |
| 465b256c | 39 | .OP \-M dir |
| 92d0a6a6 JR |
40 | .OP \-m name |
| 41 | .OP \-n num | |
| 42 | .OP \-o list | |
| 43 | .OP \-r cn | |
| 44 | .OP \-T name | |
| 4d3e9548 JL |
45 | .RI [ file\~ .\|.\|.] |
| 46 | . | |
| 47 | .SY @g@nroff | |
| 48 | .B \-\-help | |
| 49 | . | |
| 50 | .SY @g@nroff | |
| 51 | .B \-v | |
| 52 | | | |
| 53 | .B \-\-version | |
| 54 | .YS | |
| 465b256c | 55 | . |
| 92d0a6a6 JR |
56 | .SH DESCRIPTION |
| 57 | The | |
| 58 | .B @g@nroff | |
| 59 | script emulates the | |
| 60 | .B nroff | |
| 61 | command using groff. | |
| 4d3e9548 | 62 | Only |
| 92d0a6a6 JR |
63 | .BR ascii , |
| 64 | .BR latin1 , | |
| 65 | .BR utf8 , | |
| 66 | and | |
| 67 | .B cp1047 | |
| 4d3e9548 JL |
68 | are devices accepted by |
| 69 | .BR nroff | |
| 70 | to select the output encoding emitted by | |
| 92d0a6a6 JR |
71 | .BR grotty , |
| 72 | groff's TTY output device. | |
| 4d3e9548 JL |
73 | If neither the |
| 74 | .B GROFF_TYPESETTER | |
| 75 | environment variable nor the | |
| 76 | .B \-T | |
| 77 | command line option (which overrides the environment variable) | |
| 78 | specifies a (valid) device, | |
| 92d0a6a6 JR |
79 | .B @g@nroff |
| 80 | checks the current locale to select a default output device. | |
| 81 | It first tries the | |
| 82 | .B locale | |
| 83 | program, then the environment variables | |
| 84 | .BR LC_ALL , | |
| 85 | .BR LC_CTYPE , | |
| 86 | and | |
| 87 | .BR LANG , | |
| 88 | and finally the | |
| 89 | .B LESSCHARSET | |
| 90 | environment variable. | |
| 91 | .PP | |
| 92 | The | |
| 93 | .B \-h | |
| 94 | and | |
| 95 | .B \-c | |
| 96 | options | |
| 97 | are equivalent to | |
| 98 | .BR grotty 's | |
| 99 | options | |
| 100 | .B \-h | |
| 101 | (using tabs in the output) and | |
| 102 | .B \-c | |
| 103 | (using the old output scheme instead of SGR escape sequences). | |
| 104 | The | |
| 105 | .BR \-d , | |
| 106 | .BR \-C , | |
| 107 | .BR \-i , | |
| 465b256c | 108 | .BR \-M , |
| 92d0a6a6 JR |
109 | .BR \-m , |
| 110 | .BR \-n , | |
| 111 | .BR \-o , | |
| 4d3e9548 JL |
112 | .BR \-r , |
| 113 | .BR \-w , | |
| 92d0a6a6 | 114 | and |
| 4d3e9548 | 115 | .B \-W |
| 92d0a6a6 JR |
116 | options have the effect described in |
| 117 | .BR @g@troff (@MAN1EXT@). | |
| 118 | In addition, | |
| 119 | .B @g@nroff | |
| 120 | silently ignores the options | |
| 121 | .BR \-e , | |
| 122 | .BR \-q , | |
| 123 | and | |
| 124 | .BR \-s | |
| 125 | (which are not implemented in | |
| 126 | .BR @g@troff ). | |
| 4d3e9548 | 127 | Options |
| 92d0a6a6 JR |
128 | .B \-p |
| 129 | (pic), | |
| 130 | .B \-t | |
| 131 | (tbl), | |
| 132 | .B \-S | |
| 133 | (safer), and | |
| 134 | .B \-U | |
| 135 | (unsafe) are passed to | |
| 4d3e9548 | 136 | .BR groff . |
| 92d0a6a6 | 137 | .B \-v |
| 4d3e9548 JL |
138 | and |
| 139 | .B \-\-version | |
| 140 | show the version number, | |
| 141 | .B \-\-help | |
| 142 | prints a help message. | |
| 465b256c | 143 | . |
| 92d0a6a6 JR |
144 | .SH ENVIRONMENT |
| 145 | .TP | |
| 146 | .SM | |
| 4d3e9548 JL |
147 | .B GROFF_TYPESETTER |
| 148 | The default device for | |
| 149 | .BR groff . | |
| 150 | If not set (which is the normal case), it defaults to `ps'. | |
| 151 | . | |
| 152 | .TP | |
| 153 | .SM | |
| 92d0a6a6 JR |
154 | .B GROFF_BIN_PATH |
| 155 | A colon separated list of directories in which to search for the | |
| 156 | .B groff | |
| 157 | executable before searching in PATH. If unset, `@BINDIR@' is used. | |
| 4d3e9548 | 158 | . |
| 92d0a6a6 JR |
159 | .SH NOTES |
| 160 | This shell script is basically intended for use with | |
| 4d3e9548 | 161 | .BR man (1). |
| 92d0a6a6 JR |
162 | nroff-style character definitions (in the file tty-char.tmac) are also |
| 163 | loaded to emulate unrepresentable glyphs. | |
| 465b256c | 164 | . |
| 92d0a6a6 JR |
165 | .SH "SEE ALSO" |
| 166 | .BR groff (@MAN1EXT@), | |
| 167 | .BR @g@troff (@MAN1EXT@), | |
| 168 | .BR grotty (@MAN1EXT@) | |
| 169 | . | |
| 170 | .\" Local Variables: | |
| 171 | .\" mode: nroff | |
| 172 | .\" End: |