Top Navigational Bar

Generate Passes - What Each Pass Does
DocumentID: 650760
Revision Date: 29-Feb-96 8:29:01 PM

The information in this document applies to:
WordPerfect® 5.1 for DOS

Problem

Solutions: FYI:
The following information is CONFIDENTIAL and should not be sent to customers.

Pass 1      Search the document from the top for
      Def Mark      Determines type of Def Mark.
            ToC            Stores page numbering styles for all 5 levels of ToC and saves language id.
            List            Stores page number style for Lists and saves language id.
            ToA            Stores page number style for ToAs and saves language id.
            Index      Stores page number style for Index and saves language id. If concordance file is selected, stores concordance filename until needed in pass 5.
      Mark            Collects marked text into temporary document in areas reserved for each type (ToC, List 1, List 2, etc.)
      Graphic      If figure has a caption, inserts caption text into temporary document in specific list area as is done above for Mark.
      EndDef      Block text searching backwards until the matching Def Mark is found. Block is then deleted.
      Endnote      If first endnote since last Endnote Placement (EPH), insert a marker to keep track of this note and add to count of endnotes seen. If not first endnote since last EPH, just add to count of endnotes seen.
      EPH            (Endnote Placement) Fix up EPH with space required for all endnotes since last EPH.
      ToA            Copy complete function to a temporary source file. Build and write a sorting key to a temporary sort file.
      Pg Num      Make note that a new page number is set and check if Pg Num occurred between Def Mark for ToA and first ToA.
      Subdoc      Retrieve subdoc at this position as a regular document, changing Subdoc include code to Subdoc Start and add Subdoc End at end of document retrieved.

Pass 2      Search the document from the top for
      Def Mark      If for ToC or List, build the ToC or List in the main document without page numbers (page number placeholders are inserted for now).

Pass 3      Search the document from the top for
      Endnote/Footnote      Search the note for
            ToA            Copy function to the temporary source file. Build and write a sorting key to the temporary sort file.
            Index      Set variables tracking the maximum length yet encountered for major and minor headings.
            Target      Write cross-reference target id and associated reference pointer to a temporary reference index file. Write the reference text to a temporary reference text file.
            Graphic      If figure contains text (i.e., text box), search text for ToA, Index, and Target and do the steps above for each.
                        If figure contains a caption, search caption for ToA, Index, and Target and do the steps above for each.
      Index      Set variables tracking the maximum length yet encountered for major and minor headings.
      Cross Ref      Make note that one more has been seen.
      Target      Write cross-reference target id and associated reference pointer to a temporary reference index file. Write the reference text to a temporary reference text file.
      Mark            Write current page number where Mark is located to temporary document in area reserved for the Mark type (i.e., List 1, List 2, ToC, etc.).
      Graphic      Write current page number where Mark is located to temporary document in list area associated with Graphic type.

Pass 4      Build each ToA section in temporary document without page numbers from the temporary source and sort files. Then begin searching document for
      ToA      Try to find an existing match of the short form of this ToA with the short form already found in temporary document. If a match found, just append the page number to the entry. If a match not found, add the new entry (which would be a short form only if we have not found it) marked with an asterisk, at the top so the user will be able to notice it easily.
      Endnote/Footnote      Search the endnote or footnote for
            ToA      (See above)
      Graphics      If the graphic has text (i.e., text box, etc.) then search text for
            ToA      (See above)
                  If the graphic has a caption, search the caption for
            ToA      (See above)

Pass 5      If concordance defined in index Def Mark, build temporary scan tables for text and index marks in concordance file. Scan main document for matches of text and index entries found in temporary scan tables. When a match found, copy text to a temporary index source file and the index sort key with page number to the temporary index sort file.

Pass 6      Search the document from the top for
      Def Mark      Determines the type of Def Mark.
            Pg Num Placeholder      Copy correct page number from temporary document to ToC or List in main document.
            Cross Ref                  Update the Cross Ref function making sure references are correct.
      ToA            Copy ToA text with correct page numbers from temporary document for section associated with the Def Mark.
      Index      Sort index entries that have been written to temporary sort file. (Obviously is any Index marks occur after the Def Mark for an index, the entry will not have been written to sort file and thus will not be included in the index).
      Endnote/Footnote      Search the endnote or footnote for
                  Index      Copy index text to a temporary source file and the sort key and page number to the temporary sort file.
                  Cross Ref      Update the Cross Ref function making sure references are correct.
                  Graphic      If the graphic has text (i.e., text box, etc.) then search text for Index and Cross Ref and do the steps above for each.
                              If the graphic has a caption, search the caption for Index and Cross Ref and do the steps above for each.
      Index            Copy index text to a temporary source file and the sort key and page number to the temporary file.
      Cross Ref            Update the Cross Ref function making sure references are correct.
      Header/Footer      Search the header or footer for
                  Cross Ref      Update the Cross Ref function making sure references are correct.
                  Graphic      If the graphic has text, search text for Cross Ref and do the step above.
                              If the graphic has a caption, search the caption for Cross Ref and do the step above.
      Graphic            If the graphic has text, search text for
                  Index      Copy index text to a temporary source file and the sort key and page number to the temporary sort file.
                  Cross Ref      Update the Cross Ref function making sure references are correct.
                        If the graphic has a caption, search the caption for
                  Index      Copy index text to a temporary source file and the sort key and page number to the temporary sort file.
                  Cross Ref      Update the Cross Ref function making sure references are correct.

Answer:

Details:


Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER.