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

Re: Countchars



Reply to note from "M.C."  Sun, 13 Feb 2005 21:00:37
+0100

> The similarity between FN1/FN2/FN3 and FM1/2... was the origin
> of my misunderstanding.

It is confusing. I've changed it to command1,command2.

> If I like to have the exact number of characters, it's only
> necessary to add the number of footnotes.

Well, the total number of digits, anyway. Because 10 footnotes
equals 11 chars, 11 footnotes equals 13 chars, etc., etc. Actually,
it's a mildly interesting math problem. How do you compute the
length of a series of integers from 1 to n ? Here's how, in XPL:

XPLeNCODE v2.0
b-gin [UNTITLED]
{{;5lens}} Compute LENgth of Series 1 to n (S/G 50 in/out) [C
LD][cr|lf]{002};*;   E.g., LENS 25[cr|lf]{<}IF{<}
VA{021}50{>}<1{>}{<}SX01,@upr({<}VA$FR{>})+" n (n=in
teger>0)"{>}{<}PR@01{>}{<}EX{>}{<}EI{>}{<}SX01,{<}PV50{>}{>}{
<}SX50,0{>}{<}SX02,1{>}{<}SX03,1{>}{<}SX04,10{>}{<}LBa{>}{<}I
F{<}PV01{>}>{<}PV04{>}-1{>}{<}SX50,{<}PV50{>}+{<}PV02{>}*({<}
PV04{>}-{<}PV03{>}){>}{<}SX03,{<}PV04{>}{>}{<}SX04,{<}PV04{>}
*10{>}{<}SX02,{<}PV02{>}+1{>}{<}GLa{>}{<}EI{>}{<}SX50,{<}PV50
{>}+{<}PV02{>}*({<}PV01{>}-{<}PV03{>}+1){>}{<}PR@50{>}{002}[c
r|lf][cr|lf]
-nd
XPLeNCODE

> In its current version, it's even possible to use it for
> literary analysis purposes!

I'm amazed to hear that, Manuel, given its humble origins -- but
glad you find it useful.

--
Carl Distefano
cld@xxxxxxxx