File:  [LON-CAPA] / doc / homework / Attic / concepts.xml
Revision 1.1: download - view: text, annotated - select for diffs
Tue Jun 20 19:27:56 2000 UTC (24 years ago) by albertel
Branches: MAIN
CVS tags: version_0_4, stable_2002_spring, stable_2002_july, stable_2002_april, stable_2001_fall, STABLE, HEAD
-adding homework documentation

    1: Form elements, create form elements in rendering modes, set ID to
    2: student selected value in submit mode, create editable interface in
    3: editing mode.
    4: 
    5: 
    6: -<radio>
    7: -<list>
    8: -<textline>
    9: -<textarea>
   10: -<check>
   11: -<button>
   12: 
   13: ------------------------
   14: responses graded by other tags:
   15: 
   16: 2 proposals?
   17: 
   18: <caparesponse type=string stroptions=mc value="TFTFT">
   19: 	<check> <showfoil/> </check>
   20: 	<check> <showfoil/> </check>	
   21: 	<check> <showfoil/> </check>	
   22: 	<check> <showfoil/> </check>
   23: 	<check> <showfoil/> </check>
   24: </caparesponse>
   25: 
   26: ---OR---
   27: 
   28: <caparesponse type=string stroptions=mc value="T">
   29: 	<check> <showfoil/> </check>
   30: </caparesponse>
   31: <caparesponse type=string stroptions=mc value="F">
   32: 	<check> <showfoil/> </check>
   33: </caparesponse>
   34: <caparesponse type=string stroptions=mc value="T">
   35: 	<check> <showfoil/> </check>
   36: </caparesponse>
   37: ...
   38: 
   39: 
   40: PROBLEMS: Partially correct and/or sigfig/unit failures, how should
   41: messages be delivierd/decided
   42: 
   43: --------------------------
   44: Randmization:
   45: 
   46: 2proposals:
   47: 
   48: <randomlist ?show=2>
   49: 	<> </>
   50: 	<> </>
   51: 	<> </>
   52: 	<> </>
   53: </randomlist>
   54: 	
   55: -will randomly pick show number of tag groups and display them, parser 
   56: can set an internal option so as to stop randomlist tag from having
   57: any effect
   58: 
   59: -PROB: can restrict layout possibilities, 
   60: 
   61: ---OR---
   62: 
   63: <answergroup>
   64: 	<foil>
   65: 		<caparesponse>
   66: 			<check> pick me </check>
   67: 		</caparesponse>
   68: 	</foil>
   69: 	....
   70: 	<showrandomfoil/>
   71: 	<showrandomfoil/>
   72: 	<showrandomfoil/>
   73: </answergroup>
   74: 
   75: -by default - foil sets an internal list with the results of parsing
   76: the tags it has, and then the <showrandomfoil/> command picks a foil
   77: out and displays, marking as displayed
   78: 
   79: -a specific problem can override this functionality as follows:
   80: <answergroup>
   81: 	<multiplechoice>
   82: 		<multiplechoiceresponse value="false">
   83: 			<foil>
   84: 				<radio> Trucks <br> </radio>
   85: 			</foil>
   86: 		</multiplechoiceresponse>
   87: 		<multiplechoiceresponse value="false">
   88: 			<foil>
   89: 				<radio> Cars <br> </radio>
   90: 			</foil>
   91: 		</multiplechoiceresponse>
   92: 		<multiplechoiceresponse value="false">
   93: 			<foil>
   94: 				<radio> Guy Albertelli <br> </radio>
   95: 			</foil>
   96: 		</multiplechoiceresponse>
   97: 		<multiplechoiceresponse value="false">
   98: 			<foil>
   99: 				<radio> Computers <br> </radio>
  100: 			</foil>
  101: 		</multiplechoiceresponse>
  102: 
  103: 		<multiplechoiceresponse value="true">
  104: 			<foil>
  105: 				<radio> Oranges <br> </radio>
  106: 			</foil>
  107: 		</multiplechoiceresponse>
  108: 		<multiplechoiceresponse value="true">
  109: 			<foil>
  110: 				<radio> Tomatoes <br> </radio>
  111: 			</foil>
  112: 		</multiplechoiceresponse>
  113: 		<showrandomfoil/>
  114: 		<showrandomfoil/>
  115: 		<showrandomfoil/>
  116: 		<showrandomfoil/>
  117: 	</multiplechice>
  118: </answergroup>
  119:    in this example when the multiple choice tag is hit, it put the
  120:    parser into buffer mode, as the parser hits the tags it internally
  121:    counts up the number of true/false responses and the number of
  122:    showrandomfoil, then it reparses it, this time actually parsing the 
  123:    foil sections and actively creating output at the show random foil tags
  124:  
  125: -PROB: more difficult to code/hide
  126: 
  127: ------------------
  128: <outtext>
  129: 
  130: all data is assumed to be html, we will attempt to autoconvert to
  131: whatever the output target is.
  132: 
  133: ------------------
  134: targetted output
  135: In all strings in the perl section and <outtext> blocks you can have
  136: 
  137: <target type="X" dest="Y,Z"> some text </target>
  138: 
  139: where X Y and Z are valid target for homework. Examples are web,tex,?pdf?,ascii
  140: 
  141: type defines what target the data is already formatted in, 
  142: 
  143: dest defines what targets it should be autoconverted for, (input
  144: format is assumed to be a valid output format).
  145: 
  146: If the current target isn't a possible dest, the data will be ignored.
  147: 
  148: Shorthand:
  149: <tex> </tex> == <target type="tex"> </target>
  150: <tex dest="web"> </tex> == <target type="tex" dest="web"> </target>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>