description 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. Internal Document
  2. =================
  3. Herbert Melenk, Sep 29, 1993
  4. Structure of REDUCE help system
  5. ===============================
  6. A subdirectory $reduce/help contains all material and references
  7. for the help system. Two formats are supported:
  8. H the full help format: these are files which are
  9. generated from the REDUCE reference files;
  10. under UNIX these are kept in GNU info format;
  11. under DOS/Windows these are available in GNU info format
  12. and Windows Help format.
  13. B bare Ascii files for browsing, using system services
  14. like MORE.
  15. A directory file "helpdir.info"in $reduce/help links REDUCE packages
  16. to help data files. This directory has one entry per line in LISP item
  17. syntax, e.g.:
  18. h "REDUCE reference" redref "help/redref.info"
  19. h "Groebner package" groebner "help/groebner.info"
  20. b "Algebraic number package" anum "doc/anum.doc"
  21. b "Source code Optimizer" scope "doc/scope.tex"
  22. item 1: type h or b
  23. item 2: full package name (string)
  24. item 3: package id
  25. item 4: help file: string to be prefixed by "$reduce/" at run time.
  26. For Windows a second directory file "helpdir" is maintained
  27. which defines the pathes to the windows help files correspondingly
  28. (under DOS the .HLP files must coexist with the .INF files).
  29. Asking for help
  30. ===============
  31. Under XR or Windows the HELP button is used.
  32. Under bare DOS or if REDUCE runs in an Xterm a REDUCE command
  33. "help" is supported, with source in $reduce/help/help.red.
  34. help;
  35. or help <package>;
  36. or help <topic>;
  37. or help <topic>,<package>;
  38. If the graphical frontend (Windows, XR) does not organize the
  39. data display directly, the following servers are invoked:
  40. UNIX:
  41. if a help.rc file exists, this is loaded and the command
  42. in the variable help_command is executed by the function
  43. system with file name and (if given) topic appended.
  44. otherwise: we try to execute one of
  45. xinfo (gnu info for X)
  46. info (gnu info for standard terminal)
  47. $reduce/help/help (compiled from help.c in $reduce/help).
  48. DOS
  49. we execute $reduce/help/help.exe (compiled from help.c in $reduce/help).
  50. Under DOS help.exe needs a VGA set and ANSI.SYS services. If
  51. these are not available help.exe should be replaced by help0.exe
  52. which has been compiled without these features.
  53. Generating REDUCE help files from REDUCE reference files
  54. ========================================================
  55. comphelp.red compiling REDUCE help system, part 1:
  56. syntax analysis, make structure, driver
  57. for part 2
  58. helpwin.red write a help file in MS Windows help format.
  59. This file is in RTF form and must be post processed
  60. by the MS help compiler.
  61. helpunx.red write a help file in GNU INFO format.
  62. This file has to be post processed by the
  63. GNU info formatter.
  64. The source information must have REDUCE
  65. reference manual form, which is a LATEX subset;
  66. \include and \input statements are allowed
  67. for combining parts to a larger volume.
  68. mkhelpw <pack> script for running comphelp with helpwin
  69. mkhelpu <pack> script for running comphelp with helpunx
  70. <pack>: name of the package for which a help file should
  71. be generated. The input is expected as
  72. packages/<pack>.tex
  73. if omitted, the REDUCE reference help file is
  74. processed, which is expected as
  75. redref/redref.tex
  76. mkhelpu.sed auxilary file for mkhelpu
  77. mkgnu convert output of mkhelpu to final format
  78. mkhelp.bat compile output of mkhelpw by MS help compiler
  79. (must run under DOS or NT).
  80. mkhelp.dat auxiliary file for mkhelp.
  81. other files in the help system
  82. ==============================
  83. help.c simple interface to help files in GNU format
  84. help.red REDUCE driver for help information in non-
  85. graphic environments.