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

Re: opening window in text



Reply to note from Morris Krok 
Wed, 23 May 2001 08:51:15 -0700

> I have written a small shorthand typing program
> whereby the keys are monitored so that when I press a
> letter, this letter plus the longform appears on the
> command line, but if I add a another letter or a
> number of letters, then these letters separated by a
> space and its longform appear on the command line. In
> other words the command line continually changes as I
> type.
>
> What I want to know is there a way that instead of the
> letter and the longform appearing on the command line,
> they will appear in a box on the text page in the same
> manner as when we use the spell command.

It wouldn't be easy. You could toggle into draft view
and put the information in a non-printing PRompt 
or NoTe . Then move the cursor onto the delta
and execute func EF. That would display "foo" in a
separate window. On the next keystroke, close the
window with func XD and remove the delta with func RC.
A kludge, to be sure, but it just might work.

> Previously I enquired how can search for a capitalized
> letter without the need to mention each capitalized
> letter of the alphabet. The wildcard search functions
> do not appear to have such a function.

You're right, Morris. There is no wildcard that finds
only uppercase letters. You have to "mention each
capitalized letter" in a case-absolute SEArch command,
using the logical OR wildcard (which looks like a
reverse-video O and is available in Xy4 and later
versions only). What's more, there's a limit on the
number of OR wildcards that can appear in a single
command; unfortunately, the limit is less than 26.
So you can't simply string together all the letters of
the alphabet like this:

BX sea A[or]B[or]C...[or]ZQ2 ;*; 2 spaces after SEA

You've got to break the operation up into two SEArch
commands, and then (re)position the cursor after taking
into account the results of both commands. Tricky, but
doable. Examine the attached SECAP.PM or decode (with
DECODE) what's below:

XPLeNCODE v2.0
b-gin [UNTITLED]
{<}GLa{>}[cr|lf]{{;5secap}} Find next UPPERCASE l
etter A-Z [CLD 5/23/01][cr|lf]{2}{<}LBa{>}[BX_]
es 1[Q2_];*;[cr|lf]{<}SX01,{<}CP{>}{>}[BX_]sea
 A[wO]B[wO]C[wO]D[wO]E[wO]F[wO]G[wO]H[wO
]I[wO]J[wO]K[wO]L[wO]M[Q2_]{<}SX02,{<}CP{>}{>};*;
[cr|lf][BX_]jmp {<}PV01{>}[Q2_][BX_]sea N
[wO]O[wO]P[wO]Q[wO]R[wO]S[wO]T[wO]U[wO]V
[wO]W[wO]X[wO]Y[wO]Z[Q2_];*;[cr|lf]{<}IF{<}CP{>}>
{<}PV02{>}&{<}PV02{>}=={<}PV01{>}!{<}CP{>}<{<}PV02
{>}&{<}CP{>}>{<}PV01{>}{>}{<}SX02,{<}CP{>}{>}{<}EI
{>};*;[cr|lf][BX_]jmp {<}PV02{>}[Q2_]{<}
IF{<}CP{>}=={<}PV01{>}{>}[BX_]beep[Q2_]{<}PRN
ot found{>}{<}EI{>}{<}EX{>}{2}[cr|lf][cr|lf]
-nd
XPLeNCODE


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

Attachment: secap.pm
Description: Binary data