Date: Wed, 4 Sep 2002 19:29:36 +0530 From: Ravindra Jaju jaju@it.iitb.ac.in To: linuxers@mm.ilug-bom.org.in Subject: Re: [ILUG-BOM] Re: [OT] Interesting Conversation Reply-To: linuxers@mm.ilug-bom.org.in
On Wed, Sep 04, 2002 at 07:09:02PM +0530, Philip S Tellis wrote:
Hmm, I use HTML generated by a CGI script reading from a text
file. It
takes me 20 minutes to make my text file.
I use a simple Perl script. You can supply a stylesheet from the command line, or else you get plain 'white' pages ...
I can make the Perl script available if anyone wishes ....
-- jaju
Dear Philip,
I was very impressed when I first saw you using those HTML files as "slides". When I left NCST and joined my present company, I made a stylesheet that mimicked the company standard for PPTs. To make individual "slides" I would manually and laboriously make several copies of the first "slide" and then edit it... you get the picture.
So I would be really grateful if you could make your CGI script available for download on your website. Could you also make a non-CGI version available for use on the command line?
Thanks.
Dear Jaju,
I was equally impressed by your tutorial at http://www.it.iitb.ac.in/~jaju/tutorials/net/tcpip/node1.html I was using IE6 at that time (800 x 600 resolution) and for some reason the text in the "slide" on the right seemed too big; I tried to change the text size to "Smallest" but there was no effect. Something wrong with IE?
In any case, your Perl script would be very welcome too. Instructions for use would also be very helpful.
Thanks.
Parul
On 5 Sep 2002 04:53:32 -0000 "Parul Mathur" parulmat@rediffmail.com wrote:
I tried to change the text size to "Smallest" but there was no effect. Something wrong with IE?
IE doesn't scale fonts if they're specified in pixels. Maybe that's the reason. Galeon's zoom feature scores here :-) Mozilla also gets it right.
On Thu, 5 Sep 2002, Tahir Hashmi wrote:
I tried to change the text size to "Smallest" but there was no effect. Something wrong with IE?
IE doesn't scale fonts if they're specified in pixels. Maybe that's
It's not supposed to - according to the specs. pixels are absolute sizes and MUST NOT be scaled. A point is also an absolute size, but, may be different in different resolutions.
If you want your fonts to be scaled, then use %, em, en, ex. These are all relative sizes based on the container's value. For the top level, the container is the browser.
the reason. Galeon's zoom feature scores here :-) Mozilla also gets it
The zoom feature isn't scaling fonts, it is more like holding a magnifying glass up in front of the page. In this sense, both galeon and mozilla fail since they scale only the text on the page and not the images. Opera on the other hand scales every darn thing it can find, and I have not noticed any loss in image quality even after a 400% zoom.
On 5 Sep 2002, Parul Mathur wrote:
So I would be really grateful if you could make your CGI script available for download on your website. Could you also make a non-CGI version available for use on the command line?
http://staff.ncst.ernet.in/~philip/downloads/slide-template.tar.gz
There's two steps to it.
You first create a text file (like all-in-one.txt that I have). You can call it anything you want. It doesn't even have to have the .txt extension.
Most html would go in there, and what goes in is what comes out. You ideally don't want any headers.
Once you've made your text file, do this:
cat slide-text-file | ./parse-slides.pl
This will create files called slide1.shtml, slide2.shtml...
you can change the head of the file by passing a parameter to parse-slides.pl:
cat slide-text-file | ./parse-slides.pl slide-
will create slide-1.shtml...
Note that the TOC will not work unless it is called slide1.shtml...
You should also edit header.shtml and index.shtml to suit your needs.
And make sure your webserver has the Includes feature turned on for this directory (IncludesNoExec will not work).
You can point your browser to the shtml files to view it.
Now, something cool. If you want to give the presentation, but you want others to be able to see the slides on their terminals, then tell everyone else to point their browsers to the file called current.shtml.
This file will always show the current slide that you're viewing - with a ~5 second delay.
This is really useful if you're doing the presentation over a video conference link, and video images of your slides don't look so good. Just tell the remote end to have current.shtml on their projector/PCs.
Requirements:
perl, sed, grep, sort, apache
yeah, i could drop the need for sed, grep and sort, but it would lose its coolness factor.
On Thu, Sep 05, 2002 at 04:53:32AM -0000, Parul Mathur wrote:
I was using IE6 at that time (800 x 600 resolution) and for some reason the text in the "slide" on the right seemed too big; I tried to change the text size to "Smallest" but there was no effect. Something wrong with IE?
Well, my HTML errs too .... I used a style-file which just suited my mozilla/resolution and the projector I used. It's just a matter of getting the stylefile right, which you can supply on the command line.
Will make it available after writing some comments in it on how to use it ..