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

Re: DW function



Reply to note from "Olson, Timothy"  Mon,
30 Nov 1998 9:51:52 -0500

-> In Xy3 the DW (define word) function would highlight a word AND
-> the character following it--no matter what that character was.
-> But in Xy4 there seems to be some additional processing going
-> on--somebody or something-has decided that I don't want to
-> highlight the character following if it's terminal punctuation
-> (. ! or ?) or a hard return.
-> ...
-> Is there a way to turn off (or otherwise limit) this "feature"?
-> ...
-> Secondly, Xy3 treats a hyphenated word as a single word; Xy4
-> treats it as two words, treating the hyphen the same as it
-> would a space. Again, is there a way to tell Xy4 to treat the
-> hyphen as a regular alpha character? Or some other workaround?


Sure. The following code emulates func DW a la Xy3 as you've
described it:

PW NW DM BX (se/f wAwS)CR =="-">NW NW CL CR DZ

It's pseudo-code, of course; PW , NW , etc. are functions; wA and wS
are the wild alpha and wild separator search wildcards; < and > are
guillemets. (UU- and XX-encoded versions of the same code are
appended below.)

One caveat is that the undocumented VAriable  is known to
behave erratically in some applications. It seems to work OK here
(I'm using v4.017), but YMMV.

Moronic UuenCode for XyWrite (X-MUC)
begin 644 19981130.MUD
M_X"G_X)+_X*K*'-E+V8@(/_`P?_`TRG_@&.N24:N5D$D4E.O/3TB+2*O_X"G
0_X"G_X!;KD5)K_^`8_^"1P``
`
end

Moronic XxenCode for XyWrite (X-MXC)
begin 644 19981130.MXD
hzs0tzs0bzs79zs8f85BZ9qMU6Dz+kTz+ombzU4CiGIOiJY2YIZCjDHoW9G8j
Hzs0bzs0bzs-PfYJ7fzy+Mzy0Fk++
+
end


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