[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: XyWrite



≪ I too am in the same boat with Word when I want XyWrite. Does anyone
know how to get Xy to not see the end of file character as such so I can
open Word documents in Xy (3.55). ≫ --Elliott 

≪ I think Annie posted a clever little .pgm that removes the EOF
character. ≫ --Rene 

I'm tardy--busy busy busy. And confused, maybe because I don't know Word.
AfaIk, EOFs (ascii 26, 1Ah) are a xyWrite prob in two situations. When
xyW files are used in other environments the automatic eof invisible in
xyW can create probs. Various utilities have been posted here over the
years that solve that by zapping the xyW eof. The xpl that I believe Rene
means was written for that purpose.

xyW3 has no remedy for the second situation and doesn't make it easy
even to detect: Midfile eofs followed by meaningful text, usually a file
concatenated in another environment (e.g., a unix email "folder"--
actually one file) that retains ascii 26s originally at the end
of constituent files, midfile in the concatenated file. xyW3 displays
a file only to the first eof marker and when xyW saves or stores whacks
anything that follows the eof--a calamity waiting to happen. The xpl
utility I use to open files includes necessarily awkward procedures that
compare displayed length with length per dir listing, and queries if
the discrepancy is more than a couple of chars.

Assuming that Elliott's files needn't go back to Word formatted, if Word
uses its eof the way xyW does--to hide stuff that's immaterial to the
user--there's no prob: Saving or storing with xyW will trash the garbage.
If meaningful content follows the Word eof, however, the options are to
open the file with a disk editor like Norton's and find and fill 1As with
another char, or to shell out to xyW4 and, as Leslie points out, before
opening the file execute d 1a=1 (transforms midfile eofs to the char 1),
store, and exit back to xyW3. TTG wisely recommends working with xyW4
default d 1a=0 in normal circumstances.

≪ What's the URL of the XY web page? ≫ --A. Joseph Ross, J.D.


TTG is http://www.tgrp.com/. Carl Distefano and Robert Holmgren's
http://users.datarealm.com/xywwweb/ is a trove of xyW, especially v4, support.
I offer some xyW3 xpl at the url in my sig, most notably !PROfile (a
light overlay and related runtime libraries), !PROfile-supported
utilities, and a xyW3 PostScript font engine, plus general-interest PS
stuff.

Attached is !DO_UNTO, a XyW3 utility inspired by but probably irrelevant
to the msgs cited, nonetheless broadly useful. !DO_UNTO expects two
arguments; #1 defines the scope of an EN cycle, #2 specifies which
procedure in the !DO_UNTO archive to use, e.g.:
	!DO_UNTO c:\2www\*.htm zapeof
!DO_UNTO includes a half-dozen sample procs. You can add any routine to
!DO_UNTO that you can write with xpl to manipulate a wildcard cycle:
Choose it and the scope with the two args when you run !DO_UNTO. If Word
introductory code ends or trailing code begins with consistent char
sequences, a !DO_UNTO proc could easily excise it. Etc etc. The initial
archive includes procs that manipulate newlines, carriage returns,
and linefeeds and zap eofs. !DO_UNTO is documented at the end;
sad the instructions to streamline the utility. ... Ciao. 	--a

=========================================== adpFisher  nyc
http://www.escape.com/%7Eadpf/_xypro.html ===============================

Attachment: !do_unto.zip
Description: Zip archive