From: Justin C. Sherrill Date: Mon, 7 Aug 2006 13:15:52 +0000 (+0000) Subject: Remove .scr files, add replacement .png files. Add needed epsgeom script X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/7faf6998175e1fdf6463cf6a60f44326f59a7e60 Remove .scr files, add replacement .png files. Add needed epsgeom script - files I missed when doing the previous ports -> pkgsrc change. Noticed by: "Victor Balada Diaz" --- diff --git a/share/images/books/handbook/mail/mutt1.png b/share/images/books/handbook/mail/mutt1.png new file mode 100644 index 0000000000..3c5b9908ba Binary files /dev/null and b/share/images/books/handbook/mail/mutt1.png differ diff --git a/share/images/books/handbook/mail/mutt1.scr b/share/images/books/handbook/mail/mutt1.scr deleted file mode 100644 index ae895e4a6e..0000000000 --- a/share/images/books/handbook/mail/mutt1.scr +++ /dev/null @@ -1 +0,0 @@ -SCRSHOT_Pqp:pQpupiptp p pdp:pDpeplp p pup:pUpnpdpeplp p psp:pSpapvpep p pmp:pMpapiplp p prp:pRpeppplpyp p pgp:pGprpopuppp p p?p:pHpeplppp p p p p p p p p p p p p p p p p p p p1p pNp p p pMpaprp p0p9p pSpupppeprp-pUpspeprp p p p p p p(p p p p1p)p ptpepsptp p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p   2 N   Mar 09 Super-User      (   1) user account                                3 N   Mar 09 Super-User      (   1) sample                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   -p*p-pMpuptptp:p p/pvpaprp/pmpapiplp/pmpaprpcpsp p[pMpspgpsp:p3p pNpepwp:p3p p1p.p6pKp]p-p-p-p(pdpaptpep/pdpaptpep)p-p-p-p-p-p-p-p-p-p-p-p-p-p-p(paplplp)p-p-p-p                                                                                 \ No newline at end of file diff --git a/share/images/books/handbook/mail/mutt2.png b/share/images/books/handbook/mail/mutt2.png new file mode 100644 index 0000000000..d89ac6bfa4 Binary files /dev/null and b/share/images/books/handbook/mail/mutt2.png differ diff --git a/share/images/books/handbook/mail/mutt2.scr b/share/images/books/handbook/mail/mutt2.scr deleted file mode 100644 index 4c262d4d1d..0000000000 --- a/share/images/books/handbook/mail/mutt2.scr +++ /dev/null @@ -1 +0,0 @@ -SCRSHOT_Pip:pEpxpiptp p p-p:pPprpepvpPpgp p pp:pNpepxptpPpgp pvp:pVpipepwp pAptptpapcphpmp.p p pdp:pDpeplp p prp:pRpeppplpyp p pjp:pNpepxptp p?p:pHpeplppp pX-Original-To: marcs@localhost                                                  Delivered-To: marcs@localhost                                                   To: marcs@localhost                                                             Subject: test                                                                   Date: Tue,  9 Mar 2004 10:28:36 +0200 (SAST)                                    From: Super-User <root@localhost>                                                                                                                               This is a test message, please reply if you receieve it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        -pNp p p-p p1p/p1p:p pSpupppeprp-pUpspeprp p p p p p p p p p p p p ptpepsptp p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p-p-p p(paplplp)p p                                                                                 \ No newline at end of file diff --git a/share/images/books/handbook/mail/mutt3.png b/share/images/books/handbook/mail/mutt3.png new file mode 100644 index 0000000000..28b56a6438 Binary files /dev/null and b/share/images/books/handbook/mail/mutt3.png differ diff --git a/share/images/books/handbook/mail/mutt3.scr b/share/images/books/handbook/mail/mutt3.scr deleted file mode 100644 index 1aa59dd150..0000000000 --- a/share/images/books/handbook/mail/mutt3.scr +++ /dev/null @@ -1 +0,0 @@ -SCRSHOT_Pyp:pSpepnpdp p pqp:pApbpoprptp p ptp:pTpop p pcp:pCpCp p psp:pSpupbpjp p pap:pAptptpapcphp pfpiplpep p pdp:pDpepspcprpippp p p?p:pHpeplppp p p p p p p p p p p p    From: Marc Silver <marcs@localhost>                                               To: Super-User <root@localhost>                                                 Cc:                                                                            Bcc:                                                                        Subject: Re: test                                                              Reply-To:                                                                            Fcc:                                                                       Security: Clear                                                                                                                                                                                                                                 -p-p pAptptpapcphpmpepnptpsp p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p-p pIp p p p p p1p p/ptpmppp/pmpuptptp-pbpspdp-pcp0phpopbpspcpQp p p p p p p p p p p p p p[ptpepxptp/ppplpapipnp,p p7pbpiptp,p pupsp-papspcpipip,p p1p.p1pKp]p p                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                -p-p pMpuptptp:p pCpopmpppopspep p p[pAppppprpopxp.p pmpspgp pspipzpep:p p1p.p1pKp p p pAptptpsp:p p1p]p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p-p                                                                                 \ No newline at end of file diff --git a/share/images/books/handbook/mail/pine1.png b/share/images/books/handbook/mail/pine1.png new file mode 100644 index 0000000000..a0e15628bd Binary files /dev/null and b/share/images/books/handbook/mail/pine1.png differ diff --git a/share/images/books/handbook/mail/pine1.scr b/share/images/books/handbook/mail/pine1.scr deleted file mode 100644 index a935f9f3fe..0000000000 --- a/share/images/books/handbook/mail/pine1.scr +++ /dev/null @@ -1 +0,0 @@ -SCRSHOT_P p pPpIpNpEp p4p.p5p8p p p pGpRpEpEpTpIpNpGp pTpEpXpTp p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p pNpop pMpepspspapgpepsp p p                                                                                                    <<<This message will appear only once>>>                                                                                                               Welcome to Pine ... a Program for Internet News and Email                                                                                            We hope you will explore Pine's many capabilities. From the Main Menu,          select Setup/Config to see many of the options available to you. Also           note that all screens have context-sensitive help text available.                                                                                               SPECIAL REQUEST: This software is made available world-wide as a public         service of the University of Washington in Seattle. In order to justify         continuing development, it is helpful to have an idea of how many people        are using Pine. Are you willing to be counted as a Pine user? Pressing          Rpeptpuprpnp will send an anonymous (meaning, your real email address will not        be revealed) message to the Pine development team at the University of          Washington for purposes of tallying.                                                                                                                                          Pine is a trademark of the University of Washington.                                                                                                                                                                                                                                                                                           [pApLpLp popfp pgprpepeptpipnpgp ptpepxptp]p                             ?p Help      Ep Exit this greeting              -p PrevPage %p Print                          Rpeptp [Be Counted!]                 Spppcp NextPage                         \ No newline at end of file diff --git a/share/images/books/handbook/mail/pine2.png b/share/images/books/handbook/mail/pine2.png new file mode 100644 index 0000000000..ae2748ea8d Binary files /dev/null and b/share/images/books/handbook/mail/pine2.png differ diff --git a/share/images/books/handbook/mail/pine2.scr b/share/images/books/handbook/mail/pine2.scr deleted file mode 100644 index 341075eb07..0000000000 --- a/share/images/books/handbook/mail/pine2.scr +++ /dev/null @@ -1 +0,0 @@ -SCRSHOT_P p pPpIpNpEp p4p.p5p8p p p pMpApIpNp pMpEpNpUp p p p p p p p p p p p p p p p p p p p p p p p p p p p p pFpoplpdpeprp:p pIpNpBpOpXp p p3p pMpepspspapgpepsp p p p                                                                                                                                                                          ?     HELP               -  Get help using Pine                                                                                                                 C     COMPOSE MESSAGE    -  Compose and send a message                                                                                                          pIp p p p p pMpEpSpSpApGpEp pIpNpDpEpXp p p p p p p-p p pVpipepwp pmpepspspapgpepsp pipnp pcpuprprpepnptp pfpoplpdpeprp p                                                                                                    L     FOLDER LIST        -  Select a folder to view                                                                                                             A     ADDRESS BOOK       -  Update address book                                                                                                                 S     SETUP              -  Configure Pine Options                                                                                                              Q     QUIT               -  Leave the Pine program                                                                                                                                                                                                                                                                                                                                                                                                                                       Copyright 1989-2003.  PINE is a trademark of the University of Washington.                                                                                   ?p Help                     Pp PrevCmd                 Rp RelNotes                 Op OTHER CMDS >p [Index]     Np NextCmd                 Kp KBLock                    \ No newline at end of file diff --git a/share/images/books/handbook/mail/pine3.png b/share/images/books/handbook/mail/pine3.png new file mode 100644 index 0000000000..9b2883af14 Binary files /dev/null and b/share/images/books/handbook/mail/pine3.png differ diff --git a/share/images/books/handbook/mail/pine3.scr b/share/images/books/handbook/mail/pine3.scr deleted file mode 100644 index 35abf1c8f9..0000000000 --- a/share/images/books/handbook/mail/pine3.scr +++ /dev/null @@ -1 +0,0 @@ -SCRSHOT_P p pPpIpNpEp p4p.p5p8p p p pMpEpSpSpApGpEp pIpNpDpEpXp p p p p p p p p p p p p p p p p p pFpoplpdpeprp:p pIpNpBpOpXp p pMpepspspapgpep p1p popfp p3p pApNpSp p p                                                                                 p pAp p p p1p pMpaprp p p9p pSpupppeprp-pUpspeprp p p p p p p p p p p p(p4p7p1p)p ptpepsptp p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p p  A   2 Mar  9 Super-User           (479) user account                            A   3 Mar  9 Super-User           (473) sample                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                ?p Help       

