[Date Prev][Date Next][Subject Prev][Subject Next][
Date Index][
Subject Index]
Re: CONTROL CODES
- Subject: Re: CONTROL CODES
- From: ROBERT HOLMGREN
- Date: 11 Nov 1990 11:12:29
Karl, there's no way that I can see to get the actual footnote number using
screen controller sequences, since it isn't encoded within the sequence. As
previously mentioned (maybe here), the screen controller sequence begins with
three fixed characters -- "{Ascii-253}{Ascii-128 for FN_set_1|Ascii-130 for
FN_set_2|Ascii-132 for FN_set_3}{Ascii-2}" -- followed by two characters
representing an unsigned hex integer parsed right to left. Regrettably, these
numbers don't increment in any always-predictable fashion if you use more than
one FNset. But (big but) if you use one FN set ONLY, the hex integer value
starts with h0004 and increments by 7, so in this case you could with some
fancy programming fashion a jump-to-FNnumber routine, e.g. for FN1 #76:
(76-1)*7+4=529/256=2 MOD 17 [=h0211]
so command: sea {Ascii-253}{Ascii-128}{Ascii-2}{Ascii-17}{Ascii-2}
If using more than one FNset, the only kludge is jump to TopFile, select your
three-char FNset, and SEArch repeatedly to the desired FNnumber.
Re: XS parsing with soft hyphen "{Ascii-255}7E", I don't get an error (it
works!). I tested:
≪SV01,test{soft-hyphen}it≫≪SV02,{soft-hyphen}≫≪XS01,02,03,04,05≫
Are you mixing soft and hard hyphens inadvertently? Subsequently putting the
soft hyphen on the CMline where it becomes a hard hyphen? Using PV instread of
GT (PV will turn the soft hyphen result in ≪SV04≫ into a hard hyphen if you
put it into text, whereas GT will put it as a three-byte soft hyphen). Run the
nclosed file in a window, SAve it, then inspect the result with LIST. Bye
*Enclosed File: SOFTHYP.TST