Date: Sat, 1 Feb 2003 23:16:54 +0200 From: Giorgos Keramidas <keramida@freebsd.org> To: freebsd-doc@freebsd.org Subject: PIC images for non-ascii output Message-ID: <20030201211654.GA15383@gothmog.gr>
next in thread | raw e-mail | index | archive | help
I have locally tested the attached patch tonight. It adds a pic(1) image to the "checkpoint" article and makes use of a <mediaobject> to pull it in those versions of output that can display images. Does it look ok to you all? Should I commit it, and try to create more pic(1) images for the remaining ASCII-art-only diagrams and/or pictures we use in the docs? %%% Index: Makefile =================================================================== RCS file: /home/giorgos/cvsroot/giorgos/fx/doc/en_US.ISO8859-1/articles/checkpoint/Makefile,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -r1.1.1.1 -r1.2 --- Makefile 30 Dec 2002 02:40:45 -0000 1.1.1.1 +++ Makefile 1 Feb 2003 20:20:46 -0000 1.2 @@ -9,6 +9,8 @@ SRCS= article.sgml +IMAGES= networks.pic + DOC_PREFIX?= ${.CURDIR}/../../.. .include "${DOC_PREFIX}/share/mk/doc.project.mk" Index: article.sgml =================================================================== RCS file: /home/giorgos/cvsroot/giorgos/fx/doc/en_US.ISO8859-1/articles/checkpoint/article.sgml,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- article.sgml 22 Jan 2003 19:44:57 -0000 1.12 +++ article.sgml 1 Feb 2003 20:20:46 -0000 1.13 @@ -83,13 +83,25 @@ <para>The following is a diagram of the machines and networks referenced in this document.</para> -<programlisting>External Interface External Interface + <mediaobject> + <imageobject> + <imagedata fileref="networks"> + </imageobject> + + <textobject> + <literallayout class="monospaced">External Interface External Interface 208.229.100.6 216.218.197.2 | | +--> Firewall-1 <--> Internet <--> FreeBSD GW <--+ | | FW-1 Protected Nets Internal Nets -199.208.192.0/24 192.168.10.0/24</programlisting> +199.208.192.0/24 192.168.10.0/24</literallayout> + </textobject> + + <textobject> + <phrase>FW-1 net and FreeBSD net</phrase> + </textobject> + </mediaobject> <para>The FreeBSD gateway <acronym>GW</acronym> serves as a firewall and <acronym>NAT</acronym> device for <quote>internal nets.</quote></para> Index: networks.pic =================================================================== RCS file: networks.pic diff -N networks.pic --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ networks.pic 1 Feb 2003 20:20:46 -0000 1.1 @@ -0,0 +1,29 @@ + +.PS + +A: box "Firewall-1" right; +B: line 1.4; +C: box "Internet" dashed; +D: line 1.4; +E: box "FreeBSD GW" wid 1.0; + +F: line down at A.s; +G: box ht .04 wid 1.8 fill \ + with .nw at F.s - (.4,0); + +H: line down at E.s; +I: box ht .04 wid 1.8 fill \ + with .ne at H.s + (.4,0); + +box ht .2 invis "\fC\s-2 208.229.100.6\s+2\fP" \ + with .sw at B.nw + (.06,0); +box ht .2 invis "\fC\s-2 216.218.197.2\s+2\fP" \ + with .se at D.e - (.12,0); +box wid 1.2 invis \ + "\fC\s-2199.208.192.0/24\s+2\fP" "FW-1 protected nets" \ + with .nw at G.w; +box wid 1.2 invis \ + "\fC\s-2199.208.192.0/24\s+2\fP" "internal nets" \ + with .ne at I.e; + +.PE %%% To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030201211654.GA15383>