home *** CD-ROM | disk | FTP | other *** search
/ Between Heaven & Hell 2 / BetweenHeavenHell.cdr / garden / tutor.hyp < prev    next >
Text File  |  1988-06-15  |  4KB  |  144 lines

  1.  
  2. /page1
  3. KNOWLEDGEPRO TUTORIAL                                               PAGE 1
  4.  
  5.  
  6.      This example shows how hypertext can be used to present technical
  7.      information in a training environment.
  8.  
  9.        The example used is taken from the #mKnowledgePro#m tutorial.
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.                           PRESS SPACE TO CONTINUE
  18. /end
  19.  
  20. /page2
  21. KNOWLEDGEPRO TUTORIAL                                               PAGE 2
  22. #msay ('This is part of a customer support system.').#m
  23. #mask ('Which system are you using?',system,[Zenith,Corona,Other]).#m
  24. #mdo (?system).#m
  25.  
  26. #mtopic#m Zenith.
  27. say ('We have had problems with screen displays on this system.').
  28. end.
  29.  
  30. topic Corona.
  31. say ('There are #m##mold ROMS##m#m that can cause problems.').
  32. end.
  33.  
  34. topic 'old ROMS'.
  35. #mwindow ().#m
  36. say (' Read Only Memory chips on the system mother board.
  37.  These can be upgraded quite easily.').
  38. close_window ().
  39. end.                    USE F3 TO SELECT A THREAD
  40. /end
  41.  
  42. /page3
  43. KNOWLEDGEPRO TUTORIAL                                              PAGE 3
  44.  
  45.   Once you are familiar with the six basic commands
  46.  
  47.                         say
  48.                         ask
  49.                         do
  50.                         topic
  51.                         ##m
  52.                         window
  53.  
  54.   you can begin knowledge processing. As your experience grows and you need
  55.   more power and control you can learn more of the KnowledgePro commands.
  56.   You can even write your own commands either in KnowledgePro itself or in
  57.   another language.
  58.  
  59.  
  60.  
  61.                              PRESS SPACE TO EXIT
  62. /end
  63.  
  64.  
  65. /say ('This is part of a customer support system.').
  66.  
  67.  The say command is one way to put information on the screen in
  68.  KnowledgePro. For example : say(hello).
  69.  
  70.  If the information to be displayed contains spaces then it is
  71.  enclosed in quotes:  say('hello, my name is John').
  72.  
  73.  Any statement can be explained in more detail using ##m to mark
  74.  hypertext concepts.
  75.  
  76. /end
  77.  
  78. /ask ('Which system are you using?',system,[Zenith,Corona,Other]).
  79.  
  80.  The ask command is one way to obtain information from the user.
  81.  In this example the #mlist#m of three possible answers are presented
  82.  as a menu and the response is put in the #mtopic#m "system".
  83.  
  84.  Any question can be explained in more detail using ##m to mark
  85.  hypertext concepts.
  86.  
  87. /end
  88.  
  89. /#mold ROMS#m
  90.  
  91.  This is one way that hypertext can be used in KnowledgePro.
  92.  When the user selects a hypertext node a #mtopic#m with the same
  93.  name is invoked as shown here. The topic can contain any further
  94.  hypertext or any KnowledgePro command including calls to external
  95.  programs.
  96. /end
  97.  
  98. /list
  99.  
  100.  KnowledgePro deals with lists. In this case a list of possible
  101.  responses to the question.
  102.  
  103.  Items in a list are always enclosed in square brackets and
  104.  separated by commas.
  105.  
  106.  Almost all KnowledgePro commands work with lists.
  107.  Any item in a list can, itself, be a list.
  108. /end
  109.  
  110. /topic
  111.  
  112.  The topic is the central structural unit in the KnowledgePro
  113.  development environment. It can contain rules, commands or
  114.  hypertext. Topics can also be written in other languages.
  115.  
  116.  A topic always ends with an "end." statement
  117. /end
  118.  
  119. /do (?system).
  120.  
  121.  The do command causes a #mtopic#m, or a list of topics, to be
  122.  invoked. Topics are also invoked automatically by the system
  123.  if their value is needed elsewhere in the knowledge base.
  124. /end
  125.  
  126. /window ().
  127.  
  128.  The window command, like most KnowledgePro commands, has many
  129.  defaults which you can use until you want to control the
  130.  details of such things as size, colors and position.
  131.  
  132.  Overlapping windows can be opened to let you display more
  133.  information about a particular subject, and then peeled away to
  134.  return to the main thread when appropriate.
  135.  
  136. /end
  137.  
  138. /KnowledgePro
  139.  
  140.  TextPro is written in the KnowledgePro language.
  141.  But it only skims the surface of what we can do with
  142.  hypertext in the full KnowledgePro environment.
  143. /end
  144.