[LON-CAPA-dev] RFC: XML for <imageresponse> rewrite

Guy Albertelli II lon-capa-dev@mail.lon-capa.org
Wed, 12 Oct 2005 12:09:01 -0400 (EDT)


Hi Gerd,

Okay to review I orignially prooesed 3 types of line like thingees

1)
  <vector type="locationless">
     <angle unit="degrees" tolerance="3%">35</angle>
     <length unit="pixel" tolerance="15">100</length>
  </vector>

and
2)
 <vector type="location">
    <from><circle>(100,100,15)</circle></from>
    <to><circle>(200,200,15)</circle>
      <circle>(0,0,15)</circle></to>
  </vector>
and
3)
  <line>
    <from><circle>(100,100,15)</circle></from>
    <to><circle>(200,200,15)</circle></to>
  </line>

Your complaints (if I can summarize) are:

A) You want instructor to be able to change to tolerances in #1
B) You would prefer that #1 be just <vector> and #2 to be named
   something else
C) You would like a cartesian style <vector> too

(I think those are the complaints at least.)

How about:

- to address A) we will need to assign id numbers to <vector> and
  <angle> and <length> as well as do:

  <vector>
     <angle unit="degrees">
       35
       <responseparam name="tolerance" type="tolerance" default="3%" />
     </angle>
     <length unit="pixel">
       100
       <responseparam name="tolerance" type="tolerance" default="3%" />
     </length>
  </vector>

- to address B), I'll add <arrow> and it takes <from> and <to> 

- to address C), <vector> gets a 'style' (cartesian, or polar) and

  <vector style="cartesian">
     <xlength unit="pixels">
       35
       <responseparam name="tolerance" type="tolerance" default="3%" />
     </xlength>
     <ylength unit="percentage">
       10
       <responseparam name="tolerance" type="tolerance" default="3%" />
     </ylength>
  </vector>


Did I miss anything?
-- 
guy@albertelli.com   0-7-2-1-27,137