p [ViewMsg]  Np NextMsg     Spppcp NextPage Up Undelete   Fp Forward      \ No newline at end of file diff --git a/share/images/books/handbook/mail/pine4.png b/share/images/books/handbook/mail/pine4.png new file mode 100644 index 0000000000..d7a90487d9 Binary files /dev/null and b/share/images/books/handbook/mail/pine4.png differ diff --git a/share/images/books/handbook/mail/pine4.scr b/share/images/books/handbook/mail/pine4.scr deleted file mode 100644 index 953785e279..0000000000 --- a/share/images/books/handbook/mail/pine4.scr +++ /dev/null @@ -1 +0,0 @@ -SCRSHOT_P p pPpIpNpEp p4p.p5p8p p p pMpEpSpSpApGpEp pTpEpXpTp p p p p p p p p p p p p p p pFpoplpdpeprp:p pIpNpBpOpXp p pMpepspspapgpep p1p popfp p3p pApLpLp pApNpSp p p                                                                                Date: Tue,  9 Mar 2004 10:28:36 +0200 (SAST)                                    From: Super-User <root@localhost>                                               To: marcs@localhost                                                             Subject: test                                                                                                                                                   This is a test message, please reply if you receieve it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        [pApLpLp popfp pmpepspspapgpep]p                                ?p Help       

