[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#289096: marked as done (tetex-doc: pdf files should not be gzipped)



Your message dated Tue, 5 Aug 2008 15:59:51 +0200
with message-id <20080805135951.GA824@PC23>
and subject line Re: tetex-doc: pdf files should not be gzipped
has caused the Debian Bug report #289096,
regarding tetex-doc: pdf files should not be gzipped
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
289096: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=289096
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: tetex-doc
Version: 2.0.2c-3
Severity: minor

PDF is usually already compressed (often a PDF file is roughly the
same size as the gzipped postscript), so gzipping a PDF file usually
does not save much space.  Instead it inconveniences the user because
neither acroread (v5.0) nor xpdf (v3.00) opens compressed pdf files
(gv, i.e. ghostscript, is fine though).  The user therefore either
must ask the sysadmin to uncompress the files in place in
/usr/share/doc/texmf/ or must uncompress it into a working directory.

Therefore could all the .pdf files be stored uncompressed?

$ dpkg -L tetex-doc | grep '\.pdf\.gz$' | wc -l

says there are 62 gzipped pdf files in tetex-doc.  

This pipeline

$ gzip -l `dpkg -L tetex-doc | grep '\.pdf\.gz$'` \
  | tail +2  \
  | awk '{total1 += $1; total2 += $2}; END {print total1/total2};'
(output: 0.734089)

says that their total compressed size is about 73% of the uncompressed
total.  It's a saving, but I don't think it's worth the hassle to the
user.

Whereas running the same command for the .ps.gz files says that the
compressed ps files take up, in total, about 40% of the space of the
uncompressed ones.  That seems like a worthwhile saving, especially
since it causes no inconvenience because the main ps viewer (gv and/or
ghostscript) happily opens .ps.gz files.  (Ditto for .dvi.gz files and
xdvi.)

Apologies if this issue is a Debian packaging policy decision that I
should discuss on a different list (let me know which one).  Most of
the .pdf.gz files are from tetex-doc; the other major contributing
packages are doc-debian, apt-howto-*, and mit-scheme.

-Sanjoy

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i586)
Kernel: Linux 2.4.27-200412041
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages tetex-doc depends on:
ii  dpkg                          1.10.25    Package maintenance system for Deb

-- no debconf information


--- End Message ---
--- Begin Message ---
Version: 2007-2

On 06.01.05 Sanjoy Mahajan (sanjoy@mrao.cam.ac.uk) wrote:

> Package: tetex-doc
> Version: 2.0.2c-3
> Severity: minor
> 
> PDF is usually already compressed (often a PDF file is roughly the
> same size as the gzipped postscript), so gzipping a PDF file
> usually does not save much space.  Instead it inconveniences the
> user because neither acroread (v5.0) nor xpdf (v3.00) opens
> compressed pdf files (gv, i.e. ghostscript, is fine though).  The
> user therefore either must ask the sysadmin to uncompress the files
> in place in /usr/share/doc/texmf/ or must uncompress it into a
> working directory.
> 
This bug has been filed against tetex-doc long time ago. tetex-doc
has meanwhile been removed from the archive. The successor of teTeX
(TeX Live) has a fix for this bug (see #407979) -> Closing.

H.
-- 
sigmentation fault


--- End Message ---

Reply to: