[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: Searching a file for an unrecognized character
- Subject: Re: Searching a file for an unrecognized character
- From: Carl Distefano CLDistefano@xxxxxxxx
- Date: Wed, 22 Sep 1999 01:39:04 +0000
Reply to note from Eric Van Tassel <101233.342@xxxxxxxx>
Tue, 21 Sep 1999 16:38:01 -0400
Eric:
Your routines would work fine in Xy3+, with minor changes. A few bits
are Xy4-only, to wit:
- Func ES to cancel a DF block; use func YD or XD instead.
- BC to put text on the CMline; you need BC
Why do you use a "permanent" Save/Get? The contents stay in memory
after the program ends, an inefficient use of resources. Unless you
need to retrieve the contents for some reason, use a S/G in the 01-99
range instead.
Also, it's advisable to preface your DeFine operations with a
func YD; otherwise the program bombs if something is already DeFined.
Thus the Xy3-ready versions would look like the following (Jumbo U2
users -- Xy4 only! -- can hit DECODE to translate the pseudo-
code into usable XPL):
(1):
XPLeNCODE v2.0
b-gin [UNTITLED]
[YD_][DF_][CR_][DF_]{<}SV01{>}[YD_][BC_]sea |{<}PV01{>}|
-nd
XPLeNCODE
(2):
XPLeNCODE v2.0
b-gin [UNTITLED]
[YD_][DF_][CR_][DF_]{<}SV01{>}[YD_][SI_][BC_]cva |{<}PV01{>}|
|[CL_][GT_][CL_][CL_][GH_]
-nd
XPLeNCODE
Cheers.
--------------
Carl Distefano
CLDistefano@xxxxxxxx
http://users.datarealm.com/xywwweb/
-> Whenever I want to do a search for an unrecognizable character
-> in a file that someone has sent me, I put the cursor on the
-> character and run the following program (from the kbd file):
->
-> {..} = function all, ≪...≫ = guillemets
->
-> (1) {DF}{CR}{DF}≪SV999≫{ES}{BC}sea |≪GT999≫|
->
-> If I know that the unrecognized character is may e-mail
-> program's substitution for a known character (e.g. when I get
-> Greek theta and know that it's supposed to be e+acute), I run
->
-> (2) {DF}{CR}{DF}≪SV999≫{ES}{SI}{BC}cva
-> |≪GT999≫||{CL}{GT}{CL}{CL}{GH}
-> ...
-> Does this work only in Xy4? or can it be adapted for use in
-> Xy3+?