Re: Bug#37532: coda-doc: HTML files gzipped
Manoj Srivastava wrote:
> >>"Peter" == Peter Galbraith <psg@debian.org> writes:
>
> >> !/usr/bin/perl -pi
> >>
> >> href2gz : Replace HREF tags to point to compressed HTML files
> >>
> >> This script runs on all original .html files.
> >>
> Peter> s/((HREF|SRC)=\"[^\"]+)\.htm[l]?/$1.html.gz/gi;
>
> Unfortunately, this too is not good enough, since it also
> munges any non-local links the docs may have (like a link to the
> canonical home page).
True. I made sure this wasn't the case for mh-book.
But the regexp could easily be made to change only localhost or
no-host links, couldn't it?
e.g change only stuff like:
<A HREF="path/file.html">
<A HREF="http://localhost/path/file.html">
> We should ask why do we need to do this? The obvious reason is
> that HTML docs may be large, and there may be disk space issues.
I only went through the exercise for mh-book to save 2.5 MB. I
didn't do it for gri to save 0.5MB.
Peter
Reply to: