home *** CD-ROM | disk | FTP | other *** search
/ Star Trek - Deep Space Nine Companion / StarTrek_Deep_Space_Nine_Companion_1999_WIN.iso / pc / DS9program / Pro / prctools.cxt / 00030_Text_30.txt < prev    next >
Text File  |  1999-09-21  |  2KB  |  49 lines

  1. Text Processing Instructions, draft 1
  2.  
  3. The text processing is in two main parts.
  4.  
  5.     1:  run the handler hEpisodeProcess, this handler will bring up a system
  6. file browser.  Select the first file you want to convert to a Director cast.
  7. To process more than one cast member at a time pass in the number of
  8. sequential files you want to process.
  9. For example if you want to process 3 text files, you would type :
  10. "hEpisodeProcess 3" and you would select the first file of the bunch in the
  11. file browser.
  12. There is another parameter you can pass to hEpisodeProcess, but the next set
  13. of scripts won't recognize it, so don't bother using it unless you want to
  14. rename all the casts you create.
  15.  
  16.     2: Move all the created casts that should look like 102.cst to the
  17. Scripts folder.  Now you can run the handler hIndexIndicies.  This handler
  18. calls hIndexScripts which processes individual scripts and creates an index
  19. per script cast.  Once it has done the local index for all the specified it
  20. will continue on to create a master index, temporarily placing this master
  21. index in the Internal cast.
  22. To properly call hIndexIndicies you need to tell it the first and last
  23. script number to process and the prefix of the index to look for.  Currently
  24. this prefix is hardwired to "esi_" in the hIndexScripts script.
  25. For example:  hIndexIndicies(102,156, "esi_")
  26.  
  27. Asides, caveats, addendums, and stuff...
  28. If (or when) something goes slightly amiss and you want to re-run the
  29. indexing there are a few things to comment and uncomment depending on what
  30. you need to do.
  31.  
  32. To re-index the individual scripts just call hIndexScripts directly:
  33. hIndexScripts(102,102)  very simple no funny stuff.
  34.  
  35. If you have already built the indexes, but need to rebuild the master index,
  36. you'll need to comment out the call to hIndexScripts in hIndexIndicies, it
  37. is basically the first call in hIndexIndicies.
  38.  
  39. In case you've already built a lot of the master index and you have a
  40. problem with a script or index and don't want to wait as the master index is
  41. rebuilt, then you'll need to change how the master index is written.  By
  42. default the whole index is kept in memory and saved out incrementally.  If
  43. however you want to incorporate the index entries that have already been
  44. written out then you'll need to comment out the line in hMIWriteIt that
  45. reads "put reallyText into member thisName" and uncomment the big block of
  46. red text.
  47.  
  48.  
  49.