p ViewAttch  Np NextMsg     Spppcp NextPage Up Undelete   Fp Forward      \ No newline at end of file diff --git a/share/images/books/handbook/mail/pine5.png b/share/images/books/handbook/mail/pine5.png new file mode 100644 index 0000000000..c973d85f11 Binary files /dev/null and b/share/images/books/handbook/mail/pine5.png differ diff --git a/share/images/books/handbook/mail/pine5.scr b/share/images/books/handbook/mail/pine5.scr deleted file mode 100644 index f0f0569e18..0000000000 --- a/share/images/books/handbook/mail/pine5.scr +++ /dev/null @@ -1 +0,0 @@ -SCRSHOT_P p pPpIpNpEp p4p.p5p8p p p pCpOpMpPpOpSpEp pMpEpSpSpApGpEp pRpEpPpLpYp p p p p p p p p p p p p p p p p pFpoplpdpeprp:p pIpNpBpOpXp p p3p pMpepspspapgpepsp p p p                                                                                To      : Super-User <root@localhost>                                           Cc      :                                                                       Attchmnt:                                                                       Subject : Re: test                                                              -p-p-p-p-p pMpepspspapgpep pTpepxptp p-p-p-p-p-p                                                                                                                                        I did recieve your message...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ^pGp Get Help  ^pXp Send      ^pRp Read File ^pYp Prev Pg   ^pKp Cut Text  ^pOp Postpone    ^pCp Cancel    ^pJp Justify   ^pWp Where is  ^pVp Next Pg   ^pUp UnCut Text^pTp To Spell     \ No newline at end of file diff --git a/share/misc/epsgeom b/share/misc/epsgeom new file mode 100644 index 0000000000..df3ed0fc59 --- /dev/null +++ b/share/misc/epsgeom @@ -0,0 +1,103 @@ +#!/usr/bin/env perl -w +# $DragonFly: doc/share/misc/epsgeom,v 1.1 2006/08/07 13:15:52 justin Exp $ +# $FreeBSD: doc/share/misc/epsgeom,v 1.2 2004/07/23 18:58:55 hrs Exp $ +# +# epsgeom - extract geometry from a EPS file. +# +# Copyright (C) 2004 The FreeBSD Project. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# 2. Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in the +# documentation and/or other materials provided with the distribution. +# +# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND +# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +# ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE +# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS +# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) +# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +# SUCH DAMAGE. +# + +my $x; +my $y; +my $width; +my $height; + +my $gx; +my $gy; + +if (@ARGV != 4) { + die "Error: invalid arguments.\n"; +} + +my $mode = shift @ARGV; +my $hres = shift @ARGV; +my $vres = shift @ARGV; +my $file = shift @ARGV; + +my $realfile = `realpath ${file}`; +chomp $realfile; + +open IN, "<$realfile" or die "Error: cannot open $realfile.\n"; +while() { + last if (($x,$y,$width,$height) = + /^%%BoundingBox:\s+([-\d]+)\s+([-\d]+)\s+([-\d]+)\s+([-\d]+)/); + #print STDERR "DEBUG: $_"; +} +close IN; + +if (not defined($x)) { + die "Error: no BoundingBox found.\n"; +} + +$width -= $x; +$height -= $y; + +# (int)(((double)hres * (double)width / 72.0) + 0.5), +$gx = $hres * $width / 72.0 + 0.5; +# (int)(((double)vres * (double)height / 72.0) + 0.5), +$gy = $vres * $height / 72.0 + 0.5; + +my %replace = ( + '@X@' => int $x, + '@Y@' => int $y, + '@MX@' => int -$x, + '@MY@' => int -$y, + '@WIDTH@' => int $width, + '@MWIDTH@' => int -$width, + '@HEIGHT@' => int $height, + '@MHEIGHT@' => int -$height, + '@ANGLE@' => int 0, + '@INPUT@' => $realfile, + ); + +if ($mode eq "-replace") { + foreach my $i (keys %replace) { + printf "-e s,%s,%s,g ", $i, $replace{$i}; + } +} elsif ($mode eq "-offset") { + #print STDERR "DEBUG: (int -$x), $y\n"; + printf "<< /PageOffset [%d %d] >> setpagedevice\n", (int -$x), $y; + open IN, "<$realfile" or die "Error: cannot open $realfile.\n"; + print while(); + close IN; + print "\n"; + print "showpage\n"; +} elsif ($mode eq "-geom") { + #print STDERR "DEBUG: $x,$y,$width,$height\n"; + printf "%dx%d", $gx, $gy; +} else { + die "Error: invalid mode specified.\n"; +} + +__END__