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

Re: Macro for XML indexing help needed



** Reply to message from Lisa Kleinholz  on Tue, 18 Jul
2006 12:22:30 -0700 (PDT)

> There seems to be no way to create entries
> for anything other than page 1.

"No way"?

cia 1.{Wild-N} 2.{Wild-N}
cia 1.{Wild-N} 3.{Wild-N}
cia 1.{Wild-N} 4.{Wild-N}

If you write that command _once_, and Stack it, all you have to do is change
the second number. The progrm was designed to handle all your pages at once,
automatically.

> I work one page at a time.

Meaning what? Each "page" is a separate document?? I guess it must be so, if
every one of them thinks it is page 1. OK, whatever. You want the program to
prompt you for a page number, so just change the program slightly:

XPLeNCODE v2.0
b-gin [UNTITLED]
[BX_]es 1[Q2_][TF_]{<}SV01,Enter page# [any non-numeric key e
nds page#; `Esc'ape aborts]: {>}{<}SV02,{>}{<}LBA{>}{<}PR@01{
{062}}{<}SX03,{<}RC{>}{>}{<}IF{<}VA{021}03{>}>0{>}{<}SX02,{<}IS02
{>}+{<}IS03{>}{>}{<}SX01,{<}IS01{>}+{<}IS03{>}{>}{<}GLA{>}{<}
EI{>}{<}IF{<}VA$KC{>}<2{>}{<}PRAbort{>}{<}EX{>}{<}EI{>}{<}SX0
1,0{>}{<}LBB{>}[BX_]se/f #[Q2_]{<}IF@NOT({<}ER{>}){>}[DO_][F
F_]{<}SX01,{<}PV01{>}+1{>}[BX_]ci/1 # {<}PV02{>}.{<}PV01{>}[
Q2_]{<}GLB{>}{<}EI{>}[TF_]{<}PRDone{>}{<}EX{>}[cr|lf][cr|lf]
-nd
XPLeNCODE

-----------------------------
Robert Holmgren
holmgren@xxxxxxxx
-----------------------------