[comp.sys.ibm.pc.misc] WP 5 to ASCII ?

esaholm@polaris.utu.fi (Esa Holmberg) (10/14/90)

I have about 500 small text files that have been written with
Wordperfect 5.0, and now they should be converted to plain
ASCII files. I wonder, if there is any ready filter that would
do this? I could of course do it manually, but 500 files are
some too many.. 
-- 
 _________________________________________________________________________
(  Esa Holmberg, Turku Telephone Company, AXE, Linnankatu 4, 20100 TURKU, )
 ) Finland ! Elisa: Holmberg Esa TT (tt) ! fax +358 21 502 298           /
(  Internet: esaholm@utu.fi, holmberg_esa_tt%posti.elisa@funet.fi       /

marc@pinet.aip.org (Marc Wiener) (10/15/90)

In article <esaholm.655853101@polaris> esaholm@polaris.utu.fi (Esa Holmberg) writes:
>I have about 500 small text files that have been written with
>Wordperfect 5.0, and now they should be converted to plain
>ASCII files. I wonder, if there is any ready filter that would
>do this? I could of course do it manually, but 500 files are
>some too many.. 
>-- 

Why not use Word Perfect's convert utility?

-- 

Marc Wiener                    |    marc@pinet.aip.org
American Institute of Physics  |    marc@aip.bitnet
500 Sunnyside Blvd.            |

cgordon@vpnet.chi.il.us (Crash Gordon) (10/16/90)

>Author: [Esa Holmberg]
>I have about 500 small text files that have been written with
>Wordperfect 5.0, and now they should be converted to plain
>ASCII files.

Just use the CONVERT.EXE program which comes with WP.  Select "WordPerfect
to Another Format", then "ASCII".  This program will take wildcards for
input filenames, so you could do a whole subdirectory.

I know this works; I just shelled out and did it.

-----------------------------------------------------
Gordon S. Hlavenka            cgordon@vpnet.chi.il.us
Disclaimer:                Yeah, I said it.  So what?

userDHAL@mts.ucs.UAlberta.CA (David Halliwell) (10/16/90)

In article <1990Oct15.151606.15793@pinet.aip.org>, marc@pinet.aip.org (Marc Wiener) writes:
>In article <esaholm.655853101@polaris> esaholm@polaris.utu.fi (Esa Holmberg) writes:
>>I have about 500 small text files that have been written with
>>Wordperfect 5.0, and now they should be converted to plain
>>ASCII files. I wonder, if there is any ready filter that would
>>do this? I could of course do it manually, but 500 files are
>>some too many..
>>--
>
>Why not use Word Perfect's convert utility?
>
>--
 
WP5 actually makes things easier than that: just use Text In/Out
(ctrl-F5) to create a plain ASCII file. This will export the file,
stripping all control codes and leaving only the text without margins, etc.
If you want margins to appear in the ASCII file - e.g. having all the text
appear with 5 or 10 (or whatever) blank characters at the start, justified,
or similar - then select the "standard" printer and have it print to a file.
(Note: I mean the printer definition "standard", NOT your default printer,
whatever it may be.) If you are printing to a file, you will have to change
names each time, either by redefining the printer destination or renaming
the resulting file. Otherwise each subsequent print job overwrites the
previous one.
 
As for dealing with 500 files, then I suggest a macro that lists
available files, lets you pick out the one you want, and then does the text
out. Next stage would be to somehow automate the whole procedure. Don't
know if it can be done in WP's macro language, but perhaps another solution
would be to use the DOS batch command FOR %%c IN set DO [command]. If you
use this to run WP for each file, all you need to do is specify that
WP automatically run a macro that does the Text Out function and exits.
It would mean loading WP 500 times, so don't expect speed records, but at
least it would work with what you have on hand. To get WP to run a macro,
use WP/m-macroname on the command line. I can't exit from my mainframe to
try running WP and see if the exit code is easy to store in a macro or
not: if you have problems, try creating the macro without exiting, then
edit the macro to add it.
 
 
Dave Halliwell
#! r

CHAS@MTUS5.BITNET (Chas. Thompson) (10/16/90)

Why not just write a macro to do the job for you it wouldn't take but about
5 mins

l_seibert@wrglex (10/19/90)

In article <esaholm.655853101@polaris>, esaholm@polaris.utu.fi (Esa Holmberg) writes:
> I have about 500 small text files that have been written with
> Wordperfect 5.0, and now they should be converted to plain
> ASCII files. I wonder, if there is any ready filter that would
> do this? I could of course do it manually, but 500 files are
> some too many.. 
> -- 
>  _________________________________________________________________________
> (  Esa Holmberg, Turku Telephone Company, AXE, Linnankatu 4, 20100 TURKU, )
>  ) Finland ! Elisa: Holmberg Esa TT (tt) ! fax +358 21 502 298           /
> (  Internet: esaholm@utu.fi, holmberg_esa_tt%posti.elisa@funet.fi       /


 
You can do this easily with two DOS-batch-routines and a WP-macro.
 
Master batch-routine:  CNVMST.BAT
 
call conv <file 1>
call conv <file 2>
call conv <file 3>
       .
       .
       .
 
This program can be easy produced with a normal editor.
 
Batch-routine:  CONV.BAT
 
wp %1 /m convert
ren \asc\temp.$$$ %1
 
The converted file is stored in the subdirectory \asc
 
 
WP-macro: CONVERT
 
CTRL-F5 1 1 \asc\temp.$$$<RETURN> F7 n j
 
The "n" and "j" mean in my german version: Exit text, no save, yes leave WP
 
 
I hope this helps you.
 
Good luck!
 
 
Lars Seibert
 
TEC Systems KATEC
GRACE GmbH
Honeywellstr. 18
6457 Maintal 1
Germany
Tel.: +49 6181 9404-69
FAX : +49 6181 46646

johncore@compnect.UUCP (John Core ) (10/23/90)

In article <2719dd16-3bc.1comp.sys.ibm.pc.misc-1@vpnet.chi.il.us>, cgordon@vpnet.chi.il.us (Crash Gordon) writes:
> 
> >Author: [Esa Holmberg]
> >I have about 500 small text files that have been written with
> >Wordperfect 5.0, and now they should be converted to plain
> >ASCII files.
> 
> Just use the CONVERT.EXE program which comes with WP.  Select "WordPerfect
> to Another Format", then "ASCII".  This program will take wildcards for
> input filenames, so you could do a whole subdirectory.
> 
I HATE WORDPERFECT!!!!  -- thanks just had to get that off my chest

ok, we have many pc's running just about every version of WP known to
the state of UTAH. and I have found out that WP's conversion sucks.
being a WORDSTAR lover, in their 5.5 release they have a conversion
program that converts WP files better than WP's own program. It also
supports wildcards. We actually had better luck moving WP 4.2 to 5.0
by converting it to a wordstar file and then back to WP 5.0!!

I called WP support in Utah about this and I got the same drone message
they give you for EVERY problem you will ever have with WP

"reinstall from orig disks - thank-you."



Wizard Systems              |    UUCP:   uunet!wa3wbu!compnect!johncore
P.O. Box 6269               |INTERNET:   johncore@compnect.wa3wbu
Harrisburg, Pa. 17112-6269  |a public bbs since 1978. Data(717)657-4992 & 4997
John Core, SYSOP            |-------------------------------------------------
----------------------------| No matter where you go, there you are!
a woman is just a woman, but a good cigar is a smoke.   -R. Kipling

dgl292@pallas.athenanet.com (Doug Lee) (10/25/90)

For those interested, there is a utility available from CrossCourt Systems
which claims (and appears) to be an improved WP5.x->text translator.  A short
summary from the docs:

===================
       TextOut/5 converts WordPerfect 5.0 and 5.1 document files on IBM-
       compatible computers to ASCII.  It improves upon WordPerfect's Text
       Out command, in both the "DOS Text" and "generic" formats.

       1.  TextOut/5 translates text, captions, and equations from graphics
           boxes, as well as footnotes and endnotes; WordPerfect does not.
       2.  TextOut/5 formats tables much better than WordPerfect does.
       3.  TextOut/5 translates over 400 of WordPerfect's special characters
           to ASCII; WordPerfect translates only 150.
       4.  TextOut/5 allows you to specify the line length you want in the
           ASCII file, without any reformatting on your part.
       5.  TextOut/5 can use special characters to mark many font attributes,
           such as underline, allowing you to transfer the file to another
           word processor and restore the attributes.
       6.  TextOut/5 runs from the DOS command line, and accepts wildcard
           filespecs.  [Hmmm...good for 500 files???! -DL]
       7.  TextOut/5 can recover text from damaged files that WordPerfect
           will not load.

===================

Their address and phone are
       CrossCourt Systems
       1521 Greenview Ave.
       East Lansing, MI 48823
       (517) 332-4353
according to the same doc file.

This utility is available also on Simtel20 as PD1:<MSDOS.TXTUTL>TXTOUT13.ARC
and probably several other places (wuarchive.wustl.edu???).

Btw, I have no relationship with CrossCourt Systems whatsoever (except as
one who has retrieved and tested one of their products and found it admirable).

Doug Lee  (dgl292@athenanet.com or uunet!pallas!dgl292)
(NOTE: that's "dgl" with a lower-case L, not #1)