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

Re: Xy4 Setup



Reply to note from "Harrison, Shawn"  Thu,
7 Jan 1999 16:59:11 -0500

-> >My question still is: Why?
->
-> Why not?

Because it's tortured. Draft view and the other non-eXPanded views
weren't designed for direct embedding of codes.

Now, if (as your programs suggest) you want to automate a toggle in
and out of eXPanded view to do the embedding, that's a different
story. It's awkward and distracting, IMO, but do-able. For a routine
that will handle all display types, I'd suggest something along these
lines. (The code is a little more prolix than absolutely necessary,
so that it will display in draft view without the error beep produced
by the bare, unbalanced guillemet.)

XPLeNCODE v2.0
b-gin [UNTITLED]
Left Guillemet:[cr|lf]{<}SX100,{<}VA$DT{>}{>}{<}SX100,{<}IS10
0{>}{>}{<}SV01,0[XP_]|1[WG_]|2[SP_]|4[WZ_]|8[XP_][NM_]|9[WG_]
[NM_]|10[SP_][NM_]|12[WZ_][NM_]|16[XP_][NM_]|17[WG_][NM_]|18[
SP_][NM_]|20[WZ_][NM_]|24[XP_][NM_]|25[WG_][NM_]|26[SP_][NM_]
|28[WZ_][NM_]|{>}{<}XS01,100,,02,03{>}{<}SV100,|{>}{<}XS03,10
0,100,,01{>}{<}SV01,{<}|{>}{>}{<}SX01,{<}VA@01|1{>}{>}[XP_]{<
}GT01{>}{<}EX{>}[cr|lf][cr|lf]Right Guillemet:[cr|lf]{<}SV01,
{<}|{>}{>}{<}SX01,{<}VA@01|2{>}{>}{<}GT01{>}{<}PV100{>}{<}SV1
00,{>}{<}EX{>}[cr|lf][cr|lf]
-nd
XPLeNCODE


-> I'm surprised that this group is asking, Why? I would
-> understand that mindset from the Word flock.

Balderdash. The fact that options are available doesn't make them all
equal. The "Word flock" doesn't have the same array of choices, so
the opportunity to be discrminating about them hardly arises.

Understand, I'm not knocking your *objective*. You want to be able to
embed codes without taking your eyes away from the text and without
leaving the touch-typing "home" position. I can relate to that. Ten
years ago I wrote a program -- I wish I could find it now, to show you
how ridiculous it was -- that purported to do it. It worked (I forget
how). But, before long, I abandoned it, because the square peg just
wouldn't fit. At some point you bow to the limitations imposed by the
"environment", and move on.

Here's the compromise I arrived at years ago. The left guillemet
triggers eXPanded view. Period. No toggle. When I'm done embedding,
I hit my dedicated toggle key to return to Draft view. I rigged up a
little program that will produce either the left or right guillemet,
depending on which key it's mapped to. (Actually, it produces the
left guillemet, unless it's mapped to the key specified in the User
Variable.) As a bonus at no extra charge, if the filename has a .C
extension, it leaves the display where it is and produces left and
right curly braces {} instead of guillemets.

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}GLa{>}[cr|lf]{{;5<>}} Put 1-byte [255+65+69][255+65+70] or
 {} in text [CLD][cr|lf]{2}{<}LBa{>};*; {<}NT1{>}[cr|lf];*;[c
r|lf]{<}SX01,27{>};*; <== Key Code of key to produce RIGHT gu
illemet[cr|lf];*;[cr|lf]{<}IF{<}VA$EX{>}=="C"{>}{<}SV02,{|}{>
}{<}GLb{>}{<}EI{>}{<}IF{<}VA$TX{>}+{<}VA$SM{>}>0{>}[XP_]{<}EI
{>}{<}SV02,{<}|{>}{>}{<}LBb{>}{<}SX03,1{>}{<}IF{<}VA$KC{>}=={
<}PV01{>}{>}{<}SX03,2{>}{<}EI{>}{<}SX03,"{<}VA@02|"+{<}IS03{>
}+"{>}"{>}{<}SX03,{<}PV03{>}{>}{<}PV03{>}{2}[cr|lf]
-nd
XPLeNCODE

That's how I made my peace. Maximum flexibility, minimum fuss.

--------------
Carl Distefano
CLDistefano@xxxxxxxx
http://users.datarealm.com/xywwweb/