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

Re: Bug#37532: coda-doc: HTML files gzipped



Remco Blaakmeer wrote:

> On Fri, 14 May 1999, Anders Hammarquist wrote:
> 
> > But the way I read the policy it says to compress html, so it that case
> > it needs to be changed (or at least clarified).
> 
> Or change lynx to search for the .html.gz if it can't find the .html file. 
> There are web servers that can do this already, so it shouldn't be too
> difficult.

This is not good enough, there are too many browsers (current and
future) for which functionality would be broken (e.g. netscape,
which we can't fix).  The solution must follow HTML specs.

If the HTML files are to be compressed, the only recourse I see
is to rename all the links within the docs so that they are
consistent.  This is what I did with the mh-book package,
resulting in a much smaller installed package (3.3 MB instead of
5.7MB).  I ran a Perl script in the rules files to change the
debian/tmp HTML files, something like:

#!/usr/bin/perl -pi
#
# href2gz : Replace HREF tags to point to compressed HTML files
#
# This script runs on all original .html files.
#
s/((HREF|SRC)=\"[^\"]+)\.htm[l]?/$1.html.gz/gi;


-- 
Peter Galbraith <psg@debian.org>


Reply to: