home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / LANGUAGE / ADA / LOVELACE / template < prev    next >
Text File  |  1997-04-08  |  12KB  |  306 lines

  1. ===== template.comments =====
  2. This file, template, is a library file used by
  3. the program "mklesson" to generate lessons.
  4. This file Copyright (C) 1994 David A. Wheeler
  5. RCS ID:  $Id: template,v 1.13 1995/04/28 16:54:25 wheeler Exp $
  6.  
  7. Each template "chunk" is preceded by a header line;
  8. a header line has 5 = signs, space, chunk name, and 5 equal signs.
  9. Capitalized text enclosed in square brackets is replaced with text.
  10. For example, [AUTHOR_NAME] is replaced with the name of the lesson author.
  11.  
  12. This library is free software; you can redistribute it and/or
  13. modify it under the terms of the GNU Library General Public
  14. License as published by the Free Software Foundation; either
  15. version 2 of the License, or (at your option) any later version.
  16.  
  17. This library is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  20. Library General Public License for more details.
  21.  
  22. You should have received a copy of the GNU Library General Public
  23. License along with this library; if not, write to the Free
  24. Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25.  
  26. The variable [THE_PREVIOUS_SECTION_OR_HOME] is substituted with
  27. either the text "the previous section" or "the tutorial home page".
  28. The exact text used is stored in the chunks named
  29. "the_previous_section_text_is_not_home" and
  30. "the_previous_section_text_is_home"; the last
  31. carriage return is not substituted in.
  32.  
  33. The chunks "compile.head" and "compile.tail" are used when a <TEXT FILE=>
  34. command is used with a "TEMPLATE=compile" value. The "compile.head"
  35. contents go _before_ the file, and the compile.tail go after it.
  36. The special variables used in these chunks are:
  37. [INCLUDED_FILENAME]
  38. [LINES_IN_INCLUDED_FILE]
  39. [LINES_PLUS_ONE_IN_INCLUDED_FILE]
  40.  
  41.  
  42.  
  43. ===== section.head =====
  44. <HTML><HEAD>
  45. <TITLE>[TUTOR_NAME] Tutorial Section [FULL_SECTION_NUMBER] - [SECTION_TITLE]</TITLE>
  46. <LINK REV="made" HREF="mailto:[AUTHOR_EMAIL]">
  47. <!-- Below are RSACi and SafeSurf ratings for this material. -->
  48. <META http-equiv="PICS-Label" content='(PICS-1.0 "http://www.rsac.org/ratingsv01.html" l gen true comment "RSACi North America Server" by "dwheeler@ida.org" for "http://www.adahome.com/Tutorials/Lovelace" on "1996.04.04T08:15-0500" exp "1997.07.01T08:15-0500" r (n 0 s 0 v 0 l 0))'>
  49. <META http-equiv="PICS-Label" content='(PICS-1.0 "http://www.classify.org/safesurf/" l gen true for "http://www.adahome.com/Tutorials/Lovelace/" by "dwheeler@ida.org" r (SS~~000 1 SS~~100 1))'>
  50. </HEAD>
  51. <BODY BGCOLOR="#FFFFFF">
  52. <H1><FONT COLOR="#996600">Section [FULL_SECTION_NUMBER] - [SECTION_TITLE]</FONT></H1>
  53. ===== section.question.head =====
  54. <HR><P>
  55. <IMG SRC="q.gif" ALT="" HEIGHT=34 WIDTH=23>
  56. <A NAME="quiz"><FONT SIZE=+3 COLOR="#339900">Quiz:</FONT></A>
  57. <P>
  58. ===== section.question.tail =====
  59. </OL>
  60. <HR>
  61. You may also:
  62. <P>
  63. <TABLE BORDER=0><TR>
  64. <TH><A HREF="[PREVIOUS_SECTION_URL]">
  65. <IMG SRC="barrowl.gif" ALT="PREVIOUS " HEIGHT=31 WIDTH=31>
  66. Go back to [THE_PREVIOUS_SECTION_OR_HOME]</A>
  67. <P></TH>
  68.  
  69. <TH><A HREF="[CONFIRM_SKIP_SECTION_URL]">
  70. <IMG SRC="barrowr.gif" ALT="NEXT     " HEIGHT=31 WIDTH=31>
  71. Skip to the next section</A>
  72. <P></TH>
  73.  
  74. <TH><A HREF="[LESSON_OUTLINE_URL]">
  75. <IMG SRC="barrowu.gif" ALT="OUTLINE  " HEIGHT=31 WIDTH=31>
  76. Go up to lesson [LESSON_NUMBER] outline</A>
  77. <P></TH>
  78. </TR></TABLE>
  79. <P>
  80.  
  81. ===== section.no_question =====
  82. <!-- No quiz question -->
  83. <P>
  84. <HR>
  85. <P>
  86. There is no quiz question for this section.
  87. <P>
  88. <IMG SRC="pright.gif" ALT="" HEIGHT=14 WIDTH=33>
  89. <A HREF="[NEXT_SECTION_URL]">
  90. <FONT SIZE=+1><STRONG>You may go to the next section.</STRONG></FONT></A>
  91. <P>
  92. <HR>
  93. You may also:
  94. <P>
  95.  
  96. <TABLE BORDER=0><TR>
  97. <TH><A HREF="[PREVIOUS_SECTION_URL]">
  98. <IMG SRC="barrowl.gif" ALT="PREVIOUS " HEIGHT=31 WIDTH=31>
  99. Go back to [THE_PREVIOUS_SECTION_OR_HOME]</A>
  100. <P></TH>
  101.  
  102. <TH><A HREF="[LESSON_OUTLINE_URL]">
  103. <IMG SRC="barrowr.gif" ALT="OUTLINE  " HEIGHT=31 WIDTH=31>
  104. Go up to the outline of lesson [LESSON_NUMBER]</A>
  105. <P></TH>
  106. </TR></TABLE>
  107. <P>
  108.  
  109. ===== section.tail =====
  110. <P>
  111. <FONT SIZE=2>
  112. <ADDRESS>[AUTHOR_ADDRESS]</ADDRESS>
  113. <P>
  114. The master copy of this file is at
  115. "<A HREF="[TUTOR_MASTER_COPY_URL]/[SECTION_FILENAME]">[TUTOR_MASTER_COPY_URL]/[SECTION_FILENAME]</A>".
  116. </FONT>
  117. <!-- This text is part of the [TUTOR_NAME] tutorial program. -->
  118. <!-- For the contents of lesson 18, the following applies: -->
  119. <!--  Copyright (C) 1996 Ada Resource Association -->
  120. <!--  Copyright granted to the ARA under the condition that this text -->
  121. <!--  will be redistributed to the public domain, without restriction; -->
  122. <!--  you may use this information in any way you with, commercially or not, -->
  123. <!--  without restriction. -->
  124. <!-- = -->
  125. <!-- For all other files in [TUTOR_NAME] tutorial, the following applies: -->
  126. <!--  Copyright (C) [TODAYS_YEAR] [AUTHOR_NAME] -->
  127. <!--  This program is free software; you can redistribute it and/or modify -->
  128. <!--  it under the terms of the GNU General Public License as published by -->
  129. <!--  the Free Software Foundation; either version 2 of the License, or -->
  130. <!--  (at your option) any later version. -->
  131. <!--  This freedom only applies to the electronic version; the author -->
  132. <!--  and/or publisher retain all rights to non-electronic versions. -->
  133. <!-- = -->
  134. <!-- This program is distributed in the hope that it will be useful, -->
  135. <!-- but WITHOUT ANY WARRANTY; without even the implied warranty of -->
  136. <!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the -->
  137. <!-- GNU General Public License for more details. -->
  138. <!-- = -->
  139. <!-- You should have received a copy of the GNU General Public License -->
  140. <!-- along with this program; if not, write to the Free Software -->
  141. <!-- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -->
  142. </BODY>
  143. </HTML>
  144. ===== response.head =====
  145. <HTML><HEAD>
  146. <TITLE>[TUTOR_NAME] Tutorial Section [FULL_SECTION_NUMBER] - Answer [ANSWER_NUMBER]</TITLE>
  147. <LINK REV="made" HREF="mailto:[AUTHOR_EMAIL]">
  148. <!-- Below are RSACi and SafeSurf ratings for this material. -->
  149. <META http-equiv="PICS-Label" content='(PICS-1.0 "http://www.rsac.org/ratingsv01.html" l gen true comment "RSACi North America Server" by "dwheeler@ida.org" for "http://www.adahome.com/Tutorials/Lovelace" on "1996.04.04T08:15-0500" exp "1997.07.01T08:15-0500" r (n 0 s 0 v 0 l 0))'>
  150. <META http-equiv="PICS-Label" content='(PICS-1.0 "http://www.classify.org/safesurf/" l gen true for "http://www.adahome.com/Tutorials/Lovelace/" by "dwheeler@ida.org" r (SS~~000 1 SS~~100 1))'>
  151. </HEAD>
  152. <BODY BGCOLOR="#FFFFFF">
  153. ===== response.correct.head =====
  154. <IMG SRC="smile.gif" ALT="" HEIGHT=32 WIDTH=32>
  155. ===== response.incorrect.head =====
  156. <IMG SRC="x.gif" ALT="" HEIGHT=32 WIDTH=32>
  157. ===== response.correct.default =====
  158. Right.
  159. ===== response.incorrect.default =====
  160. No, sorry.
  161. ===== response.correct.tail =====
  162. <P>
  163. <IMG SRC="pright.gif" ALT="" HEIGHT=14 WIDTH=33>
  164. <A HREF="[NEXT_SECTION_URL]"><FONT SIZE=+1><STRONG>You may go to the next section.</STRONG></FONT></A>
  165. <P>
  166. You may also:
  167. <P>
  168.  
  169. <TABLE BORDER=0><TR>
  170. <TH><A HREF="[SECTION_QUESTION_URL]">
  171. <IMG SRC="barrowl.gif" ALT="PREVIOUS " HEIGHT=31 WIDTH=31>
  172. Go back to the question</A>
  173. <P></TH>
  174.  
  175. <TH><A HREF="[LESSON_OUTLINE_URL]">
  176. <IMG SRC="barrowu.gif" ALT="OUTLINE  " HEIGHT=31 WIDTH=31>
  177. Go up to the outline of lesson [LESSON_NUMBER]</A>
  178. <P></TH>
  179. </TR></TABLE>
  180. <P>
  181.  
  182. ===== response.incorrect.tail =====
  183. <P>
  184. <IMG SRC="pright.gif" ALT="" HEIGHT=14 WIDTH=33>
  185. <A HREF="[SECTION_QUESTION_URL]"><FONT SIZE=+1><STRONG>You
  186. may go back to the question</STRONG></FONT></A>
  187. <P>
  188. You may also:
  189. <P>
  190.  
  191. <TABLE BORDER=0><TR>
  192. <TH><A HREF="[NEXT_SECTION_URL]">
  193. <IMG SRC="barrowr.gif" ALT="NEXT     " HEIGHT=31 WIDTH=31>
  194. Skip to the next section.</A>
  195. <P></TH>
  196.  
  197. <TH><A HREF="[LESSON_OUTLINE_URL]">
  198. <IMG SRC="barrowu.gif" ALT="OUTLINE  " HEIGHT=31 WIDTH=31>
  199. Go up to the outline of lesson [LESSON_NUMBER]</A>
  200. <P></TH>
  201. </TR></TABLE>
  202. <P>
  203.  
  204. ===== response.tail =====
  205. <P>
  206. <FONT SIZE=2>
  207. <ADDRESS>[AUTHOR_ADDRESS]</ADDRESS>
  208. <P>
  209. The master copy of this file is at
  210. "<A HREF="[TUTOR_MASTER_COPY_URL]/[RESPONSE_FILENAME]">[TUTOR_MASTER_COPY_URL]/[RESPONSE_FILENAME]</A>".
  211. </FONT>
  212. <!-- This text is part of the [TUTOR_NAME] tutorial program. -->
  213. <!-- For the contents of lesson 1