home *** CD-ROM | disk | FTP | other *** search
/ Writer's Workshop / EOWWW1_WIN.iso / pc / workshop.z / temp.tmp < prev    next >
Text File  |  1995-12-29  |  3KB  |  135 lines

  1. #Master Doc
  2. #    save as rtf
  3. #    if MAC then
  4. #      begin
  5. #        E-help "Convert from Winhelp" (makes .md and multidoc files)
  6. #        run HelpScripts 1-5 below on the .md files (to fix underlining, etc)
  7. #        Run HelpScript 6 on Multidoc from HelpScripts file
  8. #        E-help "compiler" -- make help file
  9. #        Add special resources in Resedit
  10. #      end
  11. #    Otherwise (if windows)
  12. #      begin
  13. #        run HelpScripts 10+ on a copy of the RTF file (dashes, bullets)
  14. #        put new rtf file in Windows Compiler area
  15. #        Make sure Doc.HPJ is valid
  16. #        compile using HC.EXE
  17. #      end
  18. #    Test
  19. #    Certify
  20.  
  21. #############################################################
  22. ####     e-help  scripts -- run on converted .md files    ###
  23. ####     run one script at a time, too.                   ###
  24. #############################################################
  25.  
  26. # 0.  these commands fix the underline problems with :
  27. find •
  28. # replace /"  \ul;"/ " \ul;" -c ∞ 
  29. find •
  30. # replace /"\ul-;"/ "\ul-; "  -c ∞ 
  31.  
  32.  
  33. ### New Script, aimed at catching the \ul; situation ONLY when it needs it
  34. ### a and b together are pretty solid
  35. # 1. 
  36. # 1.a
  37. find •
  38. replace /"  \ul;"/ " \ul;" -c ∞ 
  39. # 1.b
  40. find •
  41. replace (/"\ul-;"[¬.,;?!:∂n∂)∂]\]/Δ¡2:/?/) "; " -c ∞ 
  42. # 1.c
  43. # find •
  44. # replace (/"\ul-;\"[∂[∂(]/Δ¡2:/?/) " \" -c ∞ 
  45.  
  46.  
  47. # 2.  and these place the no-scroll zone in the right place
  48. find •
  49. # loop   # loop to put this color in every topic (for context-sens. entry)
  50. find Δ/@/
  51. find Δ!1
  52. replace § '\topicfunc SetNoScrollColor(MAIN_WINDOW,51000,58650,58650);'∂n
  53. # end
  54.  
  55.  
  56.  
  57. # 3.  this fixes the space after italics problem :
  58. find •
  59. loop
  60. find  /pushstyle;\i;/
  61. find /popstyle/Δ!1
  62. replace § " " 
  63. end
  64.  
  65. # 5.if there are pictures defined in the file, do the following to the .md file
  66. find •
  67. loop
  68. find  /pictl/
  69. replace § "\pictl" 
  70. end 
  71.  
  72.  
  73.  
  74. ####################################################
  75. ####     e-help  scripts -- run on converted     ###
  76. ####          MultiDoc file only                 ###
  77. ####################################################
  78.  
  79. # 6.  Fixes Topic 17 weirdness
  80.  
  81. find •
  82. find Δ/∂t17∂n/!1
  83. replace § 9
  84.  
  85.  
  86. # 7. if we want another color link (blue, here), put this just before the 
  87.  
  88. find •
  89. find Δ/$M hyperlink/
  90. find /"\c "[0123456789]/Δ¡1:/;/Δ¡1
  91. replace § "4"   # blue
  92.  
  93. find •
  94. find Δ/$M notelink/
  95. find /"\c "[0123456789]/Δ¡1:/;/Δ¡1
  96. replace § "4"   # blue
  97.  
  98.  
  99.  
  100. # The colors 0-7 are predefined by the EHelp Compiler to be 
  101. # Black(0), Red(1), Green(2), Yellow(3), Blue(4), Magenta(5), Cyan(6), and White(7).
  102. #   Other pre-defined hot-links are as follows, and can be substituted in the
  103. #   formula above
  104. # $M notelink
  105. # $M starjump
  106. # $M starnote
  107.  
  108.  
  109. #############################################################
  110. ####     RTF scripts -- to change Mac to Windows sources  ###
  111. #############################################################
  112.  
  113. # 10.  Replace bullets with a bitmap of a bullet :
  114. find •
  115. replace /"∂\bullet "/ "∂\∂{bmc∂ bullet∂.bmp∂\∂}" -c ∞
  116. # replace /"∂{∂\bullet ∂}"/ "∂\∂{bmc∂ bullet∂.bmp∂\∂}" -c ∞
  117.  
  118.  
  119. # 11.  Replace em-dashes properly :
  120. find •
  121. replace /"\emdash "/ "--" -c ∞
  122. find •
  123. replace /"\endash "/ "--" -c ∞
  124.  
  125.  
  126. # {\bullet }   this is the way word leaves it normally with •
  127. # \{bmc bullet.bmp\}   this is how it's converted in rtf
  128.     
  129. #  12.  replace pict files with bmp files -- type in the right name below
  130. find •
  131.  
  132.  
  133. juarez:utilities:ehelp:authoring:lester:LesterScript
  134.  
  135.