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

Re: GIF in HOWTOs



Hi.

In article <3899F409.6C10F1A3@cu-portland.edu>,
  at Thu, 03 Feb 2000 13:32:57 -0800,
    on Re: GIF in HOWTOs,
 Gregory Leblanc <gleblanc@cu-portland.edu> writes:

> Well, personally I'd prefer to turn the GIFs into PNGs, since PNG kicks
> butt.  If that's not going to happen, then I'd say use the words "next",
> "previous", and "up" or however the ones that do that in just text are
> (I can't remember offhand).  I think that the words are more obvious
> than "<", ">" "^".  Just my two percent of a united states dollar.

If you use sgml2html of sgml-tools (v1) in order to convert your HOWTOs
in Linuxdoc DTD sgml, then do not specify neither "-I" nor "--button" 
option to get just the word in the place of images.

The required work to use PNGs in the place of GIFs is not so difficult.

1) convert icon files (next.gif, prev.gif, toc.gif) into PNGs
   (next.png, prev.png, toc.png)

2) Apply the following patch to $LIB/SGMLTools/Html2Html.pm

--- ../../build/sgml-tools-1.0.9/lib/SGMLTools/Html2Html.pm	Sat Jan 29 19:49:51 2000
+++ lib/SGMLTools/Html2Html.pm	Fri Feb  4 10:16:02 2000
@@ -263,7 +263,7 @@
 
     # Next link (first)
     my $next = $use_imgs  
-                  ? qq(<IMG SRC="next.gif" ALT="$nextlabel">)
+                  ? qq(<IMG SRC="next.png" ALT="$nextlabel">)
                   : qq($nextlabel);
     $next = qq(<A HREF="$firstname-$myfilenum.$fileext">$next</A>)
        if ($myfilenum < $filecount);
@@ -272,7 +272,7 @@
 
     # Previous link
     my $prev = $use_imgs  
-                  ? qq(<IMG SRC="prev.gif" ALT="$prevlabel">)
+                  ? qq(<IMG SRC="prev.png" ALT="$prevlabel">)
                   : qq($prevlabel);
     $prev = join "", qq(<A HREF="$firstname-), ($myfilenum - 2),
                      qq(.$fileext">$prev</A>)
@@ -282,7 +282,7 @@
 
     # Table of contents link
     my $toc = $use_imgs 
-                ? qq(<IMG SRC="toc.gif" ALT="$toclabel">)
+                ? qq(<IMG SRC="toc.png" ALT="$toclabel">)
                 : qq($toclabel);
     $toc = join "", qq(<A HREF="$firstname.$fileext#toc),
                     &section_num($secnr, 0), qq(">$toc</A>)

  The patch above is against my Debian package (sgml-tools_1.0.9-9),
  so if you use other version of sgml-tools (v1), this patch can not
  be cleanly applied, and requires the manual editing.

  I will work to update the JF patch for sgml-tools_1.0.9, (the current one
  is downloadable from:
     http://www.linux.or.jp/JF/workshop/archives/diff.sgml-tools-1.0.9.jf6.gz)
  but it may takes some more time, since I am busy now for preparing the new
  release (potato) of Debian.

3) Rebuild (re-convert) all the HOWTOs using patchd sgml2html.

Maybe simple work, but it will require someone's time and effort,
especially in rebuilding all the HOWTOs.

Regards.

-- 
  Taketoshi Sano: <sano@debian.org>,<sano@debian.or.jp>,<kgh12351@nifty.ne.jp>


--  
To UNSUBSCRIBE, email to ldp-discuss-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org