Skip to Content.
Sympa Menu

baslinux - Re: BL streaming MP3, was Re: [BL] Re: broken windows needs replacing

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: sindi keesan <keesan AT sdf.lonestar.org>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: BL streaming MP3, was Re: [BL] Re: broken windows needs replacing
  • Date: Sat, 23 Apr 2005 16:44:52 +0000 (UTC)

On Sat, 23 Apr 2005, David Moberg wrote:

----- Original Message -----
From: "sindi keesan" <keesan AT sdf.lonestar.org>

Abiword imported the doc file but wvware is CLI and converts
without having to go into X, open a file, and click on it.


wvware filename.doc > filename.html 2 sec later you have a .png
file and a matching html file if you started with a page of WORD
consisting of just one scanned image. How would I do this in batch
mode?

-----------------------------------
#!/bin/sh
for i; do wvware $i > $i.html; done
-----------------------------------

I am going to need to compile this for linux first. (No /bin/sh in DOS). wvware requires libpng and I will compile for BL2 (with glibc2.2.5). The netpbm pngtopnm and pnmtopng you compiled most recently require libpng which I think you compiled for libc5. libpng.so.3. I have libpng.so.2 from SW7.1 in BL2. How would I go about compiling dynamically so that I used libpng.so.2 other than by simply not having libpng.so.3 on the computer? Or should I compile statically (for libz and libpng) so that wvware will also work in BL3 once you add glibc 2.2.5?

I am thinking of using the statically compiled pngotpnm/pnmtopng with my netpbm package but then having a second add-on package just for BL3 which overwrites those files with the dynamically compiled one while adding libpng (for libc5), and also omitting the tiff programs and library from the main package but including them in the add-on package. Some day if you want to compile the tiff programs statically (or explain to me how to compile just those files and not the whole package) I can put them in the main package. That way there would be no problems of having a libc5 -dependent tiff or png library in BL2, which when I symlinked to it kept links2 from delinux from working (it needs a glibc version).


Suppose that you write the above to /usr/bin/wvbatch. Then add executable
permissions. Now, running wvbatch 1.doc 2.doc would be equivalent to:

wvware 1.doc > 1.doc.html
wvware 2.doc > 2.doc.html

Could I do this with files named abc.doc def.doc etc. or must they be sequentially numbered? The ones I have now are Doc1.doc Doc2.doc.

To use a different extension than doc.html, you'd probably need a sed
script, too.

I don't care what the output .html files are named when I am only interested in the accompanying .png files. Each html file here consists of a link to a .png file. I don't know whether the png file from Doc2.doc (the first of one) will come out named differently from the one from Doc1.doc - will have to experiment some more. At least I now have netpbm to print the png files (pngtopnm, pbmtolj). I can't think of any way to do a 1-pass convert (doc to html and png) and print the png (via pbm). This is getting too complicated to follow.

Luckily we are getting the beginnings of 6" snow so I have time to play with this today.


David
--
_______________________________________________
NEW! Lycos Dating Search. The only place to search multiple dating sites at
once.
http://datingsearch.lycos.com

_______________________________________________
BasLinux mailing list
BasLinux AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/baslinux



keesan AT sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org




Archive powered by MHonArc 2.6.24.

Top of Page