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

TWINCAPS [was Re: Technology group]



Reply to note from "Morris Krok"  Thu, 9 May
2002 09:51:30 -0700

> Since I added the AZ function at the beginning of Carl's
> Twincaps program, it no longer misses a beat.

Lest anyone be misled by this comment: TWINCAPS -- an XPL program
that automatically corrects TYping ERrors THat LOok LIke THis
(changes them to Initial Caps) -- requires no user modification and
doesn't miss any beats. As the instructions plainly state, it's
designed to work only when Auto-Replace (toggled with func AZ) or
Auto-Correct (toggled with func AC) is active. If these are
disabled (turned off), so is TWINCAPS.

This feature is essential. Without it, it would be impossible (or,
at least, very inconvenient) to produce the "error" on purpose. How
could we, for example, talk about the CMline, and SAving or SToring
a document, and all the other 2-character mnemonics that embellish
our discourse about Xy? Clearly you need a way to temporarily
disable the correction. Tying it to Auto-Replace just seemed to
make sense.

If this linkage doesn't suit you -- if you want nothing to do with
Auto-Replace, ever -- the solution is *not* simply to add a func AZ
at the beginning of TWINCAPS! Func AZ is an On/Off toggle, so
actually what you're doing is *forcing* TWINCAPS to "miss a beat" --
preventing it from doing its job, on average, half the time! Talk
about tachycardia....

There are, of course, other ways to make TWINCAPS toggle-able. You
could, for example, modify it so that it turns itself off if the
word "off" is on the CMline. Here's a variant that does just that:

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5twincaps}} Auto-correct TWo INitial CAPS typing error [CL
D rev. 5/9/02][cr|lf]{2};*;[cr|lf];*;     Assign via .KB
D file (in TABLE= only) to[cr|lf];*;      Space key:[cr|
lf];*;       57=NO, ,JM,2,.,t,w,i,n,c,a,p,s,Q2[cr|lf];*
;      Optionally also modify:[cr|lf];*;      the H
yphen key:[cr|lf];*;       12=NO,[255+50+68],JM,2,.,t,w
,i,n,c,a,p,s,Q2[cr|lf];*;      and one or both Enter key
(s):[cr|lf];*;       28=NO,[255+48+68],JM,2,.,t,w,i,n,c
,a,p,s,Q2[cr|lf];*;      104=NO,[255+48+68],JM,2,.,t,w,
i,n,c,a,p,s,Q2[cr|lf];*;[cr|lf];*; Caution: Modifying the En
ter key may interfere[cr|lf];*;      with some Menu func
tions![cr|lf];*;[cr|lf];*; TWINCAPS is enabled if either Auto
-Replace (func AZ)[cr|lf];*; or Auto-Correct (func AC) is ON,
 disabled if both are OFF[cr|lf];*;{<}IF{<}VA$TX{>}<1!{<}VA$W
S{>}>1!{<}VA$AR{>}<1&{<}VA$AC{>}<1{>}{<}EX{>}{<}EI{>};*;[cr|l
f];*;[cr|lf];*; Variant: Put "off" (no quotes) on CMline to d
isable TWINCAPS[cr|lf]{<}SX01,@upr({<}VA$CM{>}){>}{<}SV02, {>
}{<}XS01,02,02,,03{>}{<}IF{<}VA$TX{>}<1!{<}VA$WS{>}>1!{<}VA@0
2{>}=="OFF"{>}{<}EX{>}{<}EI{>};*;[cr|lf];*;[cr|lf][DX_][YD_][
DF_][PW_][DF_][DE_]{<}SV01,abcdefghijklmnopqrstuvwxyz{132}{13
4}{145}{135}{130}{164}{148}{129}{>}{<}SV02{>}{<}SV03,{27}X{27
}X{>}{<}SV04,{>}{<}XS02,03,,03,04{>}{<}IF{<}IS04{>}==@upr({<}
IS04{>})!{<}VA|04{>}<2!{<}VA|03{>}>2{>}{<}LBa{>}[YD_][DO_][FF
_]{<}EX{>}{<}EI{>}{<}SV02,{27}X{>}{<}SX05,{<}IS04{>}{>}{<}LBb
{>}{<}IF{<}VA|05{>}>0{>}{<}SV06,{>}{<}XS05,02,,07,06{>}{<}IF@
upr({<}IS01{>}){240}{<}IS07{>}{>}{<}GLa{>}{<}EI{>}{<}SX05,{<}
IS06{>}{>}{<}GLb{>}{<}EI{>}{<}XS03,02,,02,05{>}{<}IF@upr({<}I
S01{>}){240}{<}IS02{>}&@upr({<}IS01{>}){240}{<}IS05{>}{>}{<}X
S01,05,,05,03{>}{<}SX02,{<}IS02{>}+{<}IS05{>}+{<}IS04{>}{>}[D
N_]{<}GT02{>}[DO_][FF_]{<}EX{>}{<}EI{>}{<}GLa{>}{2}[cr|lf]
[cr|lf]
-nd
XPLeNCODE

Putting "off" on the CMline isn't a half-bad way to go, but it *is*
one more thing to remember (and may therefore be off-putting to
some). As an inveterate Auto-Replacer, I think the original design
makes more sense. Suum cuique.

I hope this clarifies matters.

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