OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / gnumaniak / draft / man1 / fmt.1
1 .\" You may copy, distribute and modify under the terms of the LDP General
2 .\" Public License as specified in the LICENSE file that comes with the
3 .\" gnumaniak distribution
4 .\"
5 .\" The author kindly requests that no comments regarding the "better"
6 .\" suitability or up-to-date notices of any info documentation alternative
7 .\" is added without contacting him first.
8 .\"
9 .\" (C) 2002 Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
10 .\"
11 .\"     GNU fmt man page
12 .\"     man pages are NOT obsolete!
13 .\"     <ragnar@ragnar-hojland.com>
14 .\"
15 .\" Japanese Version Copyright (c) 2000 NAKANO Takeo all rights reserved.
16 .\" Translated Sun 12 Mar 2000 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
17 .\"
18 .TH FMT 1 "7 October 2002" "GNU textutils 2.1"
19 .\"O .SH NAME
20 .\"O \fBfmt\fR \- reformat paragraph text
21 .SH Ì¾Á°
22 fmt \- ¥Æ¥­¥¹¥È¤òÃÊÍî¤ËÀ°·Á¤¹¤ë
23 .\"O .SH SYNOPSIS
24 .SH ½ñ¼°
25 .B fmt
26 .RB [ \-ctsu "] [" -\fIWIDTH\fR "] [" "\-p \fIREFIX\fR" "] [" "\-w \fIWIDTH\fR" ]
27 .RB [ \-\-crown\-margin ]
28 .RB [ \-\-split\-only ]
29 .RB [ \-\-tagged\-paragraph ]
30 .RB [ \-\-uniform\-spacing ]
31 .RB [ "\-\-prefix=\fIPREFIX\fR" ] 
32 .RB [ "\-\-width=\fIWIDTH\fR" ]
33 .RI [ FILE... ]
34
35 .BR fmt " [" \-\-help "] [" \-\-version ]
36 .\"O .SH DESCRIPTION
37 .SH ÀâÌÀ
38 .\"O .B fmt
39 .\"O inserts and removes newlines to produce output lines of (at most) a
40 .\"O given number of characters (75 by default).  \fBfmt\fR reads from the
41 .\"O specified
42 .\"O .I FILE
43 .\"O arguments (or from standard input if none is given) and writes to standard
44 .\"O output.
45 .B fmt
46 ¤Ï¹Ô¤ò·ë¹ç¤·¤¿¤ê·ä´Ö¤òËä¤á¤¿¤ê¤·¤Æ¡¢
47 ½ÐÎϳƹԤòÍ¿¤¨¤é¤ì¤¿Ê¸»ú¿ô¤Ë·¤¨¤ë (Àµ³Î¤Ë¤Ï±Û¤¨¤Ê¤¤¤è¤¦¤Ë¤¹¤ë)¡£
48 ¥Ç¥Õ¥©¥ë¥È¤Ï 75 ·å¡£
49 .B fmt
50 ¤Ï
51 .I FILE
52 °ú¿ô (¥Õ¥¡¥¤¥ë¤¬°ì¤Ä¤â»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ïɸ½àÆþÎÏ) ¤«¤éÆɤߡ¢
53 ɸ½à½ÐÎϤ˽ñ¤¯¡£
54
55 .\"O By default, blank lines, spaces between words, and indentation are
56 .\"O preserved in the output; successive input lines with different
57 .\"O indentation are not joined; tabs are expanded on input and introduced on
58 .\"O output.
59 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¶õ¹Ô¡¦Ã±¸ì´Ö¤Î¥¹¥Ú¡¼¥¹¤Î¿ô¡¦¥¤¥ó¥Ç¥ó¥È¤Ï½ÐÎϤËÊݸ¤µ¤ì¤ë¡£
60 ¥¤¥ó¥Ç¥ó¥È¤Î°Û¤Ê¤ëϢ³¹Ô¤Ï·ë¹ç¤·¤Ê¤¤¡£¥¿¥Ö¤ÏÆþÎϤǰìÅÙ¥¹¥Ú¡¼¥¹¤ËÊÑ´¹¤µ¤ì¡¢
61 ½ÐÎϤÇÁÞÆþ¤µ¤ì¤ë¡£
62
63 .\"O \fBfmt\fR prefers breaking lines at the end of a sentence, and tries to
64 .\"O avoid line breaks after the first word of a sentence or before the last
65 .\"O word of a sentence.  A "sentence break" is defined as either the end of
66 .\"O a paragraph or a word ending in any of `.?!', followed by two spaces or
67 .\"O end of line, ignoring any intervening parentheses or quotes.  Like
68 .\"O \fBTeX\fR(1), \fBfmt\fR reads entire "paragraphs" before choosing line
69 .\"O breaks; the algorithm is a variant of that in "Breaking Paragraphs Into
70 .\"O Lines" (Donald E. Knuth and Michael F. Plass, Software--Practice and
71 .\"O Experience', 11 (1981), 1119-1184).
72 .B fmt
73 ¤Ïʸ¤ÎºÇ¸å¤Ç²þ¹Ô¤·¤è¤¦¤È¤¹¤ë¡£
74 ¤Þ¤¿Ê¸¤ÎºÇ½é¤Îñ¸ì¤Îľ¸å¤ä¡¢Ê¸¤ÎºÇ¸å¤Îñ¸ì¤ÎľÁ°¤Ç¤Î²þ¹Ô¤ÏÈò¤±¤è¤¦¤È¤¹¤ë¡£
75 ¡Öʸ¤Î¶èÀÚ¤ê¡×¤Ï¡¢ÃÊÍî¤ÎºÇ¸å¤«¡¢`.?!' ¤Î¤É¤ì¤«¤Ç½ª¤ï¤ëñ¸ì¤Ë
76 2 ¤Ä¤Î¥¹¥Ú¡¼¥¹¤Þ¤¿¤Ï³¤¤¤¿¤â¤Î¤È¤·¤ÆÄêµÁ¤µ¤ì¤ë¡£
77 ¤¿¤À¤·³ç¸Ì¤ä°úÍÑÉä¤ÎÆâÉô¤Ç¤Ïʸ¶èÀÚ¤ê¤È¤Ï¤ß¤Ê¤µ¤ì¤Ê¤¤¡£
78 .BR TeX (1)
79 ¤ÈƱ¤¸¤¯¡¢
80 .B fmt
81 ¤â¡ÖÃÊÍî¡×Á´ÂΤòÆɤ߹þ¤ó¤Ç¤«¤é²þ¹Ô°ÌÃÖ¤ò·è¤á¤ë¡£
82 ¤³¤Î¥¢¥ë¥´¥ê¥º¥à¤Ï¡¢
83 "Breaking Paragraphs into Lines"
84 (Donald E. Knuth and Michael F. Plass,
85 Software--Practice and Experience', 11 (1981) 1119-1184)
86 ¤ÇÄó°Æ¤µ¤ì¤¿¤â¤Î¤ò¤Á¤ç¤Ã¤ÈÊѹ¹¤·¤¿¤â¤Î¤Ç¤¢¤ë¡£
87 .\"O .SH OPTIONS
88 .SH ¥ª¥×¥·¥ç¥ó
89 .TP
90 .B \-c, \-\-crown\-margin
91 .\"O "Crown margin" mode: preserve the indentation of the first two
92 .\"O lines within a paragraph, and align the left margin of each
93 .\"O subsequent line with that of the second line.
94 ¥¯¥é¥¦¥ó¥Þ¡¼¥¸¥ó¥â¡¼¥É (crown margin mode)¡£
95 ÃÊÍî¤ÎºÇ½é¤ÎÆó¹Ô¤Î¥¤¥ó¥Ç¥ó¥È¤òÊݸ¤·¡¢
96 °ú¤­Â³¤¯¹Ô¤Îº¸¥Þ¡¼¥¸¥ó¤ò¤½¤ì¤¾¤ìÂèÆó¹Ô¤Î¤â¤Î¤Ë·¤¨¤ë¡£
97 .TP
98 .B \-p \fIPREFIX\fB, \-\-prefix=\fIPREFIX
99 .\"O Only lines beginning with \fIPREFIX\fR (possibly preceded by whitespace)
100 .\"O are subject to formatting. The \fIPREFIX\fR and any preceding whitespace
101 .\"O are stripped for the formatting and then re-attached to each
102 .\"O formatted output line.  One use is to format certain kinds of
103 .\"O program comments, while leaving the code unchanged.
104 .I PREFIX
105 ¤Ç»Ï¤Þ¤ë¹Ô (¥¹¥Ú¡¼¥¹¤¬Á°ÃÖ¤µ¤ì¤Æ¤¤¤Æ¤âÎɤ¤) ¤À¤±¤òºÆÇÛÃÖ¤¹¤ë¡£
106 .I PREFIX
107 (¤ÈÁ°ÃÖ¤µ¤ì¤ë¥¹¥Ú¡¼¥¹) ¤ÏÀ°·ÁÁ°¤Ë¤¤¤Ã¤¿¤óºï½ü¤µ¤ì¡¢
108 À°·Á¤µ¤ì¤¿½ÐÎϹԤ˺ƤÓÁÞÆþ¤µ¤ì¤ë¡£
109 ÍøÍÑË¡¤È¤·¤Æ¤Ï¡¢Î㤨¤Ð¤¢¤ë¼ï¤Î¥×¥í¥°¥é¥à¤Î¥³¥á¥ó¥È¤À¤±¤òÀ°·Á¤·¤Æ¡¢
110 ¥³¡¼¥ÉÉôʬ¤ÏÊѹ¹¤·¤¿¤¯¤Ê¤¤¾ì¹ç¤Ê¤É¤¬¹Í¤¨¤é¤ì¤ë¡£
111 .TP
112 .B \-s, \-\-split\-only
113 .\"O Split lines only.  Do not join short lines to form longer ones.
114 .\"O This prevents sample lines of code, and other such "formatted"
115 .\"O text from being unduly combined.
116 ¹Ôʬ³ä¤À¤±¤ò¹Ô¤¦¡£Ã»¤¤¹Ô¤ò·ë¹ç¤·¤ÆŤ¤¹Ô¤òÀ¸À®¤¹¤ëºî¶È¤ò¹Ô¤ï¤Ê¤¤¡£
117 ¥×¥í¥°¥é¥à¥³¡¼¥É¤Ê¤É¤Î¡ÖÀ°·ÁºÑ¤ß¡×¥Æ¥­¥¹¥È¤¬
118 ÉÔÀµ¤Ë·ë¹ç¤µ¤ì¤ë¤Î¤òÈò¤±¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
119 .TP
120 .B \-t, \-\-tagged\-margin
121 .\"O "Tagged paragraph" mode: like crown margin mode, except that if
122 .\"O indentation of the first line of a paragraph is the same as the
123 .\"O indentation of the second, the first line is treated as a one-line
124 .\"O paragraph.
125 ¥¿¥°ÉÕ¤­ÃÊÍî¥â¡¼¥É (tagged paragraph mode)¡£
126 ¥¯¥é¥¦¥ó¥â¡¼¥É¤È»÷¤Æ¤¤¤ë¤¬¡¢
127 ÃÊÍî¤ÎºÇ½é¤Î¹Ô¤Î¥¤¥ó¥Ç¥ó¥È¤ÏÂèÆó¹Ô¤Î¤â¤Î¤È¤Ï°Û¤Ê¤Ã¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
128 Ʊ¤¸¤Ç¤¢¤ë¾ì¹ç¤Ï¡¢ºÇ½é¤Î¹Ô¤Ï°ì¹Ô¤À¤±¤«¤é¤Ê¤ëÃÊÍî¤È¤ß¤Ê¤µ¤ì¤ë¡£
129 .TP       
130 .B \-u, \-\-uniform\-spacing
131 .\"O Uniform spacing.  Reduce spacing between words to one space, and
132 .\"O spacing between sentences to two spaces.               
133 °ìÍͤʥ¹¥Ú¡¼¥¹ÇÛÃÖ (uniform spacing)¡£
134 ñ¸ì´Ö¤Î¥¹¥Ú¡¼¥¹¤ò¥¹¥Ú¡¼¥¹Ê¸»ú¤Ò¤È¤Ä¤Ë¸º¤é¤¹¡£
135 ¤¿¤À¤·Ê¸¤Î´Ö¤Ë¤ÏÆó¤Ä¤Î¥¹¥Ú¡¼¥¹Ê¸»ú¤¬ÍѤ¤¤é¤ì¤ë¡£
136 .TP
137 .B \-\fIWIDTH\fB, \-w \fIWIDTH\fB, \-\-width=\fIWIDTH
138 .\"O Fill output lines up to \fIWIDTH\fR characters (default 75).  \fBfmt\fR
139 .\"O initially tries to make lines about 7% shorter than this, to give
140 .\"O it room to balance line lengths.
141 ½ÐÎϹԤò
142 .I WIDTH
143 ·å¤Þ¤ÇËä¤á¤è¤¦¤È¤¹¤ë (¥Ç¥Õ¥©¥ë¥È¤Ï 75)¡£
144 .B fmt
145 ¤Ï³Æ¹Ô¤ÎŤµ¤ò·¤¨¤ë¤¿¤á¤Î¶õ´Ö¤ò³ÎÊݤ¹¤ëÌÜŪ¤«¤é¡¢
146 ¤ª¤è¤½ 7% ¤Û¤É¹Ô¤òû¤¯¤¹¤ë·¹¸þ¤Ë¤¢¤ë¡£
147 .TP
148 .B "\-\-help"
149 .\"O Print a usage message on standard output and exit successfully.
150 ɸ½à½ÐÎϤ˻ÈÍÑÊýË¡¤Î¥á¥Ã¥»¡¼¥¸¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
151 .TP
152 .B "\-\-version"
153 .\"O Print version information on standard output then exit successfully.
154 ɸ½à½ÐÎϤ˥С¼¥¸¥ç¥ó¾ðÊó¤ò½ÐÎϤ·¤ÆÀµ¾ï½ªÎ»¤¹¤ë¡£
155 .\"O .SH NOTES
156 .SH Ãí°Õ
157 .\"O Report bugs to bug-textutils@gnu.org.
158 .\"O .br
159 .\"O Man page by Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com>
160 ¥×¥í¥°¥é¥à¤Î¥Ð¥°¤Ë¤Ä¤¤¤Æ¤Ï bug-textutils@gnu.org ¤ËÊó¹ð¤·¤Æ¤¯¤À¤µ¤¤¡£
161 .br
162 man ¥Ú¡¼¥¸¤Ï Ragnar Hojland Espinosa <ragnar@ragnar-hojland.com> ¤¬ºîÀ®¤·¤Þ¤·¤¿¡£
163