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

Adding frames to U2; Encode/Decode; etc.



Friends,
 
Here's a copy of posts between me and Carl Disefano (I had gone against protocol by communicating with him directly--a mistake, for which I apologize) which may help others.
 
Fred Weiner
 
 

Dear Mr. Distefano,

Thank you for your suggestions regarding having styles available on the fly. FISHOUT is a beautiful utility and I have used it to fly fish for styles and boilerplate: a boon. I also want to use the example MYSTYLE frame you sent dedicated to a key in my .KBD, for the experience and learning, but have run into my ignorance about how to incorporate the code into XYWWWEB.U2. Below is the block you sent me (edited a little to reflect my own style preference). I first ran DECODE as you suggested, studied it, then ENCODE to bring it back to the form I imagined would go into .U2. (ENCODE complained with an error message unless I defined the block first: why?):

?

XPLeNCODE v2.0b-gin [UNTITLED]

{{5mystyle}} Insert MYSTYLE "delta" into text

[cr|lf]{002}{{<}}IF{{<}}VA$WS{{>}}==1{{>}}[

GT_]{{<}}SV01,{{<}}SSMYSTYLE,NP,OR=0,SZ=12PT,12PT,UF=UTOPIA,S

Y=23Z,10,0,0,MD=NM,FD=66LI,PW=85DI,OF=15.0DI,17.5DI,LM=0DI,RM

=0DI,TP=5LI,5LI,BT=2LI,3LI,2LI,7LI,RT=0,TS=0DI,IP=0DI,0DI,0DI

,FL,JU,HY=1,WD=2,OP=2,ET=0LI,0LI,EE=0LI,0LI,AL=1,LS=1LI,LL=0L

I,0LI,EL=0,SN=0DI{{>}}{{>}}{{<}}GT01{{>}}{{<}}EX{{>}}{{<}}EL{

{>}}{{<}}PRNo file{{>}}{002}[cr|lf][cr|lf]-ndXPLeNCODE

-nd

XPLeNCODE

What I have attempted to do is to select the block above, CAll XYWWWEB.U2 into the next window, then copy it to a space with carriage returns setting it off from the adjacent frames. I want to put it at the end of the file (before the error trap frame) in a section for my own frames, but have had a problem attempting to move to end-of-file with ctrl-end: I get an error message about not being able to scroll further unless I empty all other active windows first (a memory deficiency?). That removes my ability to copy the selected text, so I have had to copy the block into the beginning, which should be okay as far as testing the frame is concerned.

As well, I don't know whether the XPLcode/XPLencode lines at the beginning and end of the block should be included; I wouldn't think so, as none of the other frames I examine seemed to have it. I'm stalled out here, without having executed LOADHELP , waiting for some guidance before "messing with" the .U2. I know how to dedicate the frame to a key once I get it into .U2 properly.

I apologize for appealing directly to you, as I am sure the procedure is documented somewhere; I can't find it.

Thank you.

Fred Weiner

 

Reply to note from "Fred Weiner" mailto:fw1948@xxxxxxxx Fri, 26 May 2006

10:04:01 -0700

 

Fred (may we switch to first names?):

 

Apologies for the delay in replying to your question. My http://att.net

address is used mainly for commercial purposes, and I don't often

reply to the mail that lands in that inbox. Also, in general, I

prefer that XyWrite-related queries be sent to the public mailing

list, for many reasons. You'll be apt to get a quicker answer,

others will be able to benefit from the answer, the question and

answer will be archived for future reference, etc. etc. That said,

I'll reply privately this time.

 

> Below is the block you sent me (edited a little to reflect my

> own style preference). I first ran DECODE as you

> suggested, studied it, then ENCODE to bring it back

> to the form I imagined would go into .U2.

It was a mistake to re-ENCODE. The frame goes into U2 in DECODEd

form (native XyWrite). The sole purpose of ENCODEing is to enable

safe transmission over the Internet in the e-mail message body.

XyWrite code contains high-order Ascii characters that do not

transmit reliably via e-mail unless sent as an attachment or

otherwise encoded.

 

> I want to put it at the end of the file (before the error trap

> frame) in a section for my own frames, but have had a problem

> attempting to move to end-of-file with ctrl-end: I get an error

> message about not being able to scroll further unless I empty

> all other active windows first (a memory deficiency?).

Sounds like OOM (Out Of Memory). Close the other windows, quit and

restart XyWrite, and try again with U2 as the only file open. Also,

make sure that your are opening U2 in eXPanded view (switch /100):

 

CA/100 XYWWWEB.U2

 

Once you have the frame positioned where you want it, do not SAve

U2! Rather, issue LOADHELP, then ABort U2. (Don't worry,

LOADHELP SAves the file.)

 

Here is the template again, in case you need it (it was corrupted --

not merely "edited" -- in your message to me):

 

XPLeNCODE v2.0

b-gin [UNTITLED]

{{;5mystyle}} Insert MYSTYLE "delta" into text[cr|lf]{002}{<}

IF{<}VA$WS{>}==1{>}[GT_]{<}SV01,{<}SSMYSTYLE,NP,OR=0,SZ=12PT,

12PT,UF=STANDARD,SY=23Z,10,0,0,MD=NM,FD=66LI,PW=85DI,OF=2DI,2

DI,LM=5DI,RM=75DI,TP=7LI,7LI,BT=2LI,3LI,2LI,7LI,RT=0,TS=0DI,I

P=0DI,0DI,0DI,FL,NJ,HY=1,WD=2,OP=2,ET=0LI,0LI,EE=0LI,0LI,AL=0

,LS=1LI,LL=0LI,0LI,EL=0,SN=0DI{>}{>}{<}GT01{>}{<}EX{>}{<}EI{>

}{<}PRNo file{>}{002}[cr|lf][cr|lf]

-nd

XPLeNCODE

To be on the safe side, I'm also attaching the native XyWrite code

as a freestanding file (MYSTYLE.FRM).

 

Good luck.

 

Carl

 

 

--

Carl Distefano