home *** CD-ROM | disk | FTP | other *** search
- :***************************************************
- : FOL_ACTI.FS2
- :
- : Creates Popup Links from Footnotes
- :
- : Supplemental FSR to FOL_ACTI.FSR
- : Separated to avoid memory errors
- : Apply both FSRs with the batch file FOL_ACTI.BAT
- :
- :**************************************************
- :
- : Add Popup Links to Footnotes
- : Search for a word (including punctuation marks) followed by a number.
- : Store the word in a variable. Search for everything which is not a
- : form feed (page break--ASCII 12) up to a number preceded by a CRLF
- : OR up to a page break (store all but CRLF+Number or Page break
- : in a variable). Store the following word or words (up to a CRLF)
- : in a third variable. Replace the first and third variables in the
- : Popup Window Link code. Replace the second variable after the code.
- :
- "{ [A-z!-/?]+}[0-9]+{[^]+}(\r\n[0-9]+|){[^\r\n]+}\r\n" "<PW:Popup,3,2>{3}<LT>{1}</PW>{2}\r\n" -c
- :
- : Note: This may not be the best way to do footnotes, but it will work.
- : However, because more than one footnote may appear on a page, the argument
- : needs to be repeated as many times as there are footnotes on the page.
- : For this file, the most on a page is 4, which means the argument must
- : be repeated 3 more times.
- :
- "{ [A-z!-/?]+}[0-9]+{[^]+}(\r\n[0-9]+|){[^\r\n]+}\r\n" "<PW:Popup,3,2>{3}<LT>{1}</PW>{2}\r\n" -c
- "{ [A-z!-/?]+}[0-9]+{[^]+}(\r\n[0-9]+|){[^\r\n]+}\r\n" "<PW:Popup,3,2>{3}<LT>{1}</PW>{2}\r\n" -c
- "{ [A-z!-/?]+}[0-9]+{[^]+}(\r\n[0-9]+|){[^\r\n]+}\r\n" "<PW:Popup,3,2>{3}<LT>{1}</PW>{2}\r\n" -c
- :
- : Remove the Page Break Codes (they are not needed in the infobase)
- : Two Steps:
- : 1. Remove PB followed by CRLF
- : 2. Remove lone PB
- "\r\n" "" -c
- "" "" -c