debian/0000755000000000000000000000000012034573226007172 5ustar debian/copyright0000644000000000000000000004651511602632156011136 0ustar Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174 Upstream-Name: PS2EPS Upstream-Contact: Roland Bless Source: http://tm.uka.de/~bless/ps2eps Files: * Copyright: 1999-2010 Roland Bless License: GPL-2+ Files: doc/man/man1/bbox.1 doc/man/man1/ps2eps.1 Copyright: 2003 Rafael Laboissiere 2004-2010 Roland Bless License: GFDL-NIV-1.1+ Files: debian/* Copyright: 2003-2009 Rafael Laboissiere 2011 Matteo Cypriani License: GPL-3+ License: GPL-2+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file '/usr/share/common-licenses/GPL-2'. License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU General Public License version 3 can be found in the file '/usr/share/common-licenses/GPL-3'. License: GFDL-NIV-1.1+ Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. . . GNU Free Documentation License Version 1.1, March 2000 . Copyright (C) 2000 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. . . 0. PREAMBLE . The purpose of this License is to make a manual, textbook, or other written document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others. . This License is a kind of "copyleft", which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software. . We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference. . . 1. APPLICABILITY AND DEFINITIONS . This License applies to any manual or other work that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. The "Document", below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as "you". . A "Modified Version" of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language. . A "Secondary Section" is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (For example, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them. . The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. . The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. . A "Transparent" copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, whose contents can be viewed and edited directly and straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup has been designed to thwart or discourage subsequent modification by readers is not Transparent. A copy that is not "Transparent" is called "Opaque". . Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML designed for human modification. Opaque formats include PostScript, PDF, proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML produced by some word processors for output purposes only. . The "Title Page" means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, "Title Page" means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text. . . 2. VERBATIM COPYING . You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3. . You may also lend copies, under the same conditions stated above, and you may publicly display copies. . . 3. COPYING IN QUANTITY . If you publish printed copies of the Document numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. . If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages. . If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a publicly-accessible computer-network location containing a complete Transparent copy of the Document, free of added material, which the general network-using public has access to download anonymously at no charge using public-standard network protocols. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public. . It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. . . 4. MODIFICATIONS . You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version: . A. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission. B. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has less than five). C. State on the Title page the name of the publisher of the Modified Version, as the publisher. D. Preserve all the copyright notices of the Document. E. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices. F. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below. G. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice. H. Include an unaltered copy of this License. I. Preserve the section entitled "History", and its title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section entitled "History" in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence. J. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the "History" section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission. K. In any section entitled "Acknowledgements" or "Dedications", preserve the section's title, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein. L. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles. M. Delete any section entitled "Endorsements". Such a section may not be included in the Modified Version. N. Do not retitle any existing section as "Endorsements" or to conflict in title with any Invariant Section. . If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles. . You may add a section entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties--for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. . You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one. . The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. . . 5. COMBINING DOCUMENTS . You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice. . The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. . In the combination, you must combine any sections entitled "History" in the various original documents, forming one section entitled "History"; likewise combine any sections entitled "Acknowledgements", and any sections entitled "Dedications". You must delete all sections entitled "Endorsements." . . 6. COLLECTIONS OF DOCUMENTS . You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. . You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document. . . 7. AGGREGATION WITH INDEPENDENT WORKS . A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, does not as a whole count as a Modified Version of the Document, provided no compilation copyright is claimed for the compilation. Such a compilation is called an "aggregate", and this License does not apply to the other self-contained works thus compiled with the Document, on account of their being thus compiled, if they are not themselves derivative works of the Document. . If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one quarter of the entire aggregate, the Document's Cover Texts may be placed on covers that surround only the Document within the aggregate. Otherwise they must appear on covers around the whole aggregate. . . 8. TRANSLATION . Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License provided that you also include the original English version of this License. In case of a disagreement between the translation and the original English version of this License, the original English version will prevail. . . 9. TERMINATION . You may not copy, modify, sublicense, or distribute the Document except as expressly provided for under this License. Any other attempt to copy, modify, sublicense or distribute the Document is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. . . 10. FUTURE REVISIONS OF THIS LICENSE . The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/. . Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. debian/docs0000644000000000000000000000000711602621624010036 0ustar README debian/ps2eps.manpages0000644000000000000000000000002111602621624012110 0ustar doc/man/man1/*.1 debian/source/0000755000000000000000000000000011602632310010460 5ustar debian/source/format0000644000000000000000000000001411602621624011674 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000001142312034573226011045 0ustar ps2eps (1.68-1build1) quantal; urgency=low * Rebuild for new armel compiler default of ARMv5t. -- Colin Watson Mon, 08 Oct 2012 16:51:50 +0100 ps2eps (1.68-1) unstable; urgency=low * New upstream release. * Adopting (Closes: #534380). * Switch to 3.0 (quilt) source format. * Switch to debhelper 8.0.0~. * Bump Standards-Version to 3.9.2. * Update VCS and Homepage fields. * Tag the patches following DEP-3. * Use the DEP-5 format for debian/copyright. -- Matteo Cypriani Tue, 28 Jun 2011 14:05:25 +0200 ps2eps (1.64-6) unstable; urgency=low * debian/rules: Use debian/clean instead of manually cleaning files * debian/compat, debian/control: Bump build-dependency on debhelper to >= 7.0.0, otherwise debian/clean is moot * debian/clean: New file * debian/control: + Bump Standards-Version to 3.8.1 (no changes needed) + The package is now maintained with Git at alioth.debian.org. Add Vcs-Git field and change Vcs-Browser accordingly. + Fix Lintian warning debhelper-but-no-misc-depends * debian/patches/{minus-sign-manpages.diff,perl-path-in-ps2eps.diff}: Add description -- Rafael Laboissiere Sun, 19 Apr 2009 22:34:48 +0200 ps2eps (1.64-5) unstable; urgency=low * debian/control: + Append trunk/ to the path in Vcs-Svn:, such that debcheckout works + Replace obsolete build-dependency on gs-esp by ghostscript + Bump Standards-Version to 3.8.0 (no changes needed) -- Rafael Laboissiere Tue, 01 Jul 2008 19:15:45 +0200 ps2eps (1.64-4) unstable; urgency=low * debian/control: Build-depend on quilt * debian/rules: + Switch from CDBS' simple-patchsys to quilt + Create rule for build-stamp * debian/patches/minus-sign-manpages.diff: Escape "-" signs that mean the "minus" character * debian/copyright: Add proper licensing conditions, both for upstream and the Debian packaging -- Rafael Laboissiere Fri, 14 Mar 2008 16:25:04 +0100 ps2eps (1.64-3) unstable; urgency=low * debian/control: + Added Vcs-Svn, Vcs-Browser, and Homepage fields + Dropped the Homepage pseudo-header from the extended description + Bumped Standards-Version to 3.7.3 -- Rafael Laboissiere Sat, 15 Dec 2007 17:56:08 +0100 ps2eps (1.64-2) unstable; urgency=low * Depends alternatively on gs-esp, because gs is a virtual package -- Rafael Laboissiere Wed, 7 Mar 2007 23:42:42 +0100 ps2eps (1.64-1) unstable; urgency=low * New upstream release * There has been a long standing bug report concerning the inappropriate filtering of lines in embedded images that look like PS comments (i.e. match /^%%/). This bug report was filed against version 1.47-1 of the package. I cannot reproduce this bug with the current version. I am therefore closing this bug report (closes: #234999). -- Rafael Laboissiere Mon, 5 Feb 2007 10:50:43 +0100 ps2eps (1.61-1) unstable; urgency=low * New upstream release * debian/rules: Switched to CDBS * debian/control: - Build-depends on cdbs - Fixed some typos/wording problems -- Rafael Laboissiere Thu, 4 Jan 2007 20:01:53 +0100 ps2eps (1.58-2) unstable; urgency=low * debian/watch: Added file * debian/control: Bumped Standards-Version to 3.7.2 (no changes needed) -- Rafael Laboissiere Tue, 27 Jun 2006 08:22:07 +0200 ps2eps (1.58-1) unstable; urgency=low * New upstream release * debian/control: Lower-cased first word of short descrition, as per Developers Reference Manual, section 6.2.2. -- Rafael Laboissiere Mon, 24 Jan 2005 17:02:48 +0100 ps2eps (1.54-1) unstable; urgency=low * New upstream release (closes: #254988). * debian/rules: - Removed build of man page from sgml source, since it has been integrated upstream. - Install upstream files README and changelog, really. * debian/patches/output-info-to-stdout.dpatch: Removed this patch, since it has been applied usptream. * debian/control: - Removed build-dependency on docbook-to-man. - Updated upstream homepage. -- Rafael Laboissiere Sat, 19 Jun 2004 21:08:54 +0200 ps2eps (1.47-1) unstable; urgency=low * First uploaded release to Debian unstable (closes: #214654). -- Rafael Laboissiere Thu, 9 Oct 2003 18:13:09 +0200 ps2eps (1.47-0.pre.2) unstable; urgency=low * debian/control, debian,copyright: Fixed Homepage. * debian/ps2eps.sgml: Added description of option "--". -- Rafael Laboissiere Wed, 8 Oct 2003 13:55:19 +0200 ps2eps (1.47-0.pre.1) unstable; urgency=low * Initial Release. -- Rafael Laboissiere Tue, 7 Oct 2003 02:27:13 +0200 debian/watch0000644000000000000000000000013111602621624010212 0ustar version=3 http://www.ipv6.tm.uka.de/~bless/ps2eps (?:.*/)?ps2eps-([\d+\.]+|\d+)\.tar\.gz debian/ps2eps.install0000644000000000000000000000003611602621624011771 0ustar bin/ps2eps src/C/bbox usr/bin debian/patches/0000755000000000000000000000000011602632237010617 5ustar debian/patches/series0000644000000000000000000000006211602621624012030 0ustar perl-path-in-ps2eps.diff minus-sign-manpages.diff debian/patches/minus-sign-manpages.diff0000644000000000000000000003344511602621624015342 0ustar Description: Escape "-" signs that mean the "minus" character Author: Rafael Laboissiere Last-Update: 2011-06-28 --- a/doc/man/man1/bbox.1 +++ b/doc/man/man1/bbox.1 @@ -31,16 +31,16 @@ line in memory. .SH "OPTIONS" .TP -\fB-h | --help \fR +\fB\-h | \-\-help \fR Show summary of options. .TP -\fB-V \fR +\fB\-V \fR Show version of program. .TP -\fB-r \fR +\fB\-r \fR resolution of picture in dpi .TP -\fB-l \fR +\fB\-l \fR loose bounding box (integer bounding box is expanded by 1 point, hires bounding box is expanded by 0.5 points) .SH "SEE ALSO" --- a/doc/man/man1/ps2eps.1 +++ b/doc/man/man1/ps2eps.1 @@ -9,7 +9,7 @@ ps2eps \- convert PostScript to EPS (Encapsulated PostScript) files .SH SYNOPSIS -\fBps2eps\fR [ \fB-f\fR ] [ \fB-q\fR ] [ \fB-N\fR ] [ \fB-O\fR ] [ \fB-n\fR ] [ \fB-P\fR ] [ \fB-c\fR ] [ \fB-C\fR ] [ \fB-m\fR ] [ \fB-B\fR ] [ \fB-E\fR ] [ \fB-s \fIpagedim\fB\fR ] [ \fB-t \fIoffset\fB\fR ] [ \fB-r \fIresolution\fB\fR ] [ \fB-R \fI+|-|^\fB\fR ] [ \fB-l\fR ] [ \fB-g\fR ] [ \fB-H\fR ] [ \fB-d\fR ] [ \fB-h|--help\fR ] [ \fB-a\fR ] [ \fB-W\fR ] [ \fB-L\fR ] [ \fB-V|--version\fR ] [ \fB--\fR ] [ \fB\fIpsfile1\fB\fR ] [ \fB\fIpsfile2\fB\fR ] [ \fB\fI\&...\fB\fR ] +\fBps2eps\fR [ \fB\-f\fR ] [ \fB\-q\fR ] [ \fB\-N\fR ] [ \fB\-O\fR ] [ \fB\-n\fR ] [ \fB\-P\fR ] [ \fB\-c\fR ] [ \fB\-C\fR ] [ \fB\-m\fR ] [ \fB\-B\fR ] [ \fB\-E\fR ] [ \fB\-s \fIpagedim\fB\fR ] [ \fB\-t \fIoffset\fB\fR ] [ \fB\-r \fIresolution\fB\fR ] [ \fB\-R \fI+|\-|^\fB\fR ] [ \fB\-l\fR ] [ \fB\-g\fR ] [ \fB\-H\fR ] [ \fB\-d\fR ] [ \fB\-h|\-\-help\fR ] [ \fB\-a\fR ] [ \fB\-W\fR ] [ \fB\-L\fR ] [ \fB\-V|\-\-version\fR ] [ \fB\-\-\fR ] [ \fB\fIpsfile1\fB\fR ] [ \fB\fIpsfile2\fB\fR ] [ \fB\fI\&...\fB\fR ] .SH "DESCRIPTION" .PP @@ -34,67 +34,67 @@ psutils package to extract a single page from a document that contains multiple pages). .PP -If BoundingBox in output seems to be wrong, please try options \fB--size\fR or -\fB--ignoreBB\fR\&. See also section TROUBLESHOOTING. +If BoundingBox in output seems to be wrong, please try options \fB\-\-size\fR or +\fB\-\-ignoreBB\fR\&. See also section TROUBLESHOOTING. .SH "OPTIONS" .PP \fBps2eps\fR follows the usual GNU command line syntax, -with long options starting with two dashes (`-'). A summary of +with long options starting with two dashes (`\-'). A summary of options is included below. .TP -\fB-h, --help \fR +\fB\-h, \-\-help \fR Show summary of options. .TP -\fB-V, --version \fR +\fB\-V, \-\-version \fR Show version of program. .TP -\fB-f, --force \fR +\fB\-f, \-\-force \fR Force overwriting existing files. \fBps2eps\fR will not overwrite files by default to avoid deleting original EPS files accidently. .TP -\fB-q, --quiet \fR +\fB\-q, \-\-quiet \fR quiet operation (no output while processing files, except errors). .TP -\fB-N, --noinsert \fR +\fB\-N, \-\-noinsert \fR do not insert any postscript code. Normally a few postscript instructions are added around the original postscript code by \fBps2eps\fR which can be turned off by this option. .TP -\fB-O, --preserveorientation \fR +\fB\-O, \-\-preserveorientation \fR do not filter %%Orientation: header comment. .TP -\fB-n, --nofix \fR +\fB\-n, \-\-nofix \fR do not try to fix postscript code by filtering some instructions. .TP -\fB-P, --removepreview \fR +\fB\-P, \-\-removepreview \fR remove preview image (smaller file, but no preview anymore). .TP -\fB-F, --fixps \fR +\fB\-F, \-\-fixps \fR fix postscript code unconditionally. Otherwise, filtering is usually triggered by detection of certain drivers only. .TP -\fB-c, --comments \fR +\fB\-c, \-\-comments \fR preserve document structure comments. .TP -\fB-C, --clip \fR +\fB\-C, \-\-clip \fR insert postscript code for clipping. Unless -\fB--nohires\fR is specified, the HiResBoundingBox +\fB\-\-nohires\fR is specified, the HiResBoundingBox (enlarged by 0.1 points) is used for clipping. .TP -\fB-m, --mono \fR +\fB\-m, \-\-mono \fR use black/white bitmap as base for calculation (default: off). .TP -\fB-s, --size=pagedim \fR -where pagedim is a pre-defined standard page size +\fB\-s, \-\-size=pagedim \fR +where pagedim is a pre\-defined standard page size (e.g., a4,a0,b0,letter,...) or explicitly specified in a format pagedim:=\fIX\fRx\fIY\fR[cm|in], where \fIX\fR and \fIY\fR are numbers (floating points are accepted) followed by units centimeter (cm) or inch (in), (default: cm). -Use \fB--size=list\fR to list pre-defined pagesizes. +Use \fB\-\-size=list\fR to list pre\-defined pagesizes. See also environment variable PS2EPS_SIZE\&. .TP -\fB-t, --translate=x,y \fR +\fB\-t, \-\-translate=x,y \fR specify an x,y offset (may be negative) in postscript points (1/72 dpi) for drawing. This option may be required if your drawing has negative coordinates which usually lets ghostscript @@ -102,55 +102,55 @@ at positive coordinates. The resulting output will also be shifted. .TP -\fB-r, --resolution=dpi \fR +\fB\-r, \-\-resolution=dpi \fR specify a resolution in dpi (dots per inch) for drawing under ghostscript. Default resolution is 144 dpi which is the double of the typical 72 dpi. This option may help if there is a hardware dependent resolution encoded in the postscript, e.g., 600dpi. Example: -\fBps2eps -l -r 600 test.ps\fR +\fBps2eps \-l \-r 600 test.ps\fR .TP -\fB-R, --rotate=direction \fR +\fB\-R, \-\-rotate=direction \fR This option rotates the resulting EPS output. The parameter direction determines the direction of -rotation: + means +90 degrees (clockwise),- means -90 degrees +rotation: + means +90 degrees (clockwise),\- means \-90 degrees (counter-clockwise), and ^ means 180 degrees (up-side down). .TP -\fB-l, --loose \fR +\fB\-l, \-\-loose \fR expand the original tight bounding box by one point in each direction. .TP -\fB-B, --ignoreBB \fR +\fB\-B, \-\-ignoreBB \fR do not use existing bounding box as page size for rendering. .TP -\fB-E, --ignoreEOF \fR +\fB\-E, \-\-ignoreEOF \fR do not use %%EOF as hint for end of file. Otherwise, \fBps2eps\fR assumes that postscript code ends after the last %%EOF comment, because some drivers add trailing binary ``garbage'' code which gets deleted by \fBps2eps\fR by default. .TP -\fB-g, --gsbbox \fR +\fB\-g, \-\-gsbbox \fR use internal bbox device of ghostscript instead of the external C program \fBbbox\fR\&. The internal bbox device of ghostscript generates different values (sometimes even incorrect), so using the provided \fBbbox\fR should be more robust. See also environment variable PS2EPS_GSBBOX\&. .TP -\fB-H, --nohires \fR +\fB\-H, \-\-nohires \fR do not generate a %%HiResBoundingBox comment for output. .TP -\fB-a, --accuracy \fR +\fB\-a, \-\-accuracy \fR increase the accuracy by turning subsample antialiasing on (may be slower) .TP -\fB-L, --license \fR +\fB\-L, \-\-license \fR show licensing information. .TP -\fB-d, --debuggs \fR +\fB\-d, \-\-debuggs \fR show ghostscript call. This may be helpful for solving problems that occur during a ghostscript call. .TP -\fB-W, --warnings \fR +\fB\-W, \-\-warnings \fR show warnings about sanity of generated EPS file. Certain postscript commands should not be contained in an EPS file. With this option set \fBps2eps\fR will issue a warning if it @@ -168,10 +168,10 @@ If you have documents that are larger than your ghostscript default (usually A4 or US letter), you have to specify the page dimensions explicitly using the -\fB-s\fR option. Otherwise your EPS +\fB\-s\fR option. Otherwise your EPS might be cut off during rasterizing by ghostscript resulting in a wrongly calculated bounding box. You can pass -all pre-defined page sizes to \fB-s\fR that ghostscript understands. These are +all pre-defined page sizes to \fB\-s\fR that ghostscript understands. These are currently: 11x17, ledger, legal, letter, lettersmall, archA, archB, archC, archD, archE a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, isob0, isob1, isob2, isob3, isob4, isob5, isob6, b0, b1, b2, b3, b4, b5, c0, c1, c2, c3, c4, c5, c6, jisb0, jisb1, @@ -189,9 +189,9 @@ postscript file (though \fBps2eps\fR even works with negative and fractional values are contained in the original bounding box by using automatic translation). Therefore, if the given bounding box is to -small or incorrect anyway, you can ignore the existing bounding box with the \fB-B\fR +small or incorrect anyway, you can ignore the existing bounding box with the \fB\-B\fR option, which will cause ghostscript to use its internal -default size (or use \fB-s\fR). However, if the +default size (or use \fB\-s\fR). However, if the BoundingBox has negative coordinates, which is not allowed by the specification, \fBps2eps\fR will shift the output to positive values. .PP @@ -215,7 +215,7 @@ which is very annoying. In order to prevent this, most programs have a clipping option for imported \fI\&.eps\fR files (within LaTeX you can use \\includegraphics*{}) for this purpose. If this is unfortunately not -the case, you can use the \fB-C\fR option of \fBps2eps\fR which will (hopefully) +the case, you can use the \fB\-C\fR option of \fBps2eps\fR which will (hopefully) do it for you. Unfortunately, PScript.dll 5.2 (Windows XP) introduced new very badly behaving Postscript code (initclip) which will even override the outer clipping! Thus, a new filter had to be installed @@ -224,10 +224,10 @@ However, because most programs clip directly on the bounding box, you still may loose some pixels of your image, because the bounding box is described in the coarse resolution of postscript points, -i.e. 72 dpi. In order to prevent this, you can use the \fB-l\fR -option or \fB-C\fR option (for the latter, clipping by the importing program +i.e. 72 dpi. In order to prevent this, you can use the \fB\-l\fR +option or \fB\-C\fR option (for the latter, clipping by the importing program should be disabled then) to allow for a 1 point larger bounding box. -\fB-C\fR clips around a 1 point enlarged bounding box and \fB-l\fR enlarges the +\fB\-C\fR clips around a 1 point enlarged bounding box and \fB\-l\fR enlarges the bounding box values by 1 point (you can also combine both options). .SS "INCLUDED FILTERS" .PP @@ -238,7 +238,7 @@ driver (\fBps2eps\fR was mainly tested with HP and Adobe printer drivers, although it may work for all printers using the PScript.dll). In this case you can try to turn of filtering by -using option \fB-n\fR, or try to find the bad sequence in the postscript +using option \fB\-n\fR, or try to find the bad sequence in the postscript code and adapt the filter rule in the \fBps2eps\fR script (variables $linefilter, $rangefilter_begin, $rangefilter_end; linefilter is an expression for filtering single lines, rangefilter_... are @@ -264,17 +264,17 @@ action within the marked binary sections. .PP \fBps2eps\fR filters also %%Orientation: comments by -default (you can use option \fB-O\fR to turn off filtering), +default (you can use option \fB\-O\fR to turn off filtering), because ghostscript may ``automagically'' rotate images when generating PDF images, which is not desired in most cases. Hint: you can turn off that -feature in ghostscript unconditionally by specifying -dAutoRotatePages=/None. +feature in ghostscript unconditionally by specifying \-dAutoRotatePages=/None. .SS "CORRUPTED OUTPUT" .PP Some postscript code may get corrupted when comment lines or even blank lines are removed (which is the default to make .eps files smaller), because those files may contain encoded images which also have a % as first character in a line or use a special -comment as end of image delimiter. If this is the case, use the \fB-c\fR +comment as end of image delimiter. If this is the case, use the \fB\-c\fR option to prevent filtering comments. .SS "COLOR AND MEMORY" .PP @@ -282,7 +282,7 @@ letting ghostscript consume more resources for drawing its bitmap (roughly 6MBytes for an A4 page). \fBbbox\fR is reading the bitmap line by line so it consumes only minimal memory. If you experience problems -with memory consumption of ghostscript, you may use the \fB-m\fR option +with memory consumption of ghostscript, you may use the \fB\-m\fR option for using a monochrome image. But this will probably result in wrongly determined bounding boxes with colored images, because ghostscript has to do black/white dithering and may thus suppress @@ -290,7 +290,7 @@ .PP Another option in case of memory problems and too long run times is to use the much more memory efficient internal ghostscript bbox by using the -\fB-g\fR option. +\fB\-g\fR option. .SH "ENVIRONMENT VARIABLES" .PP Please note that a command line option always takes precedence over @@ -298,7 +298,7 @@ .PP The environment variable PS2EPS_SIZE can be used to specify a default page size and take any argument that -\fB--size\fR accepts. Examples: \fBexport PS2EPS_SIZE=a0\fR (bash-like syntax) +\fB\-\-size\fR accepts. Examples: \fBexport PS2EPS_SIZE=a0\fR (bash-like syntax) or \fBsetenv PS2EPS_SIZE letter\fR (csh syntax). .PP If the environment variable PS2EPS_GSBBOX is set @@ -308,14 +308,14 @@ .SH "EXAMPLES" .PP The usual call is simply: -\fBps2eps -l \fIfile\fB\fR +\fBps2eps \-l \fIfile\fB\fR .PP A relatively failsafe call would be (if your postscript is smaller than iso b0 [100cm x 141.4cm] and you have a fast computer with enough memory): -\fBps2eps -l -B -s b0 -c -n \fIfile\fB\fR +\fBps2eps \-l \-B \-s b0 \-c \-n \fIfile\fB\fR .PP If output is not correct try: -\fBps2eps -l -B -s b0 -F \fIfile\fB\fR +\fBps2eps \-l \-B \-s b0 \-F \fIfile\fB\fR .SH "AUTHOR" .PP \fBps2eps\fR was written by Roland Bless. @@ -332,7 +332,7 @@ should be more robust. However, because normal clipping has only a resolution of 1/72dpi (postscript point), the clipping process may still erase parts of your -EPS image. In this case please use the \fB-l\fR option to add +EPS image. In this case please use the \fB\-l\fR option to add an additional point of white space around the tight bounding box. .SS "ACKNOWLEDGMENTS" .PP debian/patches/perl-path-in-ps2eps.diff0000644000000000000000000000067611602632230015165 0ustar Description: Fix perl path in the shebang line Author: Rafael Laboissiere --- a/bin/ps2eps +++ b/bin/ps2eps @@ -1,5 +1,4 @@ -eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}' && eval 'exec perl -S $0 $argv:q' # -*-perl-*- - if 0; +#! /usr/bin/perl # The expression in the previous line replaces the unix specific line # {#!/usr/bin/perl}. # ps2eps - convert PostScript to EPS (Encapsulated PostScript) files debian/README.Debian0000644000000000000000000000071611602621624011233 0ustar ps2eps for Debian ----------------- Both the ps2eps acript and the source file bbox.c have been changed to send the output of the -h, -L, and -V options to the standard output instead of the standard error. This is the practice recommended by the GNU Coding Standards. Thanks to Alan W. Irwin for the thorough review of an early version of this package. -- Rafael Laboissiere , Tue, 7 Oct 2003 22:15:23 +0200 debian/control0000644000000000000000000000227311602621624010575 0ustar Source: ps2eps Section: text Priority: optional Maintainer: Matteo Cypriani Build-Depends: debhelper (>= 8.0.0~) Standards-Version: 3.9.2 Homepage: http://tm.uka.de/~bless/ps2eps Vcs-Git: git://anonscm.debian.org/collab-maint/ps2eps.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/ps2eps.git Package: ps2eps Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, ${perl:Depends}, ghostscript Description: convert PostScript to EPS (Encapsulated PostScript) files ps2eps is a tool to produce Encapsulated PostScript Files (EPS/EPSF) from usual one-paged Postscript documents. It calculates correct Bounding Boxes for those EPS files and filters some special postscript command sequences that can produce erroneous results on printers. EPS files are needed for including (scalable) graphics into TeX (or even Word) documents. Other programs like ps2epsi do not calculate the bounding box always correctly (because the values are put on the PostScript stack which may get corrupted by bad PostScript code) or rounded it off so that clipping the EPS cut off some parts of the image. Therefore ps2eps uses a resolution of 144 dpi to get the correct bounding box. debian/rules0000755000000000000000000000041411602621624010245 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #export DH_OPTIONS=-v %: dh $@ override_dh_auto_build: ( cd src/C ; $(MAKE) bbox ) dh_auto_build override_dh_installdocs: cp README.txt README dh_installdocs debian/compat0000644000000000000000000000000211602621624010364 0ustar 8 debian/clean0000644000000000000000000000002211602621624010165 0ustar README src/C/bbox