Update the disk organization section of the very old Basics chapter.
This chapter referred to images from the retired Install chapter, which were missing from the Makefile. Some of the information was out of date. The original disk organization diagram had been created in an application that has not existed for over a decade, so I wrote a new diagram in PostScript. This addresses the PR below. This needs to be extended to add a GPT version. PR: 203821 Submitted by: ryan@englandacademy.org
This commit is contained in:
parent
cf1b7b5093
commit
ef8b01d795
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=47678
11 changed files with 7882 additions and 52 deletions
|
|
@ -29,6 +29,12 @@ IMAGES_EN+= advanced-networking/natd.eps
|
||||||
IMAGES_EN+= advanced-networking/net-routing.pic
|
IMAGES_EN+= advanced-networking/net-routing.pic
|
||||||
IMAGES_EN+= advanced-networking/pxe-nfs.png
|
IMAGES_EN+= advanced-networking/pxe-nfs.png
|
||||||
IMAGES_EN+= advanced-networking/static-routes.pic
|
IMAGES_EN+= advanced-networking/static-routes.pic
|
||||||
|
IMAGES_EN+= basics/disk-layout.eps
|
||||||
|
IMAGES_EN+= basics/example-dir1.eps
|
||||||
|
IMAGES_EN+= basics/example-dir2.eps
|
||||||
|
IMAGES_EN+= basics/example-dir3.eps
|
||||||
|
IMAGES_EN+= basics/example-dir4.eps
|
||||||
|
IMAGES_EN+= basics/example-dir5.eps
|
||||||
IMAGES_EN+= bsdinstall/bsdinstall-adduser1.png
|
IMAGES_EN+= bsdinstall/bsdinstall-adduser1.png
|
||||||
IMAGES_EN+= bsdinstall/bsdinstall-adduser2.png
|
IMAGES_EN+= bsdinstall/bsdinstall-adduser2.png
|
||||||
IMAGES_EN+= bsdinstall/bsdinstall-adduser3.png
|
IMAGES_EN+= bsdinstall/bsdinstall-adduser3.png
|
||||||
|
|
|
||||||
|
|
@ -1926,7 +1926,7 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd</screen>
|
||||||
|
|
||||||
<mediaobject>
|
<mediaobject>
|
||||||
<imageobject>
|
<imageobject>
|
||||||
<imagedata fileref="install/example-dir1"/>
|
<imagedata fileref="basics/example-dir1"/>
|
||||||
</imageobject>
|
</imageobject>
|
||||||
|
|
||||||
<textobject>
|
<textobject>
|
||||||
|
|
@ -1947,7 +1947,7 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd</screen>
|
||||||
|
|
||||||
<mediaobject>
|
<mediaobject>
|
||||||
<imageobject>
|
<imageobject>
|
||||||
<imagedata fileref="install/example-dir2"/>
|
<imagedata fileref="basics/example-dir2"/>
|
||||||
</imageobject>
|
</imageobject>
|
||||||
|
|
||||||
<textobject>
|
<textobject>
|
||||||
|
|
@ -1978,7 +1978,7 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd</screen>
|
||||||
|
|
||||||
<mediaobject>
|
<mediaobject>
|
||||||
<imageobject>
|
<imageobject>
|
||||||
<imagedata fileref="install/example-dir3"/>
|
<imagedata fileref="basics/example-dir3"/>
|
||||||
</imageobject>
|
</imageobject>
|
||||||
|
|
||||||
<textobject>
|
<textobject>
|
||||||
|
|
@ -2007,7 +2007,7 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd</screen>
|
||||||
|
|
||||||
<mediaobject>
|
<mediaobject>
|
||||||
<imageobject>
|
<imageobject>
|
||||||
<imagedata fileref="install/example-dir4"/>
|
<imagedata fileref="basics/example-dir4"/>
|
||||||
</imageobject>
|
</imageobject>
|
||||||
|
|
||||||
<textobject>
|
<textobject>
|
||||||
|
|
@ -2033,7 +2033,7 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd</screen>
|
||||||
|
|
||||||
<mediaobject>
|
<mediaobject>
|
||||||
<imageobject>
|
<imageobject>
|
||||||
<imagedata fileref="install/example-dir5"/>
|
<imagedata fileref="basics/example-dir5"/>
|
||||||
</imageobject>
|
</imageobject>
|
||||||
|
|
||||||
<textobject>
|
<textobject>
|
||||||
|
|
@ -2330,7 +2330,7 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd</screen>
|
||||||
<row>
|
<row>
|
||||||
<entry><literal>ada0s1a</literal></entry>
|
<entry><literal>ada0s1a</literal></entry>
|
||||||
<entry>The first partition (<literal>a</literal>) on the
|
<entry>The first partition (<literal>a</literal>) on the
|
||||||
first slice (<literal>s1</literal>) on the first IDE
|
first slice (<literal>s1</literal>) on the first <acronym>SATA</acronym>
|
||||||
disk (<literal>ada0</literal>).</entry>
|
disk (<literal>ada0</literal>).</entry>
|
||||||
</row>
|
</row>
|
||||||
|
|
||||||
|
|
@ -2348,55 +2348,27 @@ root 5211 0.0 0.2 3620 1724 2 I+ 2:09AM 0:00.01 passwd</screen>
|
||||||
<example xml:id="basics-concept-disk-model">
|
<example xml:id="basics-concept-disk-model">
|
||||||
<title>Conceptual Model of a Disk</title>
|
<title>Conceptual Model of a Disk</title>
|
||||||
|
|
||||||
<para>This diagram shows &os;'s view of the first IDE disk
|
<para>This diagram shows &os;'s view of the first <acronym>SATA</acronym> disk
|
||||||
attached to the system. Assume that the disk is 4 GB in
|
attached to the system. Assume that the disk is 250 GB in
|
||||||
size, and contains two 2 GB slices (&ms-dos; partitions).
|
size, and contains an 80 GB slice and a 170 GB slice (&ms-dos; partitions).
|
||||||
The first slice contains a &ms-dos; disk,
|
The first slice contains a &windows; <acronym>NTFS</acronym> file system,
|
||||||
<filename>C:</filename>, and the second slice contains a
|
<filename>C:</filename>, and the second slice contains a
|
||||||
&os; installation. This example &os; installation has three
|
&os; installation. This example &os; installation has four
|
||||||
data partitions, and a swap partition.</para>
|
data partitions and a swap partition.</para>
|
||||||
|
|
||||||
<para>The three partitions will each hold a file system.
|
<para>The four partitions each hold a file system.
|
||||||
Partition <literal>a</literal> will be used for the root file
|
Partition <literal>a</literal> is used for the root file
|
||||||
system, <literal>e</literal> for the
|
system, <literal>d</literal> for
|
||||||
<filename>/var/</filename> directory
|
<filename>/var/</filename>,
|
||||||
hierarchy, and <literal>f</literal> for the
|
<literal>e</literal> for <filename>/tmp/</filename>, and <literal>f</literal> for
|
||||||
<filename>/usr/</filename> directory
|
<filename>/usr/</filename>. Partition letter
|
||||||
hierarchy.</para>
|
<literal>c</literal> refers to the entire slice, and so is not
|
||||||
|
used for ordinary partitions.</para>
|
||||||
|
|
||||||
<mediaobject>
|
<mediaobject>
|
||||||
<imageobject>
|
<imageobject>
|
||||||
<imagedata fileref="install/disk-layout"/>
|
<imagedata fileref="basics/disk-layout"/>
|
||||||
</imageobject>
|
</imageobject>
|
||||||
|
|
||||||
<textobject>
|
|
||||||
<literallayout class="monospaced">.-----------------. --.
|
|
||||||
| | |
|
|
||||||
| DOS / Windows | |
|
|
||||||
: : > First slice, ad0s1
|
|
||||||
: : |
|
|
||||||
| | |
|
|
||||||
:=================: ==: --.
|
|
||||||
| | | Partition a, mounted as / |
|
|
||||||
| | > referred to as ad0s2a |
|
|
||||||
| | | |
|
|
||||||
:-----------------: ==: |
|
|
||||||
| | | Partition b, used as swap |
|
|
||||||
| | > referred to as ad0s2b |
|
|
||||||
| | | |
|
|
||||||
:-----------------: ==: | Partition c, no
|
|
||||||
| | | Partition e, used as /var > file system, all
|
|
||||||
| | > referred to as ad0s2e | of FreeBSD slice,
|
|
||||||
| | | | ad0s2c
|
|
||||||
:-----------------: ==: |
|
|
||||||
| | | |
|
|
||||||
: : | Partition f, used as /usr |
|
|
||||||
: : > referred to as ad0s2f |
|
|
||||||
: : | |
|
|
||||||
| | | |
|
|
||||||
| | --' |
|
|
||||||
`-----------------' --'</literallayout>
|
|
||||||
</textobject>
|
|
||||||
</mediaobject>
|
</mediaobject>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
@ -2837,12 +2809,12 @@ Swap: 2048M Total, 2048M Free
|
||||||
have open, and attempt to finish what it is doing before
|
have open, and attempt to finish what it is doing before
|
||||||
shutting down. In some cases, a process may ignore
|
shutting down. In some cases, a process may ignore
|
||||||
<literal>SIGTERM</literal> if it is in the middle of some task
|
<literal>SIGTERM</literal> if it is in the middle of some task
|
||||||
that can not be interrupted.</para>
|
that cannot be interrupted.</para>
|
||||||
|
|
||||||
<para><literal>SIGKILL</literal> can not be ignored by a
|
<para><literal>SIGKILL</literal> cannot be ignored by a
|
||||||
process. Sending a <literal>SIGKILL</literal> to a
|
process. Sending a <literal>SIGKILL</literal> to a
|
||||||
process will usually stop that process there and then.
|
process will usually stop that process there and then.
|
||||||
<footnote><para>There are a few tasks that can not be
|
<footnote><para>There are a few tasks that cannot be
|
||||||
interrupted. For example, if the process is trying to
|
interrupted. For example, if the process is trying to
|
||||||
read from a file that is on another computer on the
|
read from a file that is on another computer on the
|
||||||
network, and the other computer is unavailable, the
|
network, and the other computer is unavailable, the
|
||||||
|
|
|
||||||
2970
en_US.ISO8859-1/books/handbook/basics/disk-layout.eps
Normal file
2970
en_US.ISO8859-1/books/handbook/basics/disk-layout.eps
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
165
en_US.ISO8859-1/books/handbook/basics/disk-layout.ps
Normal file
165
en_US.ISO8859-1/books/handbook/basics/disk-layout.ps
Normal file
|
|
@ -0,0 +1,165 @@
|
||||||
|
%!PS
|
||||||
|
|
||||||
|
% Warren Block, October 2015
|
||||||
|
% $FreeBSD$
|
||||||
|
|
||||||
|
% use ps2epsi or ps2eps to convert to EPS:
|
||||||
|
% ps2epsi disk-layout.ps disk-layout.eps
|
||||||
|
% copy the EPS file to doc/share/images/books/handbook/basics
|
||||||
|
|
||||||
|
% Sizes for the entire diagram are parametric based on the font
|
||||||
|
% size. Change it here (only) to change the whole thing.
|
||||||
|
/fontsize 12 def
|
||||||
|
|
||||||
|
/gutter fontsize def
|
||||||
|
|
||||||
|
/pagemargin 36 def
|
||||||
|
/textmargin fontsize 3 div def
|
||||||
|
|
||||||
|
% disk
|
||||||
|
/diskwidth fontsize 22 mul def
|
||||||
|
/diskcolor { .53 .81 .98 } def
|
||||||
|
|
||||||
|
% partitions
|
||||||
|
/partcount 5 def
|
||||||
|
/partwidth diskwidth gutter 4 mul sub def
|
||||||
|
/partheight fontsize 3 mul def
|
||||||
|
/partcolor { .88 1 1 } def
|
||||||
|
|
||||||
|
% slices
|
||||||
|
/slice1height partheight 2 mul fontsize add def
|
||||||
|
/slice2height partheight partcount mul fontsize add gutter partcount 1 add mul add def
|
||||||
|
/slicewidth diskwidth gutter 2 mul sub def
|
||||||
|
/slicecolor { .94 1 .94 } def
|
||||||
|
|
||||||
|
/diskheight fontsize gutter add slice1height add gutter add
|
||||||
|
slice2height add gutter add def
|
||||||
|
|
||||||
|
/linewidth 0.5 def
|
||||||
|
|
||||||
|
/boxpath { % x y width height
|
||||||
|
/dheight exch def
|
||||||
|
/dwidth exch def
|
||||||
|
/dy exch def
|
||||||
|
/dx exch def
|
||||||
|
dx dy moveto
|
||||||
|
0 dheight rlineto
|
||||||
|
dwidth 0 rlineto
|
||||||
|
0 dheight neg rlineto
|
||||||
|
dwidth neg 0 rlineto
|
||||||
|
closepath
|
||||||
|
} def
|
||||||
|
|
||||||
|
/colorbox { % x y width height r g b
|
||||||
|
/db exch def
|
||||||
|
/dg exch def
|
||||||
|
/dr exch def
|
||||||
|
/dheight exch def
|
||||||
|
/dwidth exch def
|
||||||
|
/dy exch def
|
||||||
|
/dx exch def
|
||||||
|
dx dy dwidth dheight boxpath dr dg db setrgbcolor fill
|
||||||
|
0 setgray dx dy dwidth dheight boxpath stroke
|
||||||
|
} def
|
||||||
|
|
||||||
|
/colorlabelbox { % x y width height r g b desc devname
|
||||||
|
/ddevname exch def
|
||||||
|
/ddesc exch def
|
||||||
|
/db exch def
|
||||||
|
/dg exch def
|
||||||
|
/dr exch def
|
||||||
|
/dheight exch def
|
||||||
|
/dwidth exch def
|
||||||
|
/dy exch def
|
||||||
|
/dx exch def
|
||||||
|
dx dy dwidth dheight dr dg db colorbox
|
||||||
|
dx textmargin add
|
||||||
|
dy dheight add textmargin sub fontsize sub moveto
|
||||||
|
/Helvetica findfont fontsize scalefont setfont
|
||||||
|
ddesc show
|
||||||
|
(: ) show
|
||||||
|
/Courier-Bold findfont fontsize scalefont setfont
|
||||||
|
ddevname show
|
||||||
|
} def
|
||||||
|
|
||||||
|
/colorpartbox { % x y width height r g b desc devletter devname mountdesc mountpt
|
||||||
|
/dmountpt exch def
|
||||||
|
/dmountdesc exch def
|
||||||
|
/ddevname exch def
|
||||||
|
/ddevletter exch def
|
||||||
|
/ddesc exch def
|
||||||
|
/db exch def
|
||||||
|
/dg exch def
|
||||||
|
/dr exch def
|
||||||
|
/dheight exch def
|
||||||
|
/dwidth exch def
|
||||||
|
/dy exch def
|
||||||
|
/dx exch def
|
||||||
|
dx dy dwidth dheight dr dg db colorbox
|
||||||
|
dx textmargin add
|
||||||
|
dy dheight add textmargin sub fontsize sub moveto
|
||||||
|
/Helvetica findfont fontsize scalefont setfont
|
||||||
|
ddesc show
|
||||||
|
( ) show
|
||||||
|
/Courier-Bold findfont fontsize scalefont setfont
|
||||||
|
ddevletter show
|
||||||
|
/Helvetica findfont fontsize scalefont setfont
|
||||||
|
(, ) show
|
||||||
|
/Courier-Bold findfont fontsize scalefont setfont
|
||||||
|
ddevname show
|
||||||
|
dx textmargin add
|
||||||
|
dy dheight add textmargin sub fontsize 2 mul sub moveto
|
||||||
|
/Helvetica findfont fontsize scalefont setfont
|
||||||
|
dmountdesc show
|
||||||
|
( ) show
|
||||||
|
/Courier-Bold findfont fontsize scalefont setfont
|
||||||
|
dmountpt show
|
||||||
|
} def
|
||||||
|
|
||||||
|
linewidth setlinewidth
|
||||||
|
|
||||||
|
pagemargin pagemargin diskwidth diskheight
|
||||||
|
diskcolor (250 GB Hard Disk) (ada0) colorlabelbox
|
||||||
|
|
||||||
|
% slices
|
||||||
|
pagemargin gutter add
|
||||||
|
pagemargin diskheight add fontsize sub gutter sub slice1height sub
|
||||||
|
slicewidth slice1height
|
||||||
|
slicecolor (Slice 1, Windows NTFS, 80GB) (ada0s1) colorlabelbox
|
||||||
|
|
||||||
|
pagemargin gutter add pagemargin gutter add
|
||||||
|
slicewidth slice2height
|
||||||
|
slicecolor (Slice 2, FreeBSD, 170GB) (ada0s2) colorlabelbox
|
||||||
|
|
||||||
|
% partitions
|
||||||
|
pagemargin gutter 2 mul add
|
||||||
|
pagemargin gutter 6 mul add partheight 4 mul add
|
||||||
|
partwidth partheight
|
||||||
|
partcolor
|
||||||
|
(FreeBSD partition) (a) (ada0s2a) (mounted as) (/) colorpartbox
|
||||||
|
|
||||||
|
pagemargin gutter 2 mul add
|
||||||
|
pagemargin gutter 5 mul add partheight 3 mul add
|
||||||
|
partwidth partheight
|
||||||
|
partcolor
|
||||||
|
(FreeBSD partition) (b) (ada0s2b) (swap) () colorpartbox
|
||||||
|
|
||||||
|
pagemargin gutter 2 mul add
|
||||||
|
pagemargin gutter 4 mul add partheight 2 mul add
|
||||||
|
partwidth partheight
|
||||||
|
partcolor
|
||||||
|
(FreeBSD partition) (d) (ada0s2d) (mounted as) (/var) colorpartbox
|
||||||
|
|
||||||
|
pagemargin gutter 2 mul add
|
||||||
|
pagemargin gutter 3 mul add partheight add
|
||||||
|
partwidth partheight
|
||||||
|
partcolor
|
||||||
|
(FreeBSD partition) (e) (ada0s2e) (mounted as) (/tmp) colorpartbox
|
||||||
|
|
||||||
|
pagemargin gutter 2 mul add
|
||||||
|
pagemargin gutter 2 mul add
|
||||||
|
partwidth partheight
|
||||||
|
partcolor
|
||||||
|
(FreeBSD partition) (f) (ada0s2f) (mounted as) (/usr) colorpartbox
|
||||||
|
|
||||||
|
showpage
|
||||||
2970
share/images/books/handbook/basics/disk-layout.eps
Normal file
2970
share/images/books/handbook/basics/disk-layout.eps
Normal file
File diff suppressed because it is too large
Load diff
299
share/images/books/handbook/basics/example-dir1.eps
Normal file
299
share/images/books/handbook/basics/example-dir1.eps
Normal file
|
|
@ -0,0 +1,299 @@
|
||||||
|
%!PS-Adobe-2.0
|
||||||
|
%%Creator: dot version 1.8.5 (Sat Jun 29 11:49:08 BST 2002)
|
||||||
|
%%For: (nik) Nik Clayton
|
||||||
|
%%Title: directory
|
||||||
|
%%Pages: (atend)
|
||||||
|
%%BoundingBox: 35 35 163 177
|
||||||
|
%%EndComments
|
||||||
|
save
|
||||||
|
%%BeginProlog
|
||||||
|
/DotDict 200 dict def
|
||||||
|
DotDict begin
|
||||||
|
|
||||||
|
/setupLatin1 {
|
||||||
|
mark
|
||||||
|
/EncodingVector 256 array def
|
||||||
|
EncodingVector 0
|
||||||
|
|
||||||
|
ISOLatin1Encoding 0 255 getinterval putinterval
|
||||||
|
|
||||||
|
EncodingVector
|
||||||
|
dup 306 /AE
|
||||||
|
dup 301 /Aacute
|
||||||
|
dup 302 /Acircumflex
|
||||||
|
dup 304 /Adieresis
|
||||||
|
dup 300 /Agrave
|
||||||
|
dup 305 /Aring
|
||||||
|
dup 303 /Atilde
|
||||||
|
dup 307 /Ccedilla
|
||||||
|
dup 311 /Eacute
|
||||||
|
dup 312 /Ecircumflex
|
||||||
|
dup 313 /Edieresis
|
||||||
|
dup 310 /Egrave
|
||||||
|
dup 315 /Iacute
|
||||||
|
dup 316 /Icircumflex
|
||||||
|
dup 317 /Idieresis
|
||||||
|
dup 314 /Igrave
|
||||||
|
dup 334 /Udieresis
|
||||||
|
dup 335 /Yacute
|
||||||
|
dup 376 /thorn
|
||||||
|
dup 337 /germandbls
|
||||||
|
dup 341 /aacute
|
||||||
|
dup 342 /acircumflex
|
||||||
|
dup 344 /adieresis
|
||||||
|
dup 346 /ae
|
||||||
|
dup 340 /agrave
|
||||||
|
dup 345 /aring
|
||||||
|
dup 347 /ccedilla
|
||||||
|
dup 351 /eacute
|
||||||
|
dup 352 /ecircumflex
|
||||||
|
dup 353 /edieresis
|
||||||
|
dup 350 /egrave
|
||||||
|
dup 355 /iacute
|
||||||
|
dup 356 /icircumflex
|
||||||
|
dup 357 /idieresis
|
||||||
|
dup 354 /igrave
|
||||||
|
dup 360 /dcroat
|
||||||
|
dup 361 /ntilde
|
||||||
|
dup 363 /oacute
|
||||||
|
dup 364 /ocircumflex
|
||||||
|
dup 366 /odieresis
|
||||||
|
dup 362 /ograve
|
||||||
|
dup 365 /otilde
|
||||||
|
dup 370 /oslash
|
||||||
|
dup 372 /uacute
|
||||||
|
dup 373 /ucircumflex
|
||||||
|
dup 374 /udieresis
|
||||||
|
dup 371 /ugrave
|
||||||
|
dup 375 /yacute
|
||||||
|
dup 377 /ydieresis
|
||||||
|
|
||||||
|
% Set up ISO Latin 1 character encoding
|
||||||
|
/starnetISO {
|
||||||
|
dup dup findfont dup length dict begin
|
||||||
|
{ 1 index /FID ne { def }{ pop pop } ifelse
|
||||||
|
} forall
|
||||||
|
/Encoding EncodingVector def
|
||||||
|
currentdict end definefont
|
||||||
|
} def
|
||||||
|
/Times-Roman starnetISO def
|
||||||
|
/Times-Italic starnetISO def
|
||||||
|
/Times-Bold starnetISO def
|
||||||
|
/Times-BoldItalic starnetISO def
|
||||||
|
/Helvetica starnetISO def
|
||||||
|
/Helvetica-Oblique starnetISO def
|
||||||
|
/Helvetica-Bold starnetISO def
|
||||||
|
/Helvetica-BoldOblique starnetISO def
|
||||||
|
/Courier starnetISO def
|
||||||
|
/Courier-Oblique starnetISO def
|
||||||
|
/Courier-Bold starnetISO def
|
||||||
|
/Courier-BoldOblique starnetISO def
|
||||||
|
cleartomark
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
%%BeginResource: procset
|
||||||
|
/coord-font-family /Times-Roman def
|
||||||
|
/default-font-family /Times-Roman def
|
||||||
|
/coordfont coord-font-family findfont 8 scalefont def
|
||||||
|
|
||||||
|
/InvScaleFactor 1.0 def
|
||||||
|
/set_scale {
|
||||||
|
dup 1 exch div /InvScaleFactor exch def
|
||||||
|
dup scale
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
% styles
|
||||||
|
/solid { } bind def
|
||||||
|
/dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def
|
||||||
|
/dotted { [1 InvScaleFactor mul 6 InvScaleFactor mul] 0 setdash } bind def
|
||||||
|
/invis {/fill {newpath} def /stroke {newpath} def /show {pop newpath} def} bind def
|
||||||
|
/bold { 2 setlinewidth } bind def
|
||||||
|
/filled { } bind def
|
||||||
|
/unfilled { } bind def
|
||||||
|
/rounded { } bind def
|
||||||
|
/diagonals { } bind def
|
||||||
|
|
||||||
|
% hooks for setting color
|
||||||
|
/nodecolor { sethsbcolor } bind def
|
||||||
|
/edgecolor { sethsbcolor } bind def
|
||||||
|
/graphcolor { sethsbcolor } bind def
|
||||||
|
/nopcolor {pop pop pop} bind def
|
||||||
|
|
||||||
|
/beginpage { % i j npages
|
||||||
|
/npages exch def
|
||||||
|
/j exch def
|
||||||
|
/i exch def
|
||||||
|
/str 10 string def
|
||||||
|
npages 1 gt {
|
||||||
|
gsave
|
||||||
|
coordfont setfont
|
||||||
|
0 0 moveto
|
||||||
|
(\() show i str cvs show (,) show j str cvs show (\)) show
|
||||||
|
grestore
|
||||||
|
} if
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/set_font {
|
||||||
|
findfont exch
|
||||||
|
scalefont setfont
|
||||||
|
} def
|
||||||
|
|
||||||
|
% draw aligned label in bounding box aligned to current point
|
||||||
|
/alignedtext { % width adj text
|
||||||
|
/text exch def
|
||||||
|
/adj exch def
|
||||||
|
/width exch def
|
||||||
|
gsave
|
||||||
|
width 0 gt {
|
||||||
|
text stringwidth pop adj mul 0 rmoveto
|
||||||
|
} if
|
||||||
|
[] 0 setdash
|
||||||
|
text show
|
||||||
|
grestore
|
||||||
|
} def
|
||||||
|
|
||||||
|
/boxprim { % xcorner ycorner xsize ysize
|
||||||
|
4 2 roll
|
||||||
|
moveto
|
||||||
|
2 copy
|
||||||
|
exch 0 rlineto
|
||||||
|
0 exch rlineto
|
||||||
|
pop neg 0 rlineto
|
||||||
|
closepath
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/ellipse_path {
|
||||||
|
/ry exch def
|
||||||
|
/rx exch def
|
||||||
|
/y exch def
|
||||||
|
/x exch def
|
||||||
|
matrix currentmatrix
|
||||||
|
newpath
|
||||||
|
x y translate
|
||||||
|
rx ry scale
|
||||||
|
0 0 1 0 360 arc
|
||||||
|
setmatrix
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/endpage { showpage } bind def
|
||||||
|
|
||||||
|
/layercolorseq
|
||||||
|
[ % layer color sequence - darkest to lightest
|
||||||
|
[0 0 0]
|
||||||
|
[.2 .8 .8]
|
||||||
|
[.4 .8 .8]
|
||||||
|
[.6 .8 .8]
|
||||||
|
[.8 .8 .8]
|
||||||
|
]
|
||||||
|
def
|
||||||
|
|
||||||
|
/setlayer {/maxlayer exch def /curlayer exch def
|
||||||
|
layercolorseq curlayer get
|
||||||
|
aload pop sethsbcolor
|
||||||
|
/nodecolor {nopcolor} def
|
||||||
|
/edgecolor {nopcolor} def
|
||||||
|
/graphcolor {nopcolor} def
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/onlayer { curlayer ne {invis} if } def
|
||||||
|
|
||||||
|
/onlayers {
|
||||||
|
/myupper exch def
|
||||||
|
/mylower exch def
|
||||||
|
curlayer mylower lt
|
||||||
|
curlayer myupper gt
|
||||||
|
or
|
||||||
|
{invis} if
|
||||||
|
} def
|
||||||
|
|
||||||
|
/curlayer 0 def
|
||||||
|
|
||||||
|
%%EndResource
|
||||||
|
%%EndProlog
|
||||||
|
%%BeginSetup
|
||||||
|
14 default-font-family set_font
|
||||||
|
1 setmiterlimit
|
||||||
|
% /arrowlength 10 def
|
||||||
|
% /arrowwidth 5 def
|
||||||
|
|
||||||
|
% make sure pdfmark is harmless for PS-interpreters other than Distiller
|
||||||
|
/pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse
|
||||||
|
% make '<<' and '>>' safe on PS Level 1 devices
|
||||||
|
/languagelevel where {pop languagelevel}{1} ifelse
|
||||||
|
2 lt {
|
||||||
|
userdict (<<) cvn ([) cvn load put
|
||||||
|
userdict (>>) cvn ([) cvn load put
|
||||||
|
} if
|
||||||
|
|
||||||
|
%%EndSetup
|
||||||
|
%%Page: 1 1
|
||||||
|
%%PageBoundingBox: 36 36 163 177
|
||||||
|
%%PageOrientation: Portrait
|
||||||
|
gsave
|
||||||
|
35 35 128 142 boxprim clip newpath
|
||||||
|
36 36 translate
|
||||||
|
0 0 1 beginpage
|
||||||
|
0 0 translate 0 rotate
|
||||||
|
0.000 0.000 0.000 graphcolor
|
||||||
|
14.00 /Times-Roman set_font
|
||||||
|
|
||||||
|
% root
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 106 31 25 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 109 moveto 33 -0.5 (Root) alignedtext
|
||||||
|
63 93 moveto 5 -0.5 (/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A1/
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 21 moveto 23 -0.5 (A1/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% root -> A1/
|
||||||
|
newpath 52 82 moveto
|
||||||
|
48 72 43 61 39 51 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 37 53 moveto
|
||||||
|
35 43 lineto
|
||||||
|
42 51 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% A2/
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 21 moveto 26 -0.5 (A2/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% root -> A2/
|
||||||
|
newpath 74 82 moveto
|
||||||
|
78 72 83 61 87 51 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 84 51 moveto
|
||||||
|
91 43 lineto
|
||||||
|
89 53 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
endpage
|
||||||
|
grestore
|
||||||
|
%%PageTrailer
|
||||||
|
%%EndPage: 1
|
||||||
|
%%Trailer
|
||||||
|
%%Pages: 1
|
||||||
|
end
|
||||||
|
restore
|
||||||
|
%%EOF
|
||||||
341
share/images/books/handbook/basics/example-dir2.eps
Normal file
341
share/images/books/handbook/basics/example-dir2.eps
Normal file
|
|
@ -0,0 +1,341 @@
|
||||||
|
%!PS-Adobe-2.0
|
||||||
|
%%Creator: dot version 1.8.5 (Sat Jun 29 11:49:08 BST 2002)
|
||||||
|
%%For: (nik) Nik Clayton
|
||||||
|
%%Title: directory
|
||||||
|
%%Pages: (atend)
|
||||||
|
%%BoundingBox: 35 35 199 249
|
||||||
|
%%EndComments
|
||||||
|
save
|
||||||
|
%%BeginProlog
|
||||||
|
/DotDict 200 dict def
|
||||||
|
DotDict begin
|
||||||
|
|
||||||
|
/setupLatin1 {
|
||||||
|
mark
|
||||||
|
/EncodingVector 256 array def
|
||||||
|
EncodingVector 0
|
||||||
|
|
||||||
|
ISOLatin1Encoding 0 255 getinterval putinterval
|
||||||
|
|
||||||
|
EncodingVector
|
||||||
|
dup 306 /AE
|
||||||
|
dup 301 /Aacute
|
||||||
|
dup 302 /Acircumflex
|
||||||
|
dup 304 /Adieresis
|
||||||
|
dup 300 /Agrave
|
||||||
|
dup 305 /Aring
|
||||||
|
dup 303 /Atilde
|
||||||
|
dup 307 /Ccedilla
|
||||||
|
dup 311 /Eacute
|
||||||
|
dup 312 /Ecircumflex
|
||||||
|
dup 313 /Edieresis
|
||||||
|
dup 310 /Egrave
|
||||||
|
dup 315 /Iacute
|
||||||
|
dup 316 /Icircumflex
|
||||||
|
dup 317 /Idieresis
|
||||||
|
dup 314 /Igrave
|
||||||
|
dup 334 /Udieresis
|
||||||
|
dup 335 /Yacute
|
||||||
|
dup 376 /thorn
|
||||||
|
dup 337 /germandbls
|
||||||
|
dup 341 /aacute
|
||||||
|
dup 342 /acircumflex
|
||||||
|
dup 344 /adieresis
|
||||||
|
dup 346 /ae
|
||||||
|
dup 340 /agrave
|
||||||
|
dup 345 /aring
|
||||||
|
dup 347 /ccedilla
|
||||||
|
dup 351 /eacute
|
||||||
|
dup 352 /ecircumflex
|
||||||
|
dup 353 /edieresis
|
||||||
|
dup 350 /egrave
|
||||||
|
dup 355 /iacute
|
||||||
|
dup 356 /icircumflex
|
||||||
|
dup 357 /idieresis
|
||||||
|
dup 354 /igrave
|
||||||
|
dup 360 /dcroat
|
||||||
|
dup 361 /ntilde
|
||||||
|
dup 363 /oacute
|
||||||
|
dup 364 /ocircumflex
|
||||||
|
dup 366 /odieresis
|
||||||
|
dup 362 /ograve
|
||||||
|
dup 365 /otilde
|
||||||
|
dup 370 /oslash
|
||||||
|
dup 372 /uacute
|
||||||
|
dup 373 /ucircumflex
|
||||||
|
dup 374 /udieresis
|
||||||
|
dup 371 /ugrave
|
||||||
|
dup 375 /yacute
|
||||||
|
dup 377 /ydieresis
|
||||||
|
|
||||||
|
% Set up ISO Latin 1 character encoding
|
||||||
|
/starnetISO {
|
||||||
|
dup dup findfont dup length dict begin
|
||||||
|
{ 1 index /FID ne { def }{ pop pop } ifelse
|
||||||
|
} forall
|
||||||
|
/Encoding EncodingVector def
|
||||||
|
currentdict end definefont
|
||||||
|
} def
|
||||||
|
/Times-Roman starnetISO def
|
||||||
|
/Times-Italic starnetISO def
|
||||||
|
/Times-Bold starnetISO def
|
||||||
|
/Times-BoldItalic starnetISO def
|
||||||
|
/Helvetica starnetISO def
|
||||||
|
/Helvetica-Oblique starnetISO def
|
||||||
|
/Helvetica-Bold starnetISO def
|
||||||
|
/Helvetica-BoldOblique starnetISO def
|
||||||
|
/Courier starnetISO def
|
||||||
|
/Courier-Oblique starnetISO def
|
||||||
|
/Courier-Bold starnetISO def
|
||||||
|
/Courier-BoldOblique starnetISO def
|
||||||
|
cleartomark
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
%%BeginResource: procset
|
||||||
|
/coord-font-family /Times-Roman def
|
||||||
|
/default-font-family /Times-Roman def
|
||||||
|
/coordfont coord-font-family findfont 8 scalefont def
|
||||||
|
|
||||||
|
/InvScaleFactor 1.0 def
|
||||||
|
/set_scale {
|
||||||
|
dup 1 exch div /InvScaleFactor exch def
|
||||||
|
dup scale
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
% styles
|
||||||
|
/solid { } bind def
|
||||||
|
/dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def
|
||||||
|
/dotted { [1 InvScaleFactor mul 6 InvScaleFactor mul] 0 setdash } bind def
|
||||||
|
/invis {/fill {newpath} def /stroke {newpath} def /show {pop newpath} def} bind def
|
||||||
|
/bold { 2 setlinewidth } bind def
|
||||||
|
/filled { } bind def
|
||||||
|
/unfilled { } bind def
|
||||||
|
/rounded { } bind def
|
||||||
|
/diagonals { } bind def
|
||||||
|
|
||||||
|
% hooks for setting color
|
||||||
|
/nodecolor { sethsbcolor } bind def
|
||||||
|
/edgecolor { sethsbcolor } bind def
|
||||||
|
/graphcolor { sethsbcolor } bind def
|
||||||
|
/nopcolor {pop pop pop} bind def
|
||||||
|
|
||||||
|
/beginpage { % i j npages
|
||||||
|
/npages exch def
|
||||||
|
/j exch def
|
||||||
|
/i exch def
|
||||||
|
/str 10 string def
|
||||||
|
npages 1 gt {
|
||||||
|
gsave
|
||||||
|
coordfont setfont
|
||||||
|
0 0 moveto
|
||||||
|
(\() show i str cvs show (,) show j str cvs show (\)) show
|
||||||
|
grestore
|
||||||
|
} if
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/set_font {
|
||||||
|
findfont exch
|
||||||
|
scalefont setfont
|
||||||
|
} def
|
||||||
|
|
||||||
|
% draw aligned label in bounding box aligned to current point
|
||||||
|
/alignedtext { % width adj text
|
||||||
|
/text exch def
|
||||||
|
/adj exch def
|
||||||
|
/width exch def
|
||||||
|
gsave
|
||||||
|
width 0 gt {
|
||||||
|
text stringwidth pop adj mul 0 rmoveto
|
||||||
|
} if
|
||||||
|
[] 0 setdash
|
||||||
|
text show
|
||||||
|
grestore
|
||||||
|
} def
|
||||||
|
|
||||||
|
/boxprim { % xcorner ycorner xsize ysize
|
||||||
|
4 2 roll
|
||||||
|
moveto
|
||||||
|
2 copy
|
||||||
|
exch 0 rlineto
|
||||||
|
0 exch rlineto
|
||||||
|
pop neg 0 rlineto
|
||||||
|
closepath
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/ellipse_path {
|
||||||
|
/ry exch def
|
||||||
|
/rx exch def
|
||||||
|
/y exch def
|
||||||
|
/x exch def
|
||||||
|
matrix currentmatrix
|
||||||
|
newpath
|
||||||
|
x y translate
|
||||||
|
rx ry scale
|
||||||
|
0 0 1 0 360 arc
|
||||||
|
setmatrix
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/endpage { showpage } bind def
|
||||||
|
|
||||||
|
/layercolorseq
|
||||||
|
[ % layer color sequence - darkest to lightest
|
||||||
|
[0 0 0]
|
||||||
|
[.2 .8 .8]
|
||||||
|
[.4 .8 .8]
|
||||||
|
[.6 .8 .8]
|
||||||
|
[.8 .8 .8]
|
||||||
|
]
|
||||||
|
def
|
||||||
|
|
||||||
|
/setlayer {/maxlayer exch def /curlayer exch def
|
||||||
|
layercolorseq curlayer get
|
||||||
|
aload pop sethsbcolor
|
||||||
|
/nodecolor {nopcolor} def
|
||||||
|
/edgecolor {nopcolor} def
|
||||||
|
/graphcolor {nopcolor} def
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/onlayer { curlayer ne {invis} if } def
|
||||||
|
|
||||||
|
/onlayers {
|
||||||
|
/myupper exch def
|
||||||
|
/mylower exch def
|
||||||
|
curlayer mylower lt
|
||||||
|
curlayer myupper gt
|
||||||
|
or
|
||||||
|
{invis} if
|
||||||
|
} def
|
||||||
|
|
||||||
|
/curlayer 0 def
|
||||||
|
|
||||||
|
%%EndResource
|
||||||
|
%%EndProlog
|
||||||
|
%%BeginSetup
|
||||||
|
14 default-font-family set_font
|
||||||
|
1 setmiterlimit
|
||||||
|
% /arrowlength 10 def
|
||||||
|
% /arrowwidth 5 def
|
||||||
|
|
||||||
|
% make sure pdfmark is harmless for PS-interpreters other than Distiller
|
||||||
|
/pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse
|
||||||
|
% make '<<' and '>>' safe on PS Level 1 devices
|
||||||
|
/languagelevel where {pop languagelevel}{1} ifelse
|
||||||
|
2 lt {
|
||||||
|
userdict (<<) cvn ([) cvn load put
|
||||||
|
userdict (>>) cvn ([) cvn load put
|
||||||
|
} if
|
||||||
|
|
||||||
|
%%EndSetup
|
||||||
|
%%Page: 1 1
|
||||||
|
%%PageBoundingBox: 36 36 199 249
|
||||||
|
%%PageOrientation: Portrait
|
||||||
|
gsave
|
||||||
|
35 35 164 214 boxprim clip newpath
|
||||||
|
36 36 translate
|
||||||
|
0 0 1 beginpage
|
||||||
|
0 0 translate 0 rotate
|
||||||
|
0.000 0.000 0.000 graphcolor
|
||||||
|
14.00 /Times-Roman set_font
|
||||||
|
|
||||||
|
% root
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 178 31 25 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 181 moveto 33 -0.5 (Root) alignedtext
|
||||||
|
99 165 moveto 5 -0.5 (/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A1/
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 98 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 93 moveto 23 -0.5 (A1/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% root -> A1/
|
||||||
|
newpath 88 154 moveto
|
||||||
|
84 144 79 133 75 123 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 73 125 moveto
|
||||||
|
71 115 lineto
|
||||||
|
78 123 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% A2/
|
||||||
|
gsave 10 dict begin
|
||||||
|
135 98 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
135 93 moveto 26 -0.5 (A2/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% root -> A2/
|
||||||
|
newpath 110 154 moveto
|
||||||
|
114 144 119 133 123 123 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 120 123 moveto
|
||||||
|
127 115 lineto
|
||||||
|
125 125 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% B1/
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 21 moveto 21 -0.5 (B1/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A1/ -> B1/
|
||||||
|
newpath 54 81 moveto
|
||||||
|
50 72 45 62 40 52 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 38 53 moveto
|
||||||
|
36 43 lineto
|
||||||
|
42 51 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% B2/
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 21 moveto 24 -0.5 (B2/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A1/ -> B2/
|
||||||
|
newpath 72 81 moveto
|
||||||
|
76 72 81 62 86 52 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 84 51 moveto
|
||||||
|
90 43 lineto
|
||||||
|
88 53 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
endpage
|
||||||
|
grestore
|
||||||
|
%%PageTrailer
|
||||||
|
%%EndPage: 1
|
||||||
|
%%Trailer
|
||||||
|
%%Pages: 1
|
||||||
|
end
|
||||||
|
restore
|
||||||
|
%%EOF
|
||||||
341
share/images/books/handbook/basics/example-dir3.eps
Normal file
341
share/images/books/handbook/basics/example-dir3.eps
Normal file
|
|
@ -0,0 +1,341 @@
|
||||||
|
%!PS-Adobe-2.0
|
||||||
|
%%Creator: dot version 1.8.5 (Sat Jun 29 11:49:08 BST 2002)
|
||||||
|
%%For: (nik) Nik Clayton
|
||||||
|
%%Title: directory
|
||||||
|
%%Pages: (atend)
|
||||||
|
%%BoundingBox: 35 35 199 249
|
||||||
|
%%EndComments
|
||||||
|
save
|
||||||
|
%%BeginProlog
|
||||||
|
/DotDict 200 dict def
|
||||||
|
DotDict begin
|
||||||
|
|
||||||
|
/setupLatin1 {
|
||||||
|
mark
|
||||||
|
/EncodingVector 256 array def
|
||||||
|
EncodingVector 0
|
||||||
|
|
||||||
|
ISOLatin1Encoding 0 255 getinterval putinterval
|
||||||
|
|
||||||
|
EncodingVector
|
||||||
|
dup 306 /AE
|
||||||
|
dup 301 /Aacute
|
||||||
|
dup 302 /Acircumflex
|
||||||
|
dup 304 /Adieresis
|
||||||
|
dup 300 /Agrave
|
||||||
|
dup 305 /Aring
|
||||||
|
dup 303 /Atilde
|
||||||
|
dup 307 /Ccedilla
|
||||||
|
dup 311 /Eacute
|
||||||
|
dup 312 /Ecircumflex
|
||||||
|
dup 313 /Edieresis
|
||||||
|
dup 310 /Egrave
|
||||||
|
dup 315 /Iacute
|
||||||
|
dup 316 /Icircumflex
|
||||||
|
dup 317 /Idieresis
|
||||||
|
dup 314 /Igrave
|
||||||
|
dup 334 /Udieresis
|
||||||
|
dup 335 /Yacute
|
||||||
|
dup 376 /thorn
|
||||||
|
dup 337 /germandbls
|
||||||
|
dup 341 /aacute
|
||||||
|
dup 342 /acircumflex
|
||||||
|
dup 344 /adieresis
|
||||||
|
dup 346 /ae
|
||||||
|
dup 340 /agrave
|
||||||
|
dup 345 /aring
|
||||||
|
dup 347 /ccedilla
|
||||||
|
dup 351 /eacute
|
||||||
|
dup 352 /ecircumflex
|
||||||
|
dup 353 /edieresis
|
||||||
|
dup 350 /egrave
|
||||||
|
dup 355 /iacute
|
||||||
|
dup 356 /icircumflex
|
||||||
|
dup 357 /idieresis
|
||||||
|
dup 354 /igrave
|
||||||
|
dup 360 /dcroat
|
||||||
|
dup 361 /ntilde
|
||||||
|
dup 363 /oacute
|
||||||
|
dup 364 /ocircumflex
|
||||||
|
dup 366 /odieresis
|
||||||
|
dup 362 /ograve
|
||||||
|
dup 365 /otilde
|
||||||
|
dup 370 /oslash
|
||||||
|
dup 372 /uacute
|
||||||
|
dup 373 /ucircumflex
|
||||||
|
dup 374 /udieresis
|
||||||
|
dup 371 /ugrave
|
||||||
|
dup 375 /yacute
|
||||||
|
dup 377 /ydieresis
|
||||||
|
|
||||||
|
% Set up ISO Latin 1 character encoding
|
||||||
|
/starnetISO {
|
||||||
|
dup dup findfont dup length dict begin
|
||||||
|
{ 1 index /FID ne { def }{ pop pop } ifelse
|
||||||
|
} forall
|
||||||
|
/Encoding EncodingVector def
|
||||||
|
currentdict end definefont
|
||||||
|
} def
|
||||||
|
/Times-Roman starnetISO def
|
||||||
|
/Times-Italic starnetISO def
|
||||||
|
/Times-Bold starnetISO def
|
||||||
|
/Times-BoldItalic starnetISO def
|
||||||
|
/Helvetica starnetISO def
|
||||||
|
/Helvetica-Oblique starnetISO def
|
||||||
|
/Helvetica-Bold starnetISO def
|
||||||
|
/Helvetica-BoldOblique starnetISO def
|
||||||
|
/Courier starnetISO def
|
||||||
|
/Courier-Oblique starnetISO def
|
||||||
|
/Courier-Bold starnetISO def
|
||||||
|
/Courier-BoldOblique starnetISO def
|
||||||
|
cleartomark
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
%%BeginResource: procset
|
||||||
|
/coord-font-family /Times-Roman def
|
||||||
|
/default-font-family /Times-Roman def
|
||||||
|
/coordfont coord-font-family findfont 8 scalefont def
|
||||||
|
|
||||||
|
/InvScaleFactor 1.0 def
|
||||||
|
/set_scale {
|
||||||
|
dup 1 exch div /InvScaleFactor exch def
|
||||||
|
dup scale
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
% styles
|
||||||
|
/solid { } bind def
|
||||||
|
/dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def
|
||||||
|
/dotted { [1 InvScaleFactor mul 6 InvScaleFactor mul] 0 setdash } bind def
|
||||||
|
/invis {/fill {newpath} def /stroke {newpath} def /show {pop newpath} def} bind def
|
||||||
|
/bold { 2 setlinewidth } bind def
|
||||||
|
/filled { } bind def
|
||||||
|
/unfilled { } bind def
|
||||||
|
/rounded { } bind def
|
||||||
|
/diagonals { } bind def
|
||||||
|
|
||||||
|
% hooks for setting color
|
||||||
|
/nodecolor { sethsbcolor } bind def
|
||||||
|
/edgecolor { sethsbcolor } bind def
|
||||||
|
/graphcolor { sethsbcolor } bind def
|
||||||
|
/nopcolor {pop pop pop} bind def
|
||||||
|
|
||||||
|
/beginpage { % i j npages
|
||||||
|
/npages exch def
|
||||||
|
/j exch def
|
||||||
|
/i exch def
|
||||||
|
/str 10 string def
|
||||||
|
npages 1 gt {
|
||||||
|
gsave
|
||||||
|
coordfont setfont
|
||||||
|
0 0 moveto
|
||||||
|
(\() show i str cvs show (,) show j str cvs show (\)) show
|
||||||
|
grestore
|
||||||
|
} if
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/set_font {
|
||||||
|
findfont exch
|
||||||
|
scalefont setfont
|
||||||
|
} def
|
||||||
|
|
||||||
|
% draw aligned label in bounding box aligned to current point
|
||||||
|
/alignedtext { % width adj text
|
||||||
|
/text exch def
|
||||||
|
/adj exch def
|
||||||
|
/width exch def
|
||||||
|
gsave
|
||||||
|
width 0 gt {
|
||||||
|
text stringwidth pop adj mul 0 rmoveto
|
||||||
|
} if
|
||||||
|
[] 0 setdash
|
||||||
|
text show
|
||||||
|
grestore
|
||||||
|
} def
|
||||||
|
|
||||||
|
/boxprim { % xcorner ycorner xsize ysize
|
||||||
|
4 2 roll
|
||||||
|
moveto
|
||||||
|
2 copy
|
||||||
|
exch 0 rlineto
|
||||||
|
0 exch rlineto
|
||||||
|
pop neg 0 rlineto
|
||||||
|
closepath
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/ellipse_path {
|
||||||
|
/ry exch def
|
||||||
|
/rx exch def
|
||||||
|
/y exch def
|
||||||
|
/x exch def
|
||||||
|
matrix currentmatrix
|
||||||
|
newpath
|
||||||
|
x y translate
|
||||||
|
rx ry scale
|
||||||
|
0 0 1 0 360 arc
|
||||||
|
setmatrix
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/endpage { showpage } bind def
|
||||||
|
|
||||||
|
/layercolorseq
|
||||||
|
[ % layer color sequence - darkest to lightest
|
||||||
|
[0 0 0]
|
||||||
|
[.2 .8 .8]
|
||||||
|
[.4 .8 .8]
|
||||||
|
[.6 .8 .8]
|
||||||
|
[.8 .8 .8]
|
||||||
|
]
|
||||||
|
def
|
||||||
|
|
||||||
|
/setlayer {/maxlayer exch def /curlayer exch def
|
||||||
|
layercolorseq curlayer get
|
||||||
|
aload pop sethsbcolor
|
||||||
|
/nodecolor {nopcolor} def
|
||||||
|
/edgecolor {nopcolor} def
|
||||||
|
/graphcolor {nopcolor} def
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/onlayer { curlayer ne {invis} if } def
|
||||||
|
|
||||||
|
/onlayers {
|
||||||
|
/myupper exch def
|
||||||
|
/mylower exch def
|
||||||
|
curlayer mylower lt
|
||||||
|
curlayer myupper gt
|
||||||
|
or
|
||||||
|
{invis} if
|
||||||
|
} def
|
||||||
|
|
||||||
|
/curlayer 0 def
|
||||||
|
|
||||||
|
%%EndResource
|
||||||
|
%%EndProlog
|
||||||
|
%%BeginSetup
|
||||||
|
14 default-font-family set_font
|
||||||
|
1 setmiterlimit
|
||||||
|
% /arrowlength 10 def
|
||||||
|
% /arrowwidth 5 def
|
||||||
|
|
||||||
|
% make sure pdfmark is harmless for PS-interpreters other than Distiller
|
||||||
|
/pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse
|
||||||
|
% make '<<' and '>>' safe on PS Level 1 devices
|
||||||
|
/languagelevel where {pop languagelevel}{1} ifelse
|
||||||
|
2 lt {
|
||||||
|
userdict (<<) cvn ([) cvn load put
|
||||||
|
userdict (>>) cvn ([) cvn load put
|
||||||
|
} if
|
||||||
|
|
||||||
|
%%EndSetup
|
||||||
|
%%Page: 1 1
|
||||||
|
%%PageBoundingBox: 36 36 199 249
|
||||||
|
%%PageOrientation: Portrait
|
||||||
|
gsave
|
||||||
|
35 35 164 214 boxprim clip newpath
|
||||||
|
36 36 translate
|
||||||
|
0 0 1 beginpage
|
||||||
|
0 0 translate 0 rotate
|
||||||
|
0.000 0.000 0.000 graphcolor
|
||||||
|
14.00 /Times-Roman set_font
|
||||||
|
|
||||||
|
% root
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 178 31 25 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 181 moveto 33 -0.5 (Root) alignedtext
|
||||||
|
63 165 moveto 5 -0.5 (/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A1/
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 98 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 93 moveto 23 -0.5 (A1/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% root -> A1/
|
||||||
|
newpath 52 154 moveto
|
||||||
|
48 144 43 133 39 123 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 37 125 moveto
|
||||||
|
35 115 lineto
|
||||||
|
42 123 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% A2/
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 98 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 93 moveto 26 -0.5 (A2/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% root -> A2/
|
||||||
|
newpath 74 154 moveto
|
||||||
|
78 144 83 133 87 123 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 84 123 moveto
|
||||||
|
91 115 lineto
|
||||||
|
89 125 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% B1/
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 21 moveto 21 -0.5 (B1/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A2/ -> B1/
|
||||||
|
newpath 90 81 moveto
|
||||||
|
86 72 81 62 76 52 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 74 53 moveto
|
||||||
|
72 43 lineto
|
||||||
|
78 51 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% B2/
|
||||||
|
gsave 10 dict begin
|
||||||
|
135 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
135 21 moveto 24 -0.5 (B2/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A2/ -> B2/
|
||||||
|
newpath 108 81 moveto
|
||||||
|
112 72 117 62 122 52 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 120 51 moveto
|
||||||
|
126 43 lineto
|
||||||
|
124 53 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
endpage
|
||||||
|
grestore
|
||||||
|
%%PageTrailer
|
||||||
|
%%EndPage: 1
|
||||||
|
%%Trailer
|
||||||
|
%%Pages: 1
|
||||||
|
end
|
||||||
|
restore
|
||||||
|
%%EOF
|
||||||
383
share/images/books/handbook/basics/example-dir4.eps
Normal file
383
share/images/books/handbook/basics/example-dir4.eps
Normal file
|
|
@ -0,0 +1,383 @@
|
||||||
|
%!PS-Adobe-2.0
|
||||||
|
%%Creator: dot version 1.8.5 (Sat Jun 29 11:49:08 BST 2002)
|
||||||
|
%%For: (nik) Nik Clayton
|
||||||
|
%%Title: directory
|
||||||
|
%%Pages: (atend)
|
||||||
|
%%BoundingBox: 35 35 199 321
|
||||||
|
%%EndComments
|
||||||
|
save
|
||||||
|
%%BeginProlog
|
||||||
|
/DotDict 200 dict def
|
||||||
|
DotDict begin
|
||||||
|
|
||||||
|
/setupLatin1 {
|
||||||
|
mark
|
||||||
|
/EncodingVector 256 array def
|
||||||
|
EncodingVector 0
|
||||||
|
|
||||||
|
ISOLatin1Encoding 0 255 getinterval putinterval
|
||||||
|
|
||||||
|
EncodingVector
|
||||||
|
dup 306 /AE
|
||||||
|
dup 301 /Aacute
|
||||||
|
dup 302 /Acircumflex
|
||||||
|
dup 304 /Adieresis
|
||||||
|
dup 300 /Agrave
|
||||||
|
dup 305 /Aring
|
||||||
|
dup 303 /Atilde
|
||||||
|
dup 307 /Ccedilla
|
||||||
|
dup 311 /Eacute
|
||||||
|
dup 312 /Ecircumflex
|
||||||
|
dup 313 /Edieresis
|
||||||
|
dup 310 /Egrave
|
||||||
|
dup 315 /Iacute
|
||||||
|
dup 316 /Icircumflex
|
||||||
|
dup 317 /Idieresis
|
||||||
|
dup 314 /Igrave
|
||||||
|
dup 334 /Udieresis
|
||||||
|
dup 335 /Yacute
|
||||||
|
dup 376 /thorn
|
||||||
|
dup 337 /germandbls
|
||||||
|
dup 341 /aacute
|
||||||
|
dup 342 /acircumflex
|
||||||
|
dup 344 /adieresis
|
||||||
|
dup 346 /ae
|
||||||
|
dup 340 /agrave
|
||||||
|
dup 345 /aring
|
||||||
|
dup 347 /ccedilla
|
||||||
|
dup 351 /eacute
|
||||||
|
dup 352 /ecircumflex
|
||||||
|
dup 353 /edieresis
|
||||||
|
dup 350 /egrave
|
||||||
|
dup 355 /iacute
|
||||||
|
dup 356 /icircumflex
|
||||||
|
dup 357 /idieresis
|
||||||
|
dup 354 /igrave
|
||||||
|
dup 360 /dcroat
|
||||||
|
dup 361 /ntilde
|
||||||
|
dup 363 /oacute
|
||||||
|
dup 364 /ocircumflex
|
||||||
|
dup 366 /odieresis
|
||||||
|
dup 362 /ograve
|
||||||
|
dup 365 /otilde
|
||||||
|
dup 370 /oslash
|
||||||
|
dup 372 /uacute
|
||||||
|
dup 373 /ucircumflex
|
||||||
|
dup 374 /udieresis
|
||||||
|
dup 371 /ugrave
|
||||||
|
dup 375 /yacute
|
||||||
|
dup 377 /ydieresis
|
||||||
|
|
||||||
|
% Set up ISO Latin 1 character encoding
|
||||||
|
/starnetISO {
|
||||||
|
dup dup findfont dup length dict begin
|
||||||
|
{ 1 index /FID ne { def }{ pop pop } ifelse
|
||||||
|
} forall
|
||||||
|
/Encoding EncodingVector def
|
||||||
|
currentdict end definefont
|
||||||
|
} def
|
||||||
|
/Times-Roman starnetISO def
|
||||||
|
/Times-Italic starnetISO def
|
||||||
|
/Times-Bold starnetISO def
|
||||||
|
/Times-BoldItalic starnetISO def
|
||||||
|
/Helvetica starnetISO def
|
||||||
|
/Helvetica-Oblique starnetISO def
|
||||||
|
/Helvetica-Bold starnetISO def
|
||||||
|
/Helvetica-BoldOblique starnetISO def
|
||||||
|
/Courier starnetISO def
|
||||||
|
/Courier-Oblique starnetISO def
|
||||||
|
/Courier-Bold starnetISO def
|
||||||
|
/Courier-BoldOblique starnetISO def
|
||||||
|
cleartomark
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
%%BeginResource: procset
|
||||||
|
/coord-font-family /Times-Roman def
|
||||||
|
/default-font-family /Times-Roman def
|
||||||
|
/coordfont coord-font-family findfont 8 scalefont def
|
||||||
|
|
||||||
|
/InvScaleFactor 1.0 def
|
||||||
|
/set_scale {
|
||||||
|
dup 1 exch div /InvScaleFactor exch def
|
||||||
|
dup scale
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
% styles
|
||||||
|
/solid { } bind def
|
||||||
|
/dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def
|
||||||
|
/dotted { [1 InvScaleFactor mul 6 InvScaleFactor mul] 0 setdash } bind def
|
||||||
|
/invis {/fill {newpath} def /stroke {newpath} def /show {pop newpath} def} bind def
|
||||||
|
/bold { 2 setlinewidth } bind def
|
||||||
|
/filled { } bind def
|
||||||
|
/unfilled { } bind def
|
||||||
|
/rounded { } bind def
|
||||||
|
/diagonals { } bind def
|
||||||
|
|
||||||
|
% hooks for setting color
|
||||||
|
/nodecolor { sethsbcolor } bind def
|
||||||
|
/edgecolor { sethsbcolor } bind def
|
||||||
|
/graphcolor { sethsbcolor } bind def
|
||||||
|
/nopcolor {pop pop pop} bind def
|
||||||
|
|
||||||
|
/beginpage { % i j npages
|
||||||
|
/npages exch def
|
||||||
|
/j exch def
|
||||||
|
/i exch def
|
||||||
|
/str 10 string def
|
||||||
|
npages 1 gt {
|
||||||
|
gsave
|
||||||
|
coordfont setfont
|
||||||
|
0 0 moveto
|
||||||
|
(\() show i str cvs show (,) show j str cvs show (\)) show
|
||||||
|
grestore
|
||||||
|
} if
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/set_font {
|
||||||
|
findfont exch
|
||||||
|
scalefont setfont
|
||||||
|
} def
|
||||||
|
|
||||||
|
% draw aligned label in bounding box aligned to current point
|
||||||
|
/alignedtext { % width adj text
|
||||||
|
/text exch def
|
||||||
|
/adj exch def
|
||||||
|
/width exch def
|
||||||
|
gsave
|
||||||
|
width 0 gt {
|
||||||
|
text stringwidth pop adj mul 0 rmoveto
|
||||||
|
} if
|
||||||
|
[] 0 setdash
|
||||||
|
text show
|
||||||
|
grestore
|
||||||
|
} def
|
||||||
|
|
||||||
|
/boxprim { % xcorner ycorner xsize ysize
|
||||||
|
4 2 roll
|
||||||
|
moveto
|
||||||
|
2 copy
|
||||||
|
exch 0 rlineto
|
||||||
|
0 exch rlineto
|
||||||
|
pop neg 0 rlineto
|
||||||
|
closepath
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/ellipse_path {
|
||||||
|
/ry exch def
|
||||||
|
/rx exch def
|
||||||
|
/y exch def
|
||||||
|
/x exch def
|
||||||
|
matrix currentmatrix
|
||||||
|
newpath
|
||||||
|
x y translate
|
||||||
|
rx ry scale
|
||||||
|
0 0 1 0 360 arc
|
||||||
|
setmatrix
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/endpage { showpage } bind def
|
||||||
|
|
||||||
|
/layercolorseq
|
||||||
|
[ % layer color sequence - darkest to lightest
|
||||||
|
[0 0 0]
|
||||||
|
[.2 .8 .8]
|
||||||
|
[.4 .8 .8]
|
||||||
|
[.6 .8 .8]
|
||||||
|
[.8 .8 .8]
|
||||||
|
]
|
||||||
|
def
|
||||||
|
|
||||||
|
/setlayer {/maxlayer exch def /curlayer exch def
|
||||||
|
layercolorseq curlayer get
|
||||||
|
aload pop sethsbcolor
|
||||||
|
/nodecolor {nopcolor} def
|
||||||
|
/edgecolor {nopcolor} def
|
||||||
|
/graphcolor {nopcolor} def
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/onlayer { curlayer ne {invis} if } def
|
||||||
|
|
||||||
|
/onlayers {
|
||||||
|
/myupper exch def
|
||||||
|
/mylower exch def
|
||||||
|
curlayer mylower lt
|
||||||
|
curlayer myupper gt
|
||||||
|
or
|
||||||
|
{invis} if
|
||||||
|
} def
|
||||||
|
|
||||||
|
/curlayer 0 def
|
||||||
|
|
||||||
|
%%EndResource
|
||||||
|
%%EndProlog
|
||||||
|
%%BeginSetup
|
||||||
|
14 default-font-family set_font
|
||||||
|
1 setmiterlimit
|
||||||
|
% /arrowlength 10 def
|
||||||
|
% /arrowwidth 5 def
|
||||||
|
|
||||||
|
% make sure pdfmark is harmless for PS-interpreters other than Distiller
|
||||||
|
/pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse
|
||||||
|
% make '<<' and '>>' safe on PS Level 1 devices
|
||||||
|
/languagelevel where {pop languagelevel}{1} ifelse
|
||||||
|
2 lt {
|
||||||
|
userdict (<<) cvn ([) cvn load put
|
||||||
|
userdict (>>) cvn ([) cvn load put
|
||||||
|
} if
|
||||||
|
|
||||||
|
%%EndSetup
|
||||||
|
%%Page: 1 1
|
||||||
|
%%PageBoundingBox: 36 36 199 321
|
||||||
|
%%PageOrientation: Portrait
|
||||||
|
gsave
|
||||||
|
35 35 164 286 boxprim clip newpath
|
||||||
|
36 36 translate
|
||||||
|
0 0 1 beginpage
|
||||||
|
0 0 translate 0 rotate
|
||||||
|
0.000 0.000 0.000 graphcolor
|
||||||
|
14.00 /Times-Roman set_font
|
||||||
|
|
||||||
|
% root
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 250 31 25 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 253 moveto 33 -0.5 (Root) alignedtext
|
||||||
|
63 237 moveto 5 -0.5 (/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A1/
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 170 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 165 moveto 23 -0.5 (A1/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% root -> A1/
|
||||||
|
newpath 52 226 moveto
|
||||||
|
48 216 43 205 39 195 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 37 197 moveto
|
||||||
|
35 187 lineto
|
||||||
|
42 195 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% A2/
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 170 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 165 moveto 26 -0.5 (A2/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% root -> A2/
|
||||||
|
newpath 74 226 moveto
|
||||||
|
78 216 83 205 87 195 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 84 195 moveto
|
||||||
|
91 187 lineto
|
||||||
|
89 197 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% B1/
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 98 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
63 93 moveto 21 -0.5 (B1/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A2/ -> B1/
|
||||||
|
newpath 90 153 moveto
|
||||||
|
86 144 81 134 76 124 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 74 125 moveto
|
||||||
|
72 115 lineto
|
||||||
|
78 123 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% B2/
|
||||||
|
gsave 10 dict begin
|
||||||
|
135 98 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
135 93 moveto 24 -0.5 (B2/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A2/ -> B2/
|
||||||
|
newpath 108 153 moveto
|
||||||
|
112 144 117 134 122 124 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 120 123 moveto
|
||||||
|
126 115 lineto
|
||||||
|
124 125 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% C1/
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 21 moveto 21 -0.5 (C1/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% B1/ -> C1/
|
||||||
|
newpath 54 81 moveto
|
||||||
|
50 72 45 62 40 52 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 38 53 moveto
|
||||||
|
36 43 lineto
|
||||||
|
42 51 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% C2/
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 21 moveto 24 -0.5 (C2/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% B1/ -> C2/
|
||||||
|
newpath 72 81 moveto
|
||||||
|
76 72 81 62 86 52 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 84 51 moveto
|
||||||
|
90 43 lineto
|
||||||
|
88 53 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
endpage
|
||||||
|
grestore
|
||||||
|
%%PageTrailer
|
||||||
|
%%EndPage: 1
|
||||||
|
%%Trailer
|
||||||
|
%%Pages: 1
|
||||||
|
end
|
||||||
|
restore
|
||||||
|
%%EOF
|
||||||
383
share/images/books/handbook/basics/example-dir5.eps
Normal file
383
share/images/books/handbook/basics/example-dir5.eps
Normal file
|
|
@ -0,0 +1,383 @@
|
||||||
|
%!PS-Adobe-2.0
|
||||||
|
%%Creator: dot version 1.8.5 (Sat Jun 29 11:49:08 BST 2002)
|
||||||
|
%%For: (nik) Nik Clayton
|
||||||
|
%%Title: directory
|
||||||
|
%%Pages: (atend)
|
||||||
|
%%BoundingBox: 35 35 307 249
|
||||||
|
%%EndComments
|
||||||
|
save
|
||||||
|
%%BeginProlog
|
||||||
|
/DotDict 200 dict def
|
||||||
|
DotDict begin
|
||||||
|
|
||||||
|
/setupLatin1 {
|
||||||
|
mark
|
||||||
|
/EncodingVector 256 array def
|
||||||
|
EncodingVector 0
|
||||||
|
|
||||||
|
ISOLatin1Encoding 0 255 getinterval putinterval
|
||||||
|
|
||||||
|
EncodingVector
|
||||||
|
dup 306 /AE
|
||||||
|
dup 301 /Aacute
|
||||||
|
dup 302 /Acircumflex
|
||||||
|
dup 304 /Adieresis
|
||||||
|
dup 300 /Agrave
|
||||||
|
dup 305 /Aring
|
||||||
|
dup 303 /Atilde
|
||||||
|
dup 307 /Ccedilla
|
||||||
|
dup 311 /Eacute
|
||||||
|
dup 312 /Ecircumflex
|
||||||
|
dup 313 /Edieresis
|
||||||
|
dup 310 /Egrave
|
||||||
|
dup 315 /Iacute
|
||||||
|
dup 316 /Icircumflex
|
||||||
|
dup 317 /Idieresis
|
||||||
|
dup 314 /Igrave
|
||||||
|
dup 334 /Udieresis
|
||||||
|
dup 335 /Yacute
|
||||||
|
dup 376 /thorn
|
||||||
|
dup 337 /germandbls
|
||||||
|
dup 341 /aacute
|
||||||
|
dup 342 /acircumflex
|
||||||
|
dup 344 /adieresis
|
||||||
|
dup 346 /ae
|
||||||
|
dup 340 /agrave
|
||||||
|
dup 345 /aring
|
||||||
|
dup 347 /ccedilla
|
||||||
|
dup 351 /eacute
|
||||||
|
dup 352 /ecircumflex
|
||||||
|
dup 353 /edieresis
|
||||||
|
dup 350 /egrave
|
||||||
|
dup 355 /iacute
|
||||||
|
dup 356 /icircumflex
|
||||||
|
dup 357 /idieresis
|
||||||
|
dup 354 /igrave
|
||||||
|
dup 360 /dcroat
|
||||||
|
dup 361 /ntilde
|
||||||
|
dup 363 /oacute
|
||||||
|
dup 364 /ocircumflex
|
||||||
|
dup 366 /odieresis
|
||||||
|
dup 362 /ograve
|
||||||
|
dup 365 /otilde
|
||||||
|
dup 370 /oslash
|
||||||
|
dup 372 /uacute
|
||||||
|
dup 373 /ucircumflex
|
||||||
|
dup 374 /udieresis
|
||||||
|
dup 371 /ugrave
|
||||||
|
dup 375 /yacute
|
||||||
|
dup 377 /ydieresis
|
||||||
|
|
||||||
|
% Set up ISO Latin 1 character encoding
|
||||||
|
/starnetISO {
|
||||||
|
dup dup findfont dup length dict begin
|
||||||
|
{ 1 index /FID ne { def }{ pop pop } ifelse
|
||||||
|
} forall
|
||||||
|
/Encoding EncodingVector def
|
||||||
|
currentdict end definefont
|
||||||
|
} def
|
||||||
|
/Times-Roman starnetISO def
|
||||||
|
/Times-Italic starnetISO def
|
||||||
|
/Times-Bold starnetISO def
|
||||||
|
/Times-BoldItalic starnetISO def
|
||||||
|
/Helvetica starnetISO def
|
||||||
|
/Helvetica-Oblique starnetISO def
|
||||||
|
/Helvetica-Bold starnetISO def
|
||||||
|
/Helvetica-BoldOblique starnetISO def
|
||||||
|
/Courier starnetISO def
|
||||||
|
/Courier-Oblique starnetISO def
|
||||||
|
/Courier-Bold starnetISO def
|
||||||
|
/Courier-BoldOblique starnetISO def
|
||||||
|
cleartomark
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
%%BeginResource: procset
|
||||||
|
/coord-font-family /Times-Roman def
|
||||||
|
/default-font-family /Times-Roman def
|
||||||
|
/coordfont coord-font-family findfont 8 scalefont def
|
||||||
|
|
||||||
|
/InvScaleFactor 1.0 def
|
||||||
|
/set_scale {
|
||||||
|
dup 1 exch div /InvScaleFactor exch def
|
||||||
|
dup scale
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
% styles
|
||||||
|
/solid { } bind def
|
||||||
|
/dashed { [9 InvScaleFactor mul dup ] 0 setdash } bind def
|
||||||
|
/dotted { [1 InvScaleFactor mul 6 InvScaleFactor mul] 0 setdash } bind def
|
||||||
|
/invis {/fill {newpath} def /stroke {newpath} def /show {pop newpath} def} bind def
|
||||||
|
/bold { 2 setlinewidth } bind def
|
||||||
|
/filled { } bind def
|
||||||
|
/unfilled { } bind def
|
||||||
|
/rounded { } bind def
|
||||||
|
/diagonals { } bind def
|
||||||
|
|
||||||
|
% hooks for setting color
|
||||||
|
/nodecolor { sethsbcolor } bind def
|
||||||
|
/edgecolor { sethsbcolor } bind def
|
||||||
|
/graphcolor { sethsbcolor } bind def
|
||||||
|
/nopcolor {pop pop pop} bind def
|
||||||
|
|
||||||
|
/beginpage { % i j npages
|
||||||
|
/npages exch def
|
||||||
|
/j exch def
|
||||||
|
/i exch def
|
||||||
|
/str 10 string def
|
||||||
|
npages 1 gt {
|
||||||
|
gsave
|
||||||
|
coordfont setfont
|
||||||
|
0 0 moveto
|
||||||
|
(\() show i str cvs show (,) show j str cvs show (\)) show
|
||||||
|
grestore
|
||||||
|
} if
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/set_font {
|
||||||
|
findfont exch
|
||||||
|
scalefont setfont
|
||||||
|
} def
|
||||||
|
|
||||||
|
% draw aligned label in bounding box aligned to current point
|
||||||
|
/alignedtext { % width adj text
|
||||||
|
/text exch def
|
||||||
|
/adj exch def
|
||||||
|
/width exch def
|
||||||
|
gsave
|
||||||
|
width 0 gt {
|
||||||
|
text stringwidth pop adj mul 0 rmoveto
|
||||||
|
} if
|
||||||
|
[] 0 setdash
|
||||||
|
text show
|
||||||
|
grestore
|
||||||
|
} def
|
||||||
|
|
||||||
|
/boxprim { % xcorner ycorner xsize ysize
|
||||||
|
4 2 roll
|
||||||
|
moveto
|
||||||
|
2 copy
|
||||||
|
exch 0 rlineto
|
||||||
|
0 exch rlineto
|
||||||
|
pop neg 0 rlineto
|
||||||
|
closepath
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/ellipse_path {
|
||||||
|
/ry exch def
|
||||||
|
/rx exch def
|
||||||
|
/y exch def
|
||||||
|
/x exch def
|
||||||
|
matrix currentmatrix
|
||||||
|
newpath
|
||||||
|
x y translate
|
||||||
|
rx ry scale
|
||||||
|
0 0 1 0 360 arc
|
||||||
|
setmatrix
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/endpage { showpage } bind def
|
||||||
|
|
||||||
|
/layercolorseq
|
||||||
|
[ % layer color sequence - darkest to lightest
|
||||||
|
[0 0 0]
|
||||||
|
[.2 .8 .8]
|
||||||
|
[.4 .8 .8]
|
||||||
|
[.6 .8 .8]
|
||||||
|
[.8 .8 .8]
|
||||||
|
]
|
||||||
|
def
|
||||||
|
|
||||||
|
/setlayer {/maxlayer exch def /curlayer exch def
|
||||||
|
layercolorseq curlayer get
|
||||||
|
aload pop sethsbcolor
|
||||||
|
/nodecolor {nopcolor} def
|
||||||
|
/edgecolor {nopcolor} def
|
||||||
|
/graphcolor {nopcolor} def
|
||||||
|
} bind def
|
||||||
|
|
||||||
|
/onlayer { curlayer ne {invis} if } def
|
||||||
|
|
||||||
|
/onlayers {
|
||||||
|
/myupper exch def
|
||||||
|
/mylower exch def
|
||||||
|
curlayer mylower lt
|
||||||
|
curlayer myupper gt
|
||||||
|
or
|
||||||
|
{invis} if
|
||||||
|
} def
|
||||||
|
|
||||||
|
/curlayer 0 def
|
||||||
|
|
||||||
|
%%EndResource
|
||||||
|
%%EndProlog
|
||||||
|
%%BeginSetup
|
||||||
|
14 default-font-family set_font
|
||||||
|
1 setmiterlimit
|
||||||
|
% /arrowlength 10 def
|
||||||
|
% /arrowwidth 5 def
|
||||||
|
|
||||||
|
% make sure pdfmark is harmless for PS-interpreters other than Distiller
|
||||||
|
/pdfmark where {pop} {userdict /pdfmark /cleartomark load put} ifelse
|
||||||
|
% make '<<' and '>>' safe on PS Level 1 devices
|
||||||
|
/languagelevel where {pop languagelevel}{1} ifelse
|
||||||
|
2 lt {
|
||||||
|
userdict (<<) cvn ([) cvn load put
|
||||||
|
userdict (>>) cvn ([) cvn load put
|
||||||
|
} if
|
||||||
|
|
||||||
|
%%EndSetup
|
||||||
|
%%Page: 1 1
|
||||||
|
%%PageBoundingBox: 36 36 307 249
|
||||||
|
%%PageOrientation: Portrait
|
||||||
|
gsave
|
||||||
|
35 35 272 214 boxprim clip newpath
|
||||||
|
36 36 translate
|
||||||
|
0 0 1 beginpage
|
||||||
|
0 0 translate 0 rotate
|
||||||
|
0.000 0.000 0.000 graphcolor
|
||||||
|
14.00 /Times-Roman set_font
|
||||||
|
|
||||||
|
% root
|
||||||
|
gsave 10 dict begin
|
||||||
|
135 178 31 25 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
135 181 moveto 33 -0.5 (Root) alignedtext
|
||||||
|
135 165 moveto 5 -0.5 (/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A1/
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 98 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 93 moveto 23 -0.5 (A1/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% root -> A1/
|
||||||
|
newpath 124 154 moveto
|
||||||
|
120 144 115 133 111 123 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 109 125 moveto
|
||||||
|
107 115 lineto
|
||||||
|
114 123 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% A2/
|
||||||
|
gsave 10 dict begin
|
||||||
|
171 98 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
171 93 moveto 26 -0.5 (A2/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% root -> A2/
|
||||||
|
newpath 146 154 moveto
|
||||||
|
150 144 155 133 159 123 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 156 123 moveto
|
||||||
|
163 115 lineto
|
||||||
|
161 125 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% C1/
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
27 21 moveto 21 -0.5 (C1/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A1/ -> C1/
|
||||||
|
newpath 84 83 moveto
|
||||||
|
74 73 61 60 49 48 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 47 50 moveto
|
||||||
|
42 41 lineto
|
||||||
|
51 46 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% C2/
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
99 21 moveto 24 -0.5 (C2/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A1/ -> C2/
|
||||||
|
newpath 99 80 moveto
|
||||||
|
99 72 99 63 99 54 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 97 54 moveto
|
||||||
|
99 44 lineto
|
||||||
|
102 54 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% B1/
|
||||||
|
gsave 10 dict begin
|
||||||
|
171 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
171 21 moveto 21 -0.5 (B1/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A2/ -> B1/
|
||||||
|
newpath 171 80 moveto
|
||||||
|
171 72 171 63 171 54 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 169 54 moveto
|
||||||
|
171 44 lineto
|
||||||
|
174 54 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
|
||||||
|
% B2/
|
||||||
|
gsave 10 dict begin
|
||||||
|
243 26 27 18 ellipse_path
|
||||||
|
stroke
|
||||||
|
gsave 10 dict begin
|
||||||
|
243 21 moveto 24 -0.5 (B2/) alignedtext
|
||||||
|
end grestore
|
||||||
|
end grestore
|
||||||
|
|
||||||
|
% A2/ -> B2/
|
||||||
|
newpath 186 83 moveto
|
||||||
|
196 73 209 60 221 48 curveto
|
||||||
|
stroke
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
newpath 219 46 moveto
|
||||||
|
228 41 lineto
|
||||||
|
223 50 lineto
|
||||||
|
closepath
|
||||||
|
fill
|
||||||
|
0.000 0.000 0.000 edgecolor
|
||||||
|
endpage
|
||||||
|
grestore
|
||||||
|
%%PageTrailer
|
||||||
|
%%EndPage: 1
|
||||||
|
%%Trailer
|
||||||
|
%%Pages: 1
|
||||||
|
end
|
||||||
|
restore
|
||||||
|
%%EOF
|
||||||
Loading…
Add table
Add a link
Reference in a new issue