[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GIF in HOWTOs
- To: [email protected]
- Subject: Re: GIF in HOWTOs
- From: Taketoshi Sano <[email protected]>
- Date: 04 Feb 2000 10:49:47 +0900
- In-reply-to: <[email protected]>(Gregory Leblanc's message of "Thu, 03 Feb 2000 13:32:57 -0800")
- References: <[email protected]> <[email protected]>
- Resent-cc: recipient list not shown: ;
- Resent-date: 4 Feb 2000 04:31:43 -0000
- Resent-from: [email protected]
- Resent-message-id: <zXfwOB.A.AXH.uYlm4@murphy>
- Resent-sender: [email protected]
- Sender: Taketoshi Sano <[email protected]>
- User-agent: T-gnus/6.13.3 (based on Pterodactyl Gnus v0.98) EMIKO/1.13.9 (Euglena tripteris) FLIM/1.13.2 (Kasanui) APEL/10.0 Emacs/20.5 (i386-debian-linux-gnu) MULE/4.0 (HANANOEN)
Hi.
In article <[email protected]>,
at Thu, 03 Feb 2000 13:32:57 -0800,
on Re: GIF in HOWTOs,
Gregory Leblanc <[email protected]> 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),
§ion_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: <[email protected]>,<[email protected]>,<[email protected]>
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]