2 Copyright (C) 2000 Free Software Foundation, Inc.
4 Permission is granted to make and distribute verbatim copies of
5 this manual provided the copyright notice and this permission notice
6 are preserved on all copies.
8 Permission is granted to copy and distribute modified versions of this
9 manual under the conditions for verbatim copying, provided that the
10 entire resulting derived work is distributed under the terms of a
11 permission notice identical to this one.
13 Permission is granted to copy and distribute translations of this
14 manual into another language, under the above conditions for modified
15 versions, except that this permission notice may be included in
16 translations approved by the Free Software Foundation instead of in
25 .\" Like TP, but if specified indent is more than half
26 .\" the current line-length - indent, use the default indent.
29 .ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP
32 .\" Japanese Version Copyright (c) 2001 UCHIDA Norihiro all rights reserved.
33 .\" Translated Mon Apr 14 2001 by UCHIDA Norihiro <KY4N-UCD@asahi-net.or.jp>
34 .TH GRN 1 "8 April 2000" "Groff Version 1.16.1"
36 .\"O grn \- groff preprocessor for gremlin files
38 grn \- gremlin ¥Õ¥¡¥¤¥ëÍѤΠgroff ¥×¥ê¥×¥í¥»¥Ã¥µ
58 .\"O It is possible to have whitespace between a command line option and its
60 ¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤È¤½¤Î¥Ñ¥é¥á¡¼¥¿¤Î´Ö¤Ë¤Ï¶õÇò¤ò´Þ¤á¤ë¤³¤È¤¬¤Ç¤¤ë¡£
64 .\"O is a preprocessor for including
74 ¥½¡¼¥¹ÍѤΥץê¥×¥í¥»¥Ã¥µ¤Ç¤¢¤ë¡£
76 .\"O writes to standard output, processing only input lines between two that
86 ¤Ë¶´¤Þ¤ì¤¿¹Ô¤À¤±¤ò½èÍý¤·¤Æɸ½à½ÐÎϤ˽ÐÎϤ¹¤ë¡£
87 .\"O Those lines must contain
89 .\"O commands (see below).
90 ¤½¤ì¤¾¤ì¤Î¹Ô¤Ï¡¢¸å½Ò¤¹¤ë
92 ¥³¥Þ¥ó¥É¤ò´Þ¤ó¤Ç¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
93 .\"O These commands request a
95 .\"O file, and the picture in that file is
96 .\"O converted and placed in the
101 ¥Õ¥¡¥¤¥ë¤òÍ׵ᤷ¡¢¤½¤Î¥Õ¥¡¥¤¥ë¤Ë´Þ¤Þ¤ì¤ë²èÁü¤ÏÊÑ´¹¤µ¤ì¤Æ
103 ÆþÎÏ¥¹¥È¥ê¡¼¥à¤ØÁÞÆþ¤µ¤ì¤ë¡£
106 .\"O request may be followed by a C, L, or R to center, left, or right
107 .\"O justify the whole
109 .\"O picture (default justification is center).
111 ¥ê¥¯¥¨¥¹¥È¤Ë¤Ï C, L, R ¤Î¤É¤ì¤«¤ò³¤±¤ë¤³¤È¤¬¤Ç¤¤Æ¡¢¤½¤ì¤¾¤ì
113 ²èÁüÁ´ÂΤòÃæ±û¡¢º¸´ó¤»¡¢±¦´ó¤»¤ÈÇÛÃÖ¤¹¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë
114 (¥Ç¥Õ¥©¥ë¥È¤ÎÇÛÃÖ¤ÏÃæ±û¤Ç¤¢¤ë)¡£
117 .\"O is mentioned, the standard input is read.
119 ¤¬»ØÄꤵ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ï¡¢É¸½àÆþÎϤ¬Æɤ߹þ¤Þ¤ì¤ë¡£
120 .\"O At the end of the picture, the position on the page is the bottom of the
123 ²èÁü¤Î½èÍý¤¬½ªÎ»¤·¤¿¤È¤¤Ï¡¢¥Ú¡¼¥¸°ÌÃÖ¤Ï
128 .\"O entry is ended with
132 .\"O the position is left at the top of the picture.
138 ¤Ç½ªÎ»¤¹¤ë¾ì¹ç¤Ï¡¢¥Ú¡¼¥¸°ÌÃ֤ϲèÁü¤Îº¸¾å¤È¤Ê¤ë¡£
140 .\"O Please note that currently only the \-me macro package has support for
145 ¸½ºß¤Ï¡¢\-me ¥Þ¥¯¥í¥Ñ¥Ã¥±¡¼¥¸¤À¤±¤¬
149 ¤ò¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤Û¤·¤¤¡£
151 .\"O The following command-line options are understood:
152 °Ê²¼¤Î¥³¥Þ¥ó¥É¥é¥¤¥ó¥ª¥×¥·¥ç¥ó¤¬²ò¼á¤µ¤ì¤ë:
155 .\"O Prepare output for printer
157 .\"O The default device is
161 .\"O for acceptable devices.
164 ÍѤνÐÎϤòÀ¸À®¤¹¤ë¡£¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¥Ð¥¤¥¹¤Ï
167 »ØÄê¤Ç¤¤ë¥Ç¥Ð¥¤¥¹¤Ë¤Ä¤¤¤Æ¤Ï
172 .\"O Set the library to directory
176 .\"O file cannot be found in the current directory,
178 .\"O is prepended to the filename for a second try.
179 .\"O The default library directory is
180 .\"O .BR /usr/local/share/groff/tmac .
183 ¤ò¥é¥¤¥Ö¥é¥ê¥Ç¥£¥ì¥¯¥È¥ê¤ËÀßÄꤹ¤ë¡£
185 ¥Õ¥¡¥¤¥ë¤¬¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¸«¤Ä¤«¤é¤Ê¤¤¾ì¹ç¡¢
187 ¤ò¥Õ¥¡¥¤¥ë̾¤ËÁ°ÃÖ¤·¤ÆºÆ¸¡º÷¤¹¤ë¡£
188 ¥Ç¥Õ¥©¥ë¥È¤Î¥é¥¤¥Ö¥é¥ê¥Ç¥£¥ì¥¯¥È¥ê¤Ï
189 .B /usr/local/share/groff/tmac
195 .\"O for subdirectories
198 .\"O is the name of the device) for the
200 .\"O file before the normal
201 .\"O .BR /usr/local/share/groff/font .
206 ¤Ï¥Ç¥Ð¥¤¥¹Ì¾) ¥µ¥Ö¥Ç¥£¥ì¥¯¥È¥ê¤Î¸¡º÷¤ò¡¢Ä̾ï¤Î
207 .B /usr/local/share/groff/font
219 .\"O even when followed by a character other than space or newline.
220 ¥¹¥Ú¡¼¥¹¤ä²þ¹Ô°Ê³°¤Îʸ»ú¤¬¸å¤Ë³¤¯
229 .\"This switch causes the picture to be traversed twice:
230 .\"The first time, only the interiors of filled polygons (as borderless
231 .\"polygons) are printed.
232 .\"The second time, the outline is printed as a series of line segments.
233 .\"This way, postprocessors that overwrite rather than merge picture elements
234 .\"(such as Postscript) can still have text and graphics on a shaded
238 .\"O Print the version number.
239 ¥Ð¡¼¥¸¥ç¥óÈÖ¹æ¤ò½ÐÎϤ¹¤ë¡£
240 .\"O .SH GRN COMMANDS
242 .\"O Each input line between
252 ¤Ë¶´¤Þ¤ì¤¿¤½¤ì¤¾¤ì¤Î¹Ô¤Ï
254 ¥³¥Þ¥ó¥É¤ò´Þ¤ó¤Ç¤¤¤ë¡£
255 .\"O Commands consist of one or two strings separated by white space, the first
256 .\"O string being the command and the second its operand.
257 ¥³¥Þ¥ó¥É¤Ï¡¢¤Ò¤È¤Ä¤Îʸ»úÎ󡢤ޤ¿¤Ï¶õÇò¤Ç¶èÀÚ¤é¤ì¤¿¤Õ¤¿¤Ä¤Îʸ»úÎ󤫤é¤Ê¤ë¡£
258 ºÇ½é¤Îʸ»úÎ󤬥³¥Þ¥ó¥É¤Ç¤¢¤ê¡¢2 ÈÖÌܤϤ½¤Î¥ª¥Ú¥é¥ó¥É¤Ç¤¢¤ë¡£
259 .\"O Commands may be upper or lower case and abbreviated down to one character.
260 ¥³¥Þ¥ó¥É¤ÏÂçʸ»ú¾®Ê¸»ú¤Î¶èÊ̤Ϥʤ¯¡¢1 ʸ»ú¤Ë¾Êά¤µ¤ì¤ë¾ì¹ç¤â¤¢¤ë¡£
262 .\"O Commands that affect a picture's environment (those listed before
264 .\"O see below) are only in effect for the current picture:
265 ²èÁü¤Î´Ä¶¤Ë±Æ¶Á¤¹¤ë¥³¥Þ¥ó¥É (¤³¤ì¤é¤Ï¸å½Ò¤¹¤ë
267 °ÊÁ°¤Ëµ½Ò¤µ¤ì¤ë) ¤Ï¡¢¸½ºß¤Î²èÁü¤À¤±¤Ë¸ú²Ì¤ò¤ª¤è¤Ü¤¹¡£
268 .\"O The environment is reinitialized to the defaults at the start of the next
270 ´Ä¶¤Ï¼¡¤Î²èÁü¤Î³«»Ï»þ¤Ë¥Ç¥Õ¥©¥ë¥È¤ËºÆ½é´ü²½¤µ¤ì¤ë¡£
271 .\"O The commands are as follows:
272 ¥³¥Þ¥ó¥É¤Ë¤Ï°Ê²¼¤Î¤â¤Î¤¬¤¢¤ë:
283 .\"O text size number 1 (2, 3, or 4) to
286 .\"O The default is 12 (resp. 16, 24, and 36).
288 ¤Î¥Æ¥¥¹¥È¥µ¥¤¥ºÈÖ¹æ 1 (¤ª¤è¤Ó 2, 3, 4) ¤ò
291 ¥Ç¥Õ¥©¥ë¥È¤Ï¤½¤ì¤¾¤ì 12 (¤ª¤è¤Ó 16, 24, 36) ¥Ý¥¤¥ó¥È¤Ç¤¢¤ë¡£
300 .\"O Set the roman (italics, bold, or special) font to
304 .\"O (either a name or number).
305 .\"O The default is R (resp. I, B, and S).
306 ¥í¡¼¥Þ¥óÂÎ¥Õ¥©¥ó¥È (¤ª¤è¤Ó¥¤¥¿¥ê¥Ã¥¯¡¢¥Ü¡¼¥ë¥É¡¢¥¹¥Ú¥·¥ã¥ëÂÎ¥Õ¥©¥ó¥È)
314 ¥Ç¥Õ¥©¥ë¥È¤Ï R (¤ª¤è¤Ó¤½¤ì¤¾¤ì I, B, S) ¤Ç¤¢¤ë¡£
319 .\"O Set the stipple font to
323 .\"O (name or number).
324 ÅɤêÄÙ¤· (stipple) ¥Õ¥©¥ó¥È¤ò
333 .\"O may be abbreviated down as far as `st' (to avoid
338 ¤Î¾Êά·Á¤Ï `st' ¤È¤Ê¤ë
340 ¤È¤Îº®Æ±¤òÈò¤±¤ë¤¿¤á)¡£
343 .\"O default for stipples (unless one is set by the default command), and it is
344 .\"O illegal to include a
346 .\"O picture with polygons without specifying a
348 default ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ¤Ò¤È¤Ä¤ò»ØÄꤷ¤Ê¤¤¤«¤®¤ê¡¢stipple ¥Õ¥©¥ó¥È¤Î
349 ¥Ç¥Õ¥©¥ë¥È¤Ï̵¤¤¡£¤Þ¤¿¡¢stipple ¥Õ¥©¥ó¥È¤ò»ØÄꤷ¤Ê¤±¤ì¤Ð¥Ý¥ê¥´¥ó¤Î
351 ²èÁü¤ò´Þ¤á¤ë¤³¤È¤Ï¤Ç¤¤Ê¤¤¡£
356 .\"O Magnify the picture (in addition to any default magnification) by
358 .\"O a floating point number larger than zero.
361 .\"O may be abbreviated down to `sc'.
362 ¥Ç¥Õ¥©¥ë¥È¤Î³ÈÂçΨ¤Ë¤µ¤é¤ËÄɲ䷤ơ¢²èÁü¤ò
366 ¤Ï 0 ¤è¤êÂ礤¤ÉâÆ°¾®¿ôÅÀ¼Â¿ô¤Ç¤¢¤ë¡£
369 ¤Î¾Êά·Á¤Ï `sc' ¤È¤Ê¤ë¡£
376 .\"O Set the thickness of
378 .\"O narrow (resp. medium and thick) lines to
380 .\"O times 0.15pt (this value can be changed at compile time).
382 ¤ÎºÙÀþ (narrow)¡¢¤ª¤è¤ÓÉáÄÌÀþ (medium)¡¢ÂÀÀþ (thick) ¤ÎÂÀ¤µ¤ò
385 ÇܤËÀßÄꤹ¤ë¡£0.15 ¥Ý¥¤¥ó¥È¤È¤¤¤¦Ãͤϡ¢¥³¥ó¥Ñ¥¤¥ë»þ¤ËÊѹ¹¤¹¤ë¤³¤È¤¬¤Ç¤¤ë¡£
386 .\"O The default is 1.0 (resp. 3.0 and 5.0), which corresponds to 0.15pt
387 .\"O (resp. 0.45pt and 0.75pt).
388 .\"O A thickness value of zero selects the smallest available line thickness.
389 .\"O Negative values cause the line thickness to be proportional to the current
393 ¤ÎÃÍ¤Ï 1.0 (¤ª¤è¤Ó 3.0, 5.0) ¤Ç¤¢¤ê¡¢¤½¤ì¤¾¤ì 0.15 ¥Ý¥¤¥ó¥È (¤ª¤è¤Ó
394 0.45 ¥Ý¥¤¥ó¥È¡¢0.75 ¥Ý¥¤¥ó¥È) ¤ËÁêÅö¤¹¤ë¡£
395 0 ¤ò»ØÄꤹ¤ë¤È¡¢Í¸ú¤ÊÀþ¤ÎÂÀ¤µ¤Î¤¦¤Á¤Ç¤â¤Ã¤È¤â¾®¤µ¤¤Ãͤ¬ÁªÂò¤µ¤ì¤ë¡£
396 Éé¿ô¤ò»ØÄꤹ¤ë¤È¡¢¸½ºß¤Î¥Ý¥¤¥ó¥È¥µ¥¤¥º¤ËÈæÎ㤷¤¿Àþ¤ÎÂÀ¤µ¤È¤Ê¤ë¡£
398 .BI pointscale\ <off/on>
399 .\"O Scale text to match the picture.
400 ²èÁü¤Ë¤¢¤ï¤»¤Æ¥Æ¥¥¹¥È¤ÎÂ礤µ¤òÊѹ¹¤¹¤ë¡£
401 .\"O Gremlin text is usually printed in the point size specified with the
403 .\"O .BR 1 ,\ 2 ,\ 3 ,\ or\ 4
404 .\"O regardless of any scaling factors in the picture.
405 gremlin ¤Î¥Æ¥¥¹¥È¤Ï¡¢Ä̾ï¤Ï²èÁü¤Î¥¹¥±¡¼¥ê¥ó¥°Í×ÁǤ˴ط¸¤Ê¤¯¥³¥Þ¥ó¥É
407 ¤Ç»ØÄꤵ¤ì¤¿¥Ý¥¤¥ó¥È¥µ¥¤¥º¤Ç½ÐÎϤµ¤ì¤ë¡£
410 .\"O will cause the point sizes to scale with the picture (within
412 .\"O limitations, of course).
414 ¤ò»ØÄꤹ¤ë¤È¡¢²èÁü¤Ë¤¢¤ï¤»¤¿¥Ý¥¤¥ó¥È¥µ¥¤¥º¤Ë¤Ê¤ë (ÅöÁ³¡¢
416 ¤ÎÀ©¸Â¤ÎÈÏ°ÏÆâ¤Ë¸ÂÄꤵ¤ì¤ë)¡£
417 .\"O An operand of anything but
419 .\"O will turn text scaling on.
421 °Ê³°¤Î°ú¤¿ô¤Ë¤è¤Ã¤Æ¥Æ¥¥¹¥È¤Î¥¹¥±¡¼¥ê¥ó¥°¤¬Í¸ú¤Ë¤Ê¤ë¡£
424 .\"O Reset the picture environment defaults to the settings in the current
426 ¸½ºß¤Î²èÁü¤ÎÀßÄê¤ò¡¢²èÁü´Ä¶¤Î¥Ç¥Õ¥©¥ë¥È¤ËºÆÀßÄꤹ¤ë¡£
427 .\"O This is meant to be used as a global parameter setting mechanism at the
428 .\"O beginning of the
430 .\"O input file, but can be used at any time to reset the
431 .\"O default settings.
434 ÆþÎÏ¥Õ¥¡¥¤¥ë¤Î³«»Ï»þ¤Ë¤ª¤±¤ë¥°¥í¡¼¥Ð¥ë¤Ê¥Ñ¥é¥á¡¼¥¿ÀßÄê½èÍý¤¬ÍѤ¤¤é¤ì¤ë
435 ¤³¤È¤ò°ÕÌ£¤¹¤ë¤¬¡¢¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤ò¥ê¥»¥Ã¥È¤¹¤ë¤È¤¤Ë¤Ï¤¤¤Ä¤Ç¤â»ÈÍѤǤ¤ë¡£
438 .\"O Forces the picture to be
444 .\"O This overrides any scaling factors present in the same picture.
445 ¤³¤Î¥³¥Þ¥ó¥É¤ÏƱ¤¸²èÁü¤ËÂФ¹¤ë¾¤Î¥¹¥±¡¼¥ê¥ó¥°Í×ÁǤλØÄê¤è¤êÍ¥À褵¤ì¤ë¡£
449 ¤È¤¤¤¦»ØÄê¤Ï̵»ë¤µ¤ì¤ë¡£
452 .\"O Forces picture to be
454 .\"O inches high, overriding other scaling factors.
457 ¥¤¥ó¥Á¤Ë¤¹¤ë¡£Â¾¤Î¥¹¥±¡¼¥ê¥ó¥°Í×ÁǤè¤êÍ¥À褵¤ì¤ë¡£
458 .\"O If both `width' and `height' are specified the tighter constraint will
459 .\"O determine the scale of the picture.
460 `width' ¤È `height' ¤òξÊý»ØÄꤹ¤ë¤È¡¢²èÁü¤Î¥¹¥±¡¼¥ë¤Î»ØÄê¤È¤·¤Æ
461 ¤è¤ê¸·Ì©¤Ê¤â¤Î¤È¤Ê¤ë¡£
465 .\"O commands are not saved with a
473 ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤ÆÊݸ¤µ¤ì¤Ê¤¤¡£
474 .\"O They will, however, affect point size scaling if that option is set.
475 ¤·¤«¤·¡¢¤³¤ì¤é¤Ï»ØÄꤵ¤ì¤¿¤È¤¤Ë¥Ý¥¤¥ó¥È¥µ¥¤¥º¤Î¥¹¥±¡¼¥ê¥ó¥°¤Ë±Æ¶Á¤¹¤ë¡£
478 .\"O Get picture from
482 .\"O located the current directory (or in the library directory; see the
485 ¥«¥ì¥ó¥È¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤¢¤ë
489 ¥Õ¥¡¥¤¥ë¤«¤é²èÁü¤ò¼èÆÀ¤¹¤ë (¤Þ¤¿¤Ï¡¢¥é¥¤¥Ö¥é¥ê¥Ç¥£¥ì¥¯¥È¥ê¤«¤é¼èÆÀ¤¹¤ë;
495 .\"O commands are given, the second one overrides the first.
497 ¥³¥Þ¥ó¥É¤¬¤Õ¤¿¤Ä»ØÄꤵ¤ì¤¿¾ì¹ç¤Ï¡¢2 ÈÖÌܤΤâ¤Î¤¬Í¥À褵¤ì¤ë¡£
500 .\"O doesn't exist, an error message is reported and processing continues from
505 ¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¡¢¥¨¥é¡¼¥á¥Ã¥»¡¼¥¸¤¬½ÐÎϤµ¤ì¡¢½èÍý¤Ï
508 .\"O .SH NOTES ABOUT GROFF
509 .SH groff ¤Ë¤Ä¤¤¤Æ¤ÎÃí°Õ
512 .\"O is a preprocessor, it doesn't know about current indents, point sizes,
513 .\"O margins, number registers, etc.
515 ¤Ï¥×¥ê¥×¥í¥»¥Ã¥µ¤Ç¤¢¤ë¤Î¤Ç¡¢¸½ºß¤Î¥¤¥ó¥Ç¥ó¥ÈÎ̤ä¥Ý¥¤¥ó¥È¥µ¥¤¥º¡¢
516 ¥Þ¡¼¥¸¥óÎÌ¡¢¿ôÃͥ쥸¥¹¥¿¤Ê¤É¤Ï¼èÆÀ¤Ç¤¤Ê¤¤¡£
517 .\"O Consequently, no
519 .\"O input can be placed between the
530 ¥½¡¼¥¹¤ÏÇÛÃ֤Ǥ¤Ê¤¤¡£
533 .\"O text is now processed by
535 .\"O so anything legal in a single line of
537 .\"O input is legal in a line of
539 .\"O text (barring `.' directives at the beginning of a line).
546 ¥½¡¼¥¹¤È¤·¤ÆÀµ¤·¤¤ 1 ¹Ô¤Ï
548 ¥Æ¥¥¹¥È¤È¤·¤Æ¤âÀµ¤·¤¤¤â¤Î¤È¤Ê¤ë (¹ÔƬ¤Ë `.' ¥Ç¥£¥ì¥¯¥Æ¥£¥Ö¤¬¤Ê¤¤¾ì¹ç)¡£
549 .\"O Thus, it is possible to have equations within a
551 .\"O figure by including in the
555 .\"O expressions enclosed by previously defined delimiters (e.g.
561 ¿Þ·ÁÃæ¤Ë¿ô¼°¤ò´Þ¤á¤ë¤³¤È¤¬¤Ç¤¤ë¡£
564 ¤Ï¡¢¤¢¤é¤«¤¸¤áÄêµÁ¤·¤¿¶èÀÚ¤êʸ»ú¤Ç³ç¤é¤ì¤ë (¤¿¤È¤¨¤Ð
570 .\"O along with other preprocessors, it is best to run
577 .\"O to avoid overworking
579 ¤Û¤«¤Î¥×¥ê¥×¥í¥»¥Ã¥µ¤È°ì½ï¤Ë
589 ¤Î;·×¤Ê»Å»ö¤òÈò¤±¤ë¤³¤È¤¬Ë¾¤Þ¤·¤¤¡£
591 .\"O should always be run last.
593 ¤Ï¾ï¤ËºÇ¸å¤Ë¼Â¹Ô¤¹¤Ù¤¤Ç¤¢¤ë¡£
595 .\"O A picture is considered an entity, but that doesn't stop
597 .\"O from trying to break it up if it falls off the end of a page.
598 ²èÁü¤¬¥Ú¡¼¥¸¤Î½ª¤ê¤«¤é¤Ï¤ß¤À¤·¤¿¤È¤¤Ï¡¢²èÁü¤Ï¤Ò¤È¤Ä¤Ç¤¢¤ë¤È¸«¤Ê¤µ¤ì¤Æ
601 ¤¬Ê¬³ä¤·¤Æ¤·¤Þ¤¦¤³¤È¤ò»ß¤á¤ë¤³¤È¤¬¤Ç¤¤Ê¤¤¡£
602 .\"O Placing the picture between `keeps' in \-me macros will ensure proper
604 \-me ¥Þ¥¯¥í¤Ë¤¢¤ë `keeps' ¤Î´Ö¤Ë²èÁü¤òÇÛÃÖ¤¹¤ë¤³¤È¤Ë¤è¤Ã¤Æ¡¢
605 ËÜÍè¤Î²èÁü°ÌÃÖ¤òÊݾڤǤ¤ë¡£
610 .\"O number registers
614 .\"O and sets registers
618 .\"O to the width and height of the
620 .\"O figure (in device units) before entering the
622 .\"O request (this is for those who want to rewrite these macros).
630 ¤Þ¤Ç¤ò»ÈÍѤ·¡¢¤³¤Î¤¦¤Á
636 ¥ê¥¯¥¨¥¹¥È¤ò¼Â¹Ô¤¹¤ëÁ°¤Ë¤½¤ì¤¾¤ì
638 ¿Þ·Á¤ÎÉý¤È¹â¤µ¤¬ (¥Ç¥Ð¥¤¥¹Ã±°Ì) ¤ÇÀßÄꤵ¤ì¤ë¡£
639 ¤³¤ì¤é¤Î¥Þ¥¯¥í¤ò½ñ¤´¹¤¨¤¿¤¤¤È¤¤Ë»ÈÍѤǤ¤ë¡£
640 .\"O .SH GREMLIN FILE FORMAT
641 .SH gremlin ¥Õ¥¡¥¤¥ë¥Õ¥©¡¼¥Þ¥Ã¥È
642 .\"O There exist two distinct
644 .\"O file formats, the original format from the
646 .\"O graphic terminal version, and the
652 ¥Õ¥¡¥¤¥ë¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¤Ï 2 ¼ïÎà¤Î°Û¤Ê¤ë·Á¼°¤¬¤¢¤ë¡£
655 ¥°¥é¥Õ¥£¥Ã¥¯¥¿¡¼¥ß¥Ê¥ë¤Î·Á¼°¡¢¤â¤¦¤Ò¤È¤Ä¤Ï
659 ·Á¼°¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ç¤¢¤ë¡£
660 .\"O An extension to the
662 .\"O version allowing reference points with negative coordinates is
664 .\"O compatible with the
668 ·Á¼°¤Ç¤ÏÉé¤ÎºÂɸ°ÌÃÖ¤ò»²¾È¤Ç¤¤ë¤è¤¦¤Ë³ÈÄ¥¤µ¤ì¤Æ¤¤¤ë¤¬¡¢¤³¤ì¤Ï
674 .\"O file does not contain negative coordinates, either format will be read
675 .\"O correctly by either version of
680 ¥Õ¥¡¥¤¥ë¤¬Éé¤ÎºÂɸ¤ò´Þ¤ó¤Ç¤¤¤Ê¤¤¤«¤®¤ê¡¢¤É¤Á¤é¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤â
681 ¤½¤ì¤¾¤ì¤Î¥Ð¡¼¥¸¥ç¥ó¤Î
685 ¤ÇÀµ¤·¤¯Æɤळ¤È¤¬¤Ç¤ë¡£
686 .\"O The other difference to the
688 .\"O format is the use of names for picture objects (e.g., POLYGON, CURVE)
689 .\"O instead of numbers.
692 ·Á¼°¤Ç¤Ï²èÁü¥ª¥Ö¥¸¥§¥¯¥È¤Ë¿ôÃͤΤ«¤ï¤ê¤Ë̾Á°¤ò»ÈÍѤǤ¤ë
693 (¤¿¤È¤¨¤Ð¡¢POLYGON, CURVE ¤Ê¤É)¡£
694 .\"O Files representing the same picture are shown in Table 1 in each format.
695 ¤½¤ì¤¾¤ì¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤ÇƱ¤¸²èÁü¤òɽ¸½¤·¤¿¤â¤Î¤òɽ 1 ¤Ë¼¨¤¹¡£
701 sungremlinfile@@gremlinfile
702 0 240.00 128.00@@0 240.00 128.00
704 240.00 128.00@@240.00 128.00
705 185.00 120.00@@185.00 120.00
706 240.00 120.00@@240.00 120.00
707 296.00 120.00@@296.00 120.00
710 10 A Triangle@@10 A Triangle
712 224.00 416.00@@224.00 416.00
713 96.00 160.00@@96.00 160.00
714 384.00 160.00@@384.00 160.00
722 .\"O Table 1. File examples
728 .\"O The first line of each
730 .\"O file contains either the string
734 .\"O .B sungremlinfile
735 .\"O .RI ( SUN / X11 )
738 ¥Õ¥¡¥¤¥ë¤ÎºÇ½é¤Î¹Ô¤Ï¡¢Ê¸»úÎó
746 .\"O The second line of the file contains an orientation, and
750 .\"O values for a positioning point, separated by spaces.
751 2 ¹ÔÌܤϡ¢²èÁüÊý¸þ¤ª¤è¤ÓºÂɸ°ÌÃÖ¤Î
755 ¤ÎÃͤò¤½¤ì¤¾¤ì¶õÇò¤Ç¶èÀڤäƻØÄꤹ¤ë¡£
756 .\"O The orientation, either
760 .\"O is ignored by the
764 .RB ( 0 ¤Þ¤¿¤Ï 1 ¤ÎÃͤò¤È¤ë)
767 ¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï̵»ë¤µ¤ì¤ë¡£
771 .\"O will display things in horizontal format (drawing area wider than it is
772 .\"O tall, with menu across top).
776 ¤ò²£Êý¸þ¤Ëɽ¼¨¤¹¤ë (ɽ¼¨Îΰè¤Ï¡¢Éý¤¬¹â¤µ¤è¤êŤ¯¤Ê¤ê¡¢¥á¥Ë¥å¡¼¤Ï¾åÉô¤Ë¤¯¤ë)¡£
780 .\"O will display things in vertical format (drawing area taller than it is wide,
781 .\"O with menu on left side).
785 ¤ò½ÄÊý¸þ¤Ëɽ¼¨¤¹¤ë (ɽ¼¨Îΰè¤Ï¡¢¹â¤µ¤¬Éý¤è¤êŤ¯¤Ê¤ê¡¢¥á¥Ë¥å¡¼¤Ïº¸Â¦¤Ë¤¯¤ë)¡£
789 .\"O are floating point values giving a positioning point to be used when this
790 .\"O file is read into another file.
794 ¤ÏÉâÆ°¾®¿ôÅÀ¼Â¿ô¤Ç¡¢¤³¤Î¥Õ¥¡¥¤¥ë¤¬Ê̤Υե¡¥¤¥ë¤«¤éÆɤ߹þ¤Þ¤ì¤¿¤È¤¤Ë»ÈÍѤµ¤ì¤ë
796 .\"O The stuff on this line really isn't all that important; a value of ``1 0.00
797 .\"O 0.00'' is suggested.
798 ¤³¤Î¹Ô¤ÎÍ×ÁǤϤɤì¤â¤µ¤Û¤É½ÅÍפǤϤʤ¤¤Î¤Ç¡¢
799 ``1 0.00 0.00'' ¤È¤¤¤¦Ãͤˤ·¤Æ¤ª¤±¤Ð¤è¤¤¡£
801 .\"O The rest of the file consists of zero or more element specifications.
802 .\"O After the last element specification is a line containing the string ``-1''.
803 ¥Õ¥¡¥¤¥ë¤Î»Ä¤ê¤ÏÍ×ÁÇ»ÅÍͤ¬µ½Ò¤µ¤ì¤ë¡£
804 ºÇ¸å¤ÎÍ×ÁÇ»ÅÍͤμ¡¤Ï¡¢Ê¸»úÎó ``-1'' ¤È¤¤¤¦¹Ô¤Ë¤Ê¤ë¡£
805 .\"O .SH ELEMENT SPECIFICATIONS
808 .\"O The first line of each element contains a single decimal number giving the
809 .\"O type of the element
811 .\"O version) or its ASCII name
814 ¤½¤ì¤¾¤ì¤ÎÍ×ÁǤκǽé¤Î¹Ô¤Ï¡¢Í×ÁǤΥ¿¥¤¥×¤ò°ÕÌ£¤¹¤ë¿ôÃÍ
828 .\"O \fIgremlin\fP File Format \(mi Object Type Specification
829 \fIgremlin\fP ¥Õ¥¡¥¤¥ë¥Õ¥©¡¼¥Þ¥Ã¥È \(mi ¥ª¥Ö¥¸¥§¥¯¥È¥¿¥¤¥×»ØÄê
831 .\"O \fIAED\fP Number@\fISUN\fP/\fIX11\fP Name@Description
832 \fIAED\fP ¿ôÃÍ@\fISUN\fP/\fIX11\fP ̾Á°@ÀâÌÀ
833 .\"O 0@BOTLEFT@bottom-left-justified text
834 .\"O 1@BOTRIGHT@bottom-right-justified text
835 .\"O 2@CENTCENT@center-justified text
839 .\"O 6@POLYGON@polygon
840 .\"O 10@TOPLEFT@top-left-justified text
841 .\"O 11@TOPCENT@top-center-justified text
842 .\"O 12@TOPRIGHT@top-right-justified text
843 .\"O 13@CENTLEFT@left-center-justified text
844 .\"O 14@CENTRIGHT@right-center-justified text
845 .\"O 15@BOTCENT@bottom-center-justified text
846 0@BOTLEFT@²¼Êýº¸´ó¤»¤Î¥Æ¥¥¹¥È
847 1@BOTRIGHT@²¼Êý±¦´ó¤»¤Î¥Æ¥¥¹¥È
848 2@CENTCENT@Ãæ±û´ó¤»¤Î¥Æ¥¥¹¥È
853 10@TOPLEFT@¾åÊýº¸´ó¤»¤Î¥Æ¥¥¹¥È
854 11@TOPCENT@¾åÊýÃæ¿´´ó¤»¤Î¥Æ¥¥¹¥È
855 12@TOPRIGHT@¾åÊý±¦´ó¤»¤Î¥Æ¥¥¹¥È
856 13@CENTLEFT@Ãæ±ûº¸´ó¤»¤Î¥Æ¥¥¹¥È
857 14@CENTRIGHT@Ãæ±û±¦´ó¤»¤Î¥Æ¥¥¹¥È
858 15@BOTCENT@²¼ÊýÃæ±û´ó¤»¤Î¥Æ¥¥¹¥È
863 .\"O Type Specifications in \fIgremlin\fP Files
865 \fIgremlin\fP ¥Õ¥¡¥¤¥ë¤Î¥¿¥¤¥×»ØÄê
870 .\"O After the object type comes a variable number of lines, each specifying a
871 .\"O point used to display the element.
872 ¥ª¥Ö¥¸¥§¥¯¥È¥¿¥¤¥×¤Î¤¢¤È¤Ë¤Ï¡¢Í×ÁǤ¬É½¼¨¤µ¤ì¤ëºÂɸ¤ò»ØÄꤹ¤ë¹Ô¤¬Â³¤¯¡£
873 .\"O Each line contains an x-coordinate and a y-coordinate in floating point
874 .\"O format, separated by spaces.
875 ¤½¤ì¤¾¤ì¤Î¹Ô¤Ë¤Ï X ºÂɸ¤È Y ºÂɸ¤¬ÉâÆ°¾®¿ôÅÀ¼Â¿ô·Á¼°¤Ç¡¢
876 ¶õÇò¤Ç¶èÀÚ¤é¤ì¤Æ»ØÄꤵ¤ì¤ë¡£
877 .\"O The list of points is terminated by a line containing the string ``-1.0
880 .\"O version) or a single asterisk, ``*''
883 ºÂɸ¤Î¥ê¥¹¥È¤Î½ªÃ¼¤Ï¡¢Ê¸»úÎó ``-1.0 -1.0''
885 ·Á¼°) ¤È¤¤¤¦¹Ô¤«¡¢Ã±°ì¤Î¥¢¥¹¥¿¥ê¥¹¥¯ ``*''
889 .\"O After the points comes a line containing two decimal values, giving the
890 .\"O brush and size for the element.
891 ºÂɸ¤Î¼¡¤Ë¤Ï¡¢¤Õ¤¿¤Ä¤Î 10 ¿Ê¿ôÃͤò´Þ¤à¹Ô¤¬¤¯¤ë¡£
892 ¤³¤ì¤é¤Ï¡¢Í×ÁǤΥ֥饷¤È¥µ¥¤¥º¤ò»ØÄꤷ¤Æ¤¤¤ë¡£
893 .\"O The brush determines the style in which things are drawn.
894 ¥Ö¥é¥·¤Ï¥ª¥Ö¥¸¥§¥¯¥È¤¬ÉÁ²è¤µ¤ì¤ë¤È¤¤Î¥¹¥¿¥¤¥ë¤ò·èÄꤹ¤ë¡£
895 .\"O For vectors, arcs, and curves there are six legal brush values:
896 ¥Ù¥¯¥È¥ë¡¢¸Ì¡¢¶ÊÀþ¤Ï¼¡¤Î 6 ¼ïÎà¤Î¥Ö¥é¥·¤ÎÃͤò¤È¤ë¤³¤È¤¬¤Ç¤¤ë:
902 .\"O 1 \(mi@@thin dotted lines
903 .\"O 2 \(mi@@thin dot-dashed lines
904 .\"O 3 \(mi@@thick solid lines
905 .\"O 4 \(mi@@thin dashed lines
906 .\"O 5 \(mi@@thin solid lines
907 .\"O 6 \(mi@@medium solid lines
908 1 \(mi@@ºÙ¤¤ÅÀÀþ (dotted lines)
909 2 \(mi@@ºÙ¤¤°ìÅÀÇËÀþ (dot-dashed lines)
910 3 \(mi@@ÂÀ¤¤¼ÂÀþ (solid lines)
911 4 \(mi@@ÂÀ¤¤ÇËÀþ (dashed lines)
912 5 \(mi@@ÂÀ¤¤¼ÂÀþ (solid lines)
913 6 \(mi@@ÉáÄ̤μÂÀþ (solid lines)
917 .\"O For polygons, one more value, 0, is legal.
918 ¥Ý¥ê¥´¥ó¤Ç¤Ï¡¢¤Ò¤È¤ÄÄɲ䵤ì¤Æ 0 ¤È¤¤¤¦Ãͤ¬Í¸ú¤Ç¤¢¤ë¡£
919 .\"O It specifies a polygon with an invisible border.
920 ¤³¤ì¤Ï¡¢ÉԲĻë¤Î¶³¦¤ò°ÕÌ£¤¹¤ë¡£
921 .\"O For text, the brush selects a font as follows:
922 ¥Æ¥¥¹¥È¤Ç¤Ï¡¢¥Ö¥é¥·¤ÎÁªÂò¤Ï°Ê²¼¤Î¥Õ¥©¥ó¥È¤ò°ÕÌ£¤¹¤ë:
928 .\"O 1 \(mi@@roman (R font in groff)
929 .\"O 2 \(mi@@italics (I font in groff)
930 .\"O 3 \(mi@@bold (B font in groff)
931 .\"O 4 \(mi@@special (S font in groff)
932 1 \(mi@@¥í¡¼¥Þ¥óÂÎ (groff ¤Î R ¥Õ¥©¥ó¥È)
933 2 \(mi@@¥¤¥¿¥ê¥Ã¥¯ÂÎ (groff ¤Î I ¥Õ¥©¥ó¥È)
934 3 \(mi@@¥Ü¡¼¥ë¥ÉÂÎ (groff ¤Î B ¥Õ¥©¥ó¥È)
935 4 \(mi@@¥¹¥Ú¥·¥ã¥ëÂÎ (groff ¤Î S ¥Õ¥©¥ó¥È)
941 .\"O to run your pictures through
943 .\"O the font is really just a starting font:
947 ¤Ç²èÁü¤ò½èÍý¤·¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¥Õ¥©¥ó¥È»ØÄê¤Ï½é´ü¾õÂ֤λØÄê¤È¤Ê¤ë:
948 .\"O The text string can contain formatting sequences like
952 .\"O which may change the font (as well as do many other things).
953 ¥Æ¥¥¹¥Èʸ»úÎó¤Ë¤Ï¡¢``\\fI'' ¤ä ``\\d'' ¤È¤¤¤Ã¤¿¥Õ¥©¥ó¥È¤òÊѹ¹¤¹¤ë
954 ¥Õ¥©¡¼¥Þ¥Ã¥È¥·¡¼¥±¥ó¥¹¤ò´Þ¤á¤ë¤³¤È¤¬¤Ç¤¤ë (¾¤Î¤â¤Î¤âƱÍÍ)¡£
955 .\"O For text, the size field is a decimal value between 1 and 4.
956 ¥Æ¥¥¹¥È¤Ç¤Ï¡¢¥µ¥¤¥º¤Î»ØÄê¤Ï 1 ¤«¤é 4 ¤Þ¤Ç¤Î 10 ¿Ê¿ôÃͤǤ¢¤ë¡£
957 .\"O It selects the size of the font in which the text will be drawn.
958 ¤³¤ì¤Ï¡¢¥Æ¥¥¹¥È¤¬ÉÁ²è¤µ¤ì¤ë¤È¤¤Î¥Õ¥©¥ó¥È¥µ¥¤¥º¤ò°ÕÌ£¤¹¤ë¡£
959 .\"O For polygons, this size field is interpreted as a stipple number to fill the
961 ¥Ý¥ê¥´¥ó¤Ç¤Ï¡¢¤³¤Î¥µ¥¤¥º»ØÄê¤Ï¥Ý¥ê¥´¥ó¤ÎÅɤêÄÙ¤·ÊýË¡¤ò»ØÄꤹ¤ëÃͤȤ·¤Æ
963 .\"O The number is used to index into a stipple font at print time.
964 ¿ôÃͤϽÐÎÏ»þ¤Î stipple ¥Õ¥©¥ó¥È¤Î¥¤¥ó¥Ç¥Ã¥¯¥¹¤¬»ÈÍѤµ¤ì¤ë¡£
966 .\"O The last line of each element contains a decimal number and a string of
967 .\"O characters, separated by a single space.
968 ¤½¤ì¤¾¤ì¤ÎÍ×ÁǤκǸå¤Î¹Ô¤Ï¡¢¤Ò¤È¤Ä¤Î¶õÇò¤Ç¶èÀÚ¤é¤ì¤¿ 10 ¿Ê¿ôÃͤÈʸ»úÎó¤È¤Ê¤ë¡£
969 .\"O The number is a count of the number of characters in the string.
970 ¿ôÃͤÏʸ»úÎóÃæ¤Îʸ»ú¿ô¤ò¼¨¤¹¡£
971 .\"O This information is only used for text elements, and contains the text
973 ¤³¤Î¾ðÊó¤Ï¥Æ¥¥¹¥ÈÍ×ÁǤȥƥ¥¹¥Èʸ»úÎó¤ò´Þ¤àÍ×ÁǤÀ¤±¤Ë»È¤ï¤ì¤ë¡£
974 .\"O There can be spaces inside the text.
975 ¥Æ¥¥¹¥ÈÃæ¤Ë¤Ï¶õÇò¤ò´Þ¤á¤ë¤³¤È¤¬¤Ç¤¤ë¡£
976 .\"O For arcs, curves, and vectors, this line of the element contains the string
978 ¸Ì¤ä¶ÊÀþ¡¢¥Ù¥¯¥È¥ë¤Ç¤Ï¡¢¤³¤Î¹Ô¤Ë¤Ïʸ»úÎó ``0'' ¤¬»ØÄꤵ¤ì¤ë¡£
979 .\"O .SH NOTES ON COORDINATES
982 .\"O was designed for
984 .\"O and its coordinates reflect the
986 .\"O coordinate space.
990 ÍѤËÀ߷פµ¤ì¤¿¤Î¤Ç¡¢¤½¤ÎºÂɸ¤Ï
992 ¤ÎºÂɸ¶õ´Ö¤òÈ¿±Ç¤·¤Æ¤¤¤ë¡£
993 .\"O For vertical pictures, x-values range 116 to 511, and y-values from 0 to
995 ½ÄÊý¸þ¤Î²èÁü¤Ç¤Ï¡¢X ¤ÎÃÍ¤Ï 116 ¤«¤é 511 ¤Þ¤Ç¤ÎÈϰϤǤ¢¤ê¡¢Y ¤ÎÃͤÏ
996 0 ¤«¤é 483 ¤ÎÈϰϤǤ¢¤ë¡£
997 .\"O For horizontal pictures, x-values range from 0 to 511 and y-values range
999 ²£Êý¸þ¤Î²èÁü¤Ç¤Ï¡¢X ¤ÎÃÍ¤Ï 0 ¤«¤é 511 ¤ÎÈϰϤǤ¢¤ê¡¢Y ¤ÎÃͤÏ
1000 0 ¤«¤é 367 ¤ÎÈϰϤǤ¢¤ë¡£
1001 .\"O Although you needn't absolutely stick to this range, you'll get best results
1002 .\"O if you at least stay in this vicinity.
1003 ¤³¤ÎÈϰϤòÀäÂФ˼é¤é¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¤ï¤±¤Ç¤Ï¤Ê¤¤¤¬¡¢
1004 ºÇÎɤηë²Ì¤òÆÀ¤ë¤Ë¤Ï¤¹¤¯¤Ê¤¯¤È¤â¤³¤Î¶áÊդˤª¤µ¤á¤¿Êý¤¬Îɤ¤¡£
1005 .\"O Also, point lists are terminated by a point of (-1, -1), so you shouldn't
1006 .\"O ever use negative coordinates.
1007 ºÂɸ¤Î¥ê¥¹¥È¤Ï (-1, -1) ¤ÎºÂɸ¤Ç½ªÃ¼¤¹¤ë¤¿¤á¡¢Éé¤ÎºÂɸ°ÌÃ֤ϻÈÍѤǤ¤Ê¤¤¡£
1009 .\"O writes out coordinates using format ``%f1.2''; it's probably a good idea to
1010 .\"O use the same format if you want to modify the
1014 ¤ÏºÂɸ¤Î½ÐÎÏ¤Ë ``%f1.2'' ¤È¤¤¤¦¥Õ¥©¡¼¥Þ¥Ã¥È¤òÍѤ¤¤Æ¤¤¤ë¤Î¤Ç¡¢
1016 ¤Î¥³¡¼¥É¤òÊѹ¹¤·¤¿¤¤¤È¤¤Ë¤ÏƱ¤¸¥Õ¥©¡¼¥Þ¥Ã¥È¤òÍѤ¤¤ë¤Î¤¬Îɤ¤¤À¤í¤¦¡£
1017 .\"O .SH NOTES ON SUN/X11 COORDINATES
1018 .SH SUN/X11 ºÂɸ¤Ë´Ø¤¹¤ëÃí°Õ
1019 .\"O There is no longer a restriction on the range of coordinates used to create
1027 ¤ÇÀ¸À®¤·¤¿¥ª¥Ö¥¸¥§¥¯¥È¤Ë¤Ï¡¢ºÂɸÈϰϤˤĤ¤¤Æ¤ÎÀ©¸Â¤Ï¤â¤Ï¤ä¤Ê¤¤¡£
1028 .\"O However, files with negative coordinates
1030 .\"O cause problems if displayed on the
1032 ¤·¤«¤·¡¢Éé¤ÎºÂɸ°ÌÃÖ¤ò¤â¤Ä¥Õ¥¡¥¤¥ë¤ò
1034 ¤Çɽ¼¨¤·¤¿¤È¤¤ËÌäÂê¤ò°ú¤µ¯¤¹
1038 .Tp \w'/usr/local/share/groff/font/devname/DESC'u+3n
1039 .BI /usr/local/share/groff/font/dev name /DESC
1040 .\"O Device description file for device
1044 ¤Î¥Ç¥Ð¥¤¥¹µ½Ò¥Õ¥¡¥¤¥ë¡£
1054 .\"O David Slattengren and Barry Roitblat wrote the original Berkeley
1056 David Slattengren ¤È Barry Roitblat ¤¬¥ª¥ê¥¸¥Ê¥ë¤Î Berkeley
1060 .\"O Daniel Senderowicz and Werner Lemberg modified it for
1062 Daniel Senderowicz ¤È Werner Lemberg ¤¬