Here's a collection of scripts, discussion etc. from news items on
converting Mosaic hotlists to html. (I wonder why Mosaic doesn't keep
the hotlist as an html page anyway - ed.)
From ecl6ajw@scs.leeds.ac.uk Tue Jan 18 13:38:06 1994
Article: 5934 of comp.infosystems.www
From: ecl6ajw@scs.leeds.ac.uk (A J Walker)
Subject: Yet another Hotlist2html script
Organization: The University of Leeds
Date: Mon, 17 Jan 94 11:30:03 MET
Hi
Here is a shell script for creating a W3 home page containing
hyperlinks to all items on the hotlist.
It means that xmosaic startup doesn't involve the delay of connecting to
a Web Server.
It also makes it easy to see the URL for each hotlist item.
I run this script as part of invocation of xmosaic and prefer the
hotlist page to any of the local server home pages.
Enjoy
Andy
=== CUT HERE ===
#!/bin/sh
# WWW Hotlist 2 html shell script
# Usage: hotlist2html > $HOME/.hotlist.html
# Could also do setenv WWW_HOME $HOME/.hotlist.html in .cshrc file.
# Original idea: jern@visual1.jhuapl.edu (Bob Jernigan) John Hopkins University
# Date: Fri, 17 Dec 93 21:27:02 GMT
# Additions and bug fixes by A.J.Walker@leeds.ac.uk (Andy Walker)
# Date: Fri Jan 14 09:46:06 GMT 1994
# Script now creates entries for all items in hotlist and sorts them
# in reverse order - ie most recent shown at the top of the html list.
# When rebuilt prior to each invocation of xmosaic and used as default
# home page it allows rapid hyperlink to each hotlist item.
tmpfile=/tmp/hotlist2html.tmp
awk '
/:/{
printf "
",$1
getline
printf "%s\n",$0}
' $HOME/.mosaic-hotlist-default > $tmpfile
echo " Hotlist "
echo " Hotlist - in reverse order
"
echo ""
grep -n '^.li' $tmpfile | sort -r -n | sed -e 's/^[0-9]*://'
echo "
"
/bin/rm $tmpfile
=== CUT HERE ===
--
Andy Walker, (tel) +44 (0)532 335845 (fax) 335411
Computer Based Learning and Multimedia Support Unit,
Physics/Admin Bldg, Rm 6.35, University of Leeds, England.
"These are my opinions - not those of the University"
From jimmy_t@hnlv4.verifone.com Tue Jan 18 13:45:35 1994
Article: 5995 of comp.infosystems.www
Subject: RE: Converting ASCII text to SGML for WWW server - technical questions
From: jimmy_t@hnlv4.verifone.com
Date: Mon, 17 Jan 94 03:48:28 GMT
Organization: VeriFone Inc.
In Article <2h6mo6$ic8@news.cerf.net>
Chameleon writes:
>I am about to become involved in a couple of projects converting
>ASCII text files to SGML/HTML for use with a WorldWideWeb (WWW)
>server. I know of several products/methods that can help with
>this project, but I wanted to ask if anyone knows of any hidden
>pitfalls with these or of any better way to accomplish the
>conversion.
>
>The files that we will be converting are online in our gopher server
>There are several hundred files but only about 15 MB. The products/
>methods that we are considering for this project are:
>
I've not tried this, but it sounds great:
From: OAK.Oakland.Edu and its mirrors):
pub/msdos/hypertxt/
hdk110a.zip HLPDK:DOS,Windows,OS/2,DV/X,docs,MM dev kit
hdk110b.zip HLPDK S&V Edition: Native engines, examples
hdk110l.zip System extention library for HLPDK v10.0+
HLPDK Goes World Wide Web!
HLPDK - Help Development Kit - Sound & Vision Edition. A hyper-text help
database development kit that includes 2 royalty free help engines, and
a help compiler with a built in cross reference tool, supports creation
of DOS help databases, popular source files, Windows (winHelp &
Multimedia Viewer), OS/2 (IPF), WWW and DESQview/X help source files!.
Creates text and word processors documents with automatic table of
contents, glossary and index from the same source. Now with Multimedia
support. HLPDK - *Write once, help many!*
Features:
Topics, PopUps, Links, Keywords, Text Formats, Navigational and
Structural facilities, Target Code insertion, Multiple module files,
Automatic Pascal/C/C++ reference generation, Exception handling,
Multiple file target databases, Graphics, Sound, Groups, Application
Launch, Automatic exports creation, user defined link templates,
trigger actions and more.
Library: (Expanded HDKLIB is included)
HDKLIB is an extention library to HLPDK that adds functionality to the
HLPDK package, by including special "User Link Templates" that add
support for special links, special graphics, enhanced text attributes,
graphic links, normal text links, 256 color bitmap support, video,
CDAudio, Multimedia MCI interface etc .. WINHELP users have access to
the complete macro API, using !xxx user links. The library contains a
short video sample!
Targets:
Native(PX), Native(MEM), winHelp 3.0, winHelp 3.1, Multimedia Viewer,
THELP, QuickHelp, TVHC, PopHelp, DESQview/X, OS/2, Text, Word Processors
Documentation (Via RTF), Sony MM Player (Via MM Viewer), World Wide Web
HTML supported readers (Windows, Macintosh, Unix-Motif, VMS and more).
(And all from *ONE* source!)
Developing help text is an important but often neglected part of
application development. Developers often run out of time and/or money
long before they even start it. Not a easy task to begin with (it
requires skills in both application design and technical writing
skills), today's help systems also require programming expertise and a
good measure of time. As a result many applications have inadequate
help systems that do not really fulfill their objective - HELP THE USER.
The problem is even more complex when an application has more than one
target environment, each one using different formats and programming
techniques to generate help text. HLPDK cannot solve all the problems
involved in help text generation, but it helps A LOT! It allows you to
write one help text source and compile it to many different targets!
You can take existing text like user manuals, technical notes, etc., add
simple help commands, compile it and you have a complete help system!
Jim
+------------------------------------+--------------------------------------+
| James H. Thompson | jimmy_t@verifone.com (Internet) |
| VeriFone Inc. | uunet!verifone!jimmy_t (UUCP) |
| 100 Kahelu Avenue | 808-623-2911 (Phone) |
| Mililani, HI 96789 | 808-625-3201 (FAX) |
+------------------------------------+--------------------------------------+
From Olli-Pekka.Rinta-Koski@hut.fi Tue Apr 26 08:56:56 1994
Article: 14157 of comp.infosystems.www
From: Olli-Pekka.Rinta-Koski@hut.fi (Ola Rinta-Koski)
Newsgroups: comp.infosystems.www
Subject: Re: hotlist2html under Unix?
Date: Mon, 25 Apr 94 18:19:17 GMT-1:00
Organization: BREWTeX -- Cinq casiers, s'il vous plait...
"Adam" == Adam Bernstein writes:
Adam> I would have thought this would be a FAQ, but can't seem to find
Adam> it anywhere. Is there a hotlist2html program to run on on a
Adam> Sparc? I know the Mac version is available from the NCSA
Adam> Macmosaic home page, but there's no such animal on the X home
Adam> page or anywhere else easy to get to. It seems so barbaric to
Adam> have to transfer my hotlist to a Mac, run the program, and then
Adam> transfer the html document back to the Sparc.
Somebody else can elaborate on this quick hack of mine.
Save as hotlist2html, chmod 755 hotlist2html and use with
hotlist2html < .mosaic-hotlist-default > hotlist.html or something
like that.
--
#!/usr/bin/awk -f
/.*:\/\// {foo = $1; getline; printf("",foo); \
printf("%s
\n", $0) }
--
Ola Rinta-Koski
From malcolm@wrs.com Tue Apr 26 09:31:13 1994
Article: 14175 of comp.infosystems.www
From: malcolm@wrs.com (Malcolm Humes)
Subject: Re: hotlist2html under Unix?
Organization: Wind River Systems, Inc.
Date: Mon, 25 Apr 94 21:25:01 GMT-1:00
adam@csi.jpl.nasa.gov (Adam Bernstein) writes:
>I would have thought this would be a FAQ, but can't seem to find it
>anywhere. Is there a hotlist2html program to run on on a Sparc? I
>know the Mac version is available from the NCSA Macmosaic home page,
>but there's no such animal on the X home page or anywhere else easy
>to get to. It seems so barbaric to have to transfer my hotlist to
>a Mac, run the program, and then transfer the html document back to
>the Sparc.
Try using the HOTLIST screen's "Mail To" to email it to yourself and
you'll get a file with the hotlist in HMTL list form.
- malcolm
From rjc@cogsci.ed.ac.uk Tue Apr 26 13:35:19 1994
Article: 14220 of comp.infosystems.www
From: rjc@cogsci.ed.ac.uk (Richard Caley)
Subject: Re: hotlist2html under Unix?
Organization: Human Communication Research Centre, University of Edinburgh
Date: Tue, 26 Apr 94 09:43:48 GMT-1:00
Have a look in
http://cui_www.unige.ch/ftp/PUBLIC/oscar/scripts/README.html
and grab Oscar Nierstrasz's hl2html (needs perl).
--
rjc@cogsci.ed.ac.uk _O_
|<
From sg04@gte.com Wed Apr 27 09:11:39 1994
Article: 14242 of comp.infosystems.www
From: sg04@gte.com (Yechezkal-Shimon Gutfreund)
Subject: Re: hotlist2html under Unix?
Organization: GTE Laboratories, Inc.
Date: Tue, 26 Apr 94 16:44:21 GMT-1:00
In article l46@grover.jpl.nasa.gov, adam@csi.jpl.nasa.gov (Adam Bernstein) writes:
]
]I would have thought this would be a FAQ, but can't seem to find it
]anywhere. Is there a hotlist2html program to run on on a Sparc? I
]know the Mac version is available from the NCSA Macmosaic home page,
]but there's no such animal on the X home page or anywhere else easy
]to get to. It seems so barbaric to have to transfer my hotlist to
]a Mac, run the program, and then transfer the html document back to
]the Sparc.
Here is a TCL script I wrote:
#!/usr/local/bin/wish -f
###############################################################################
# hot2list [hotlistFile]
#
# This program converts a Mosaic hotlist to an un-numbered
# list suitable for inclusion in an HTML document. If
# no file is specified, it used the default file name.
#
###############################################################################
destroy .
if {$argc > 1 } {error "Usage: hot2list [hotlistFile]"}
if {$argc == 1} {set fileName [lindex $argv 0]}
if {$argc == 0} {set fileName ~/.mosaic-hotlist-default}
set file [open $fileName r]
# discard header
gets $file; gets $file
puts stdout
while {![eof $file]} {
set line [gets $file]
if {[string length $line] == 0} {break}
scan $line %s url
set title [gets $file]
set text [format "- %s" $url $title]
puts $text
}
puts stdout
close $file
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Yechezkal-Shimon Gutfreund sgutfreund@gte.com [MIME]
GTE Laboratories, Waltham MA ftp://ftp.gte.com/pub/circus/home/home.html
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
From adam@csi.jpl.nasa.gov Wed Apr 27 09:13:50 1994
Article: 14261 of comp.infosystems.www
From: adam@csi.jpl.nasa.gov (Adam Bernstein)
Subject: Re: hotlist2html under Unix?
Date: Tue, 26 Apr 94 19:21:39 GMT-1:00
Organization: Jet Propulsion Laboratory
In article , rjc@cogsci.ed.ac.uk
(Richard Caley) writes:
|>
|> Have a look in
|>
|> http://cui_www.unige.ch/ftp/PUBLIC/oscar/scripts/README.html
|>
|> and grab Oscar Nierstrasz's hl2html (needs perl).
|>
For heaven's sake, I appreciate all the helpfulness, but apparently my
last posting got lost in the fray, because I am no longer looking for
a Unix hotlist->HTML converter. I got many responses, copies of scripts,
C programs, etc., and the one I liked best was in fact the very one
recommended for a second time above. So I'll just add my vote, and
suggest that anyone looking for such a utility check out this document.
Many thanks to all.
Adam
--
------------------------------------------------------------------------
Adam Bernstein Phone: 818 354-9784 Jet Propulsion Lab
Guidance & Control / FAX: 818 393-6105 MS 198-235
Optical Tracking Group 4800 Oak Grove Dr.
adam@bloodhound.jpl.nasa.gov Pasadena, CA 91109
------------------------------------------------------------------------
From bowe@osf.org Wed Apr 27 09:15:27 1994
Article: 14286 of comp.infosystems.www
From: bowe@acme.osf.org (John Bowe)
Subject: Re: hotlist2html under Unix?
Date: Tue, 26 Apr 94 22:50:06 GMT-1:00
Organization: Open Software Foundation
I'll join in. This converts your (X11 Mosaic) hotlist into a document
with a , , and unordered list of your hotlist items (- ).
It keeps the dates as comments. It doesn't touch your hotlist file itself.
Regards,
-jb
------------------------------------------------------------
#!/usr/local/bin/perl
# Convert hotlist to an unordered list
#
# Usage: this-prog < ~/.mosaic-default-hotlist > your-list.html
# Then edit your-list.html and reorganized it
#
# John Bowe, Jan 1994
$now = `date '+%d %b %Y'`;
$me = $ENV{"USER"};
chop($now);
printf "
%s's hotlist
\n
%s's hotlist as of $now
", $me, $me;
# eat first 2 lines
$_ = <>; # should say "ncsa-xmosaic-hotlist-format-1"
$_ = <>; # should say "Default"
# 2 lines per entry - URL and date / title
while (<>) {
chop;
($url, $date) = split(" ",$_, 2);
$title = <>;
chop($title);
printf "- \n\n%s\n\n", $url, $title;
}
printf "
\n\n";
From johnh@ficus.cs.ucla.edu Thu Jun 9 17:24:30 1994
Article: 81 of comp.infosystems.www.users
From: johnh@ficus.cs.ucla.edu (John Heidemann)
Subject: Re: Simple URL list to HTML?
Date: Wed, 8 Jun 94 19:04:44 GMT-1:00
Organization: UCLA, Computer Science Department
lwv26@cas.org (Larry W. Virden) writes:
>I have a simple list of URLs which I have grepped and editted out of
>a number of email msgs, etc. Does anyone have a simple shell,perl,awk,
>c,tcl,c++, lex, yacc, bison, flex, (umm - I don't recall what other
>languages I have lying about) etc. script to turn a list like this into
>a proper clickable HTML document?
Here's my Perl script to turn your mosaic hotlist into an HTML page.
(I got sick of the different user-interfaces for the hotlist and
the rest of Mosaic.) A little hacking to the input code should
allow it to read your list.
-John Heidemann
--cut-here-------------------------------------------------------------
#!/usr/local/bin/perl
#
# hotlist_to_html.pl
# Convert a mosaic hotlist to a reasonable home page.
# Copyright (C) 1994 by John Heidemann
#
# $Id: hotlist_to_html.pl,v 1.2 1994/06/08 17:25:15 johnh Exp $
#
# This program is placed under the Gnu Public License, version two.
#
# Usage: expects hotlist on stdin, produces a page HTML on stdout (suitable
# for your home page).
#
($username, $realname) = &determine_user;
print <Mosaic Hotlist ($username)
Mosaic Hotlist ($username)
Welcome to a html version of ${realname}'s hotlist.
This version was converted on `date`.
END
@hotlist = &read_hotlist;
&output_html_list (@hotlist);
print "
\n";
exit 0;
sub determine_user {
local (@pwent);
@pwent = getpwuid($>);
if ($#pwent < 0) {
return ("unknown") x 2;
} else {
return @pwent[0,6];
};
}
sub read_hotlist {
open (HL, "<-") || die("Cannot open $hotlist");
local (@hotlist) = ;
chop (@hotlist);
close (HL);
die ("Bad hotlist magic number")
if ($hotlist[0] != "ncsa-xmosaic-hotlist-format-1");
shift @hotlist;
shift @hotlist;
return @hotlist;
}
sub output_html_list {
local (@hotlist) = @_;
@url = ();
@title = ();
while ($#hotlist > 0) {
$url = shift @hotlist;
$url =~ s/ .*$//; # strip off trailing date
$title = shift @hotlist;
push (@url, $url);
push (@title, $title);
};
foreach $i (0..$#url) {
print " $title[$i] \n";
};
}
From Lutz Tue Jun 21 08:57:09 1994
Article: 19658 of comp.infosystems.www
From: Lutz Weimann
Subject: Hotlist2HTML version 0.7 for Macintosh now available
Date: Mon, 20 Jun 94 16:35:56 GMT-1:00
Announcement: New version of of the Hotlist2HTML conversion program
A new version of the Macintosh Hotlist2HTML program is now available
from the SUMEX-AIM ftp archive and some mirror sites. It can be found
in the directory "cmp", as the file "hotlist-to-html-07.hqx".
The program Hotlist2HTML (version 0.7) converts a NCSA-MacMosaic
Hotlist or a EINet-MacWeb Hotlist (resource) file to a HTML-page,
wherein each URL of the Hotlist is associated with it's corresponding
menuitem name. The HTML output will be normally sorted lexically by
the menuitem text, but re-sorting of the Hotlist may be suppressed,
if desired. The program should run on any Macintosh were System 7
is installed.
The Fortran source is included. You need Language Systems
Fortran 3.x and MPW 3.2 (or 3.2.3) to make use of the it.
These are the changes since version 0.6.1:
17. 6. 94 V.0.7
Program rewritten to be (hopefully) now more robust.
Added conversion of MacWeb Hotlists.
Added the sorting feature.
Slighly improved HTML output.
-----------------------------------------------------------------------------
Lutz Weimann PHONE: +49 30 / 89604-185
Konrad-Zuse-Zentrum fuer EMAIL: weimann@zib-berlin.de
Informationstechnik Berlin (ZIB) weimann@sc.zib-berlin.d400.de
Heilbronner Str. 10, D-10711 Berlin
From markvw@wsinis14.info.win.tue.nl Wed Jun 29 18:46:13 1994
Article: 685 of comp.infosystems.www.misc
From: markvw@wsinis14.info.win.tue.nl (Mark van Wijk)
Subject: Re: hotlst2html
Date: 27 Jun 1994 09:17:13 +0200
Organization: Eindhoven University of Technology, The Netherlands
w0400@ggr.co.uk (Lord Wodehouse) writes:
>Hi,
>I saw a mail about this on the list, but it has dropped off our hewsfeed
>and I failed to save it. Can anyone mail me with the information of where
>to find it. Archie has done off, but I don't hold out much hope.
>TIA Yours John.
>Lord John - The Programming Peer mail - w0400@ggr.co.uk
> tlx - 8951942 GLXPRI G
>Have network - will mail! fax - +44 81 966 4476
>=============================================================================
>| |
>| The contents of this message *may* reflect my personal opinion. They are |
>| *not* intended to reflect those of my employer, or anyone else, unless |
>| otherwise stated. If your machine crashes after using any methods, code |
>| or whatever suggested by this mail, it is *your* problem and not mine. |
>| |
>=============================================================================
Hello,
This is one of many scripts which translates a mosaic hotlist into html,
#!/usr/exp/bin/perl
open(BB, ">/dev/null");
print BB scalar(<>), scalar(<>); # ignore header
print "\n";
while (<>) {
if (/^([^ ]+)(.*)/) {
print "- ";
print ""; print scalar(<>); print "";
print "\n";
print "
- $2";
print "\n";
}
}
print "
\n";
Good luck.
Mark
From Larry Tue Aug 2 16:30:52 1994
Article: 2337 of comp.infosystems.www.misc
From: Larry Aronson
Subject: Re: ANNOUNCE: Mac Mosaic, Hotlist to HTML Hypercard stack
Date: Tue, 2 Aug 94 06:34:15 GMT-1:00
Organization: Larry Aronson Assoc.
Re: ANNOUNCE: Mac Mosaic, Hotlist to HTML Hypercard stack
I've gotten good response from my announcement, so I've uploaded the
Hotlist to HTML conversion stack (Stuffed and BinHexed, 21 kbytes)
to my webspace. For more information, load:
URL="http://info.acm.org/~laronson/HHConv.html"
------------------------------------------------------------
| Larry Aronson | 35 W. 20 St. | 212-807-8561 |
| System Psychoanalyst | NYC 10011 | laronson@ACM.org |
------------------------------------------------------------
URL = "http://info.acm.org/~laronson/homepage.html"
From kelsey@avocet.SLAC.Stanford.EDU Wed Sep 14 11:15:42 1994
Article: 4534 of comp.infosystems.www.providers
From: kelsey@avocet.SLAC.Stanford.EDU (Mike Kelsey)
Subject: Re: XMosaic hotlist -> HTML
Organization: Stanford Linear Accelerator Center
Date: Tue, 13 Sep 94 17:29:55 GMT-1:00
In article , "Philip M. Savundararaj" writes:
|>
|> Is there any utilities (e.g. Perl scripts) to convert the NCSA XMosaic
|> hotlist file into a HTML document ?
http://www.cithep.caltech.edu/~kelsey/hl2html.html
Took me 15 minutes to write it in awk, just by looking at the hotlist file.
-- Mike Kelsey
--
[ My opinions are not endorsed by SLAC, Caltech, or the US government ]
"I've seen things you people wouldn't believe. Attack ships on fire
off the shoulder of Orion. I've watched C-beams glitter in the dark
near the Tannhauser Gate. All these memories will be lost in time,
like tears in rain." -- Roy Baty