[system] / trunk / pg / macros / PG.pl Repository:
ViewVC logotype

Diff of /trunk/pg/macros/PG.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1895 Revision 1896
299 # rather than with a specific label 299 # rather than with a specific label
300 my $number=shift; 300 my $number=shift;
301 $vecnum = 0; 301 $vecnum = 0;
302 my $row = shift; 302 my $row = shift;
303 my $col = shift; 303 my $col = shift;
304 my $label = "ArRaY"."$number"."["."$vecnum".","."$row".","."$col"."]"; 304# my $label = "ArRaY"."$number"."["."$vecnum".","."$row".","."$col"."]";
305 my $label = "ArRaY"."$number"."__"."$vecnum".":"."$row".":"."$col"."__";
305 push(@PG_UNLABELED_ANSWERS,$label); 306 push(@PG_UNLABELED_ANSWERS,$label);
306 $label; 307 $label;
307} 308}
308 309
309sub NEW_ANS_ARRAY_NAME_EXTENSION { # this keeps track of the answers which are entered implicitly, 310sub NEW_ANS_ARRAY_NAME_EXTENSION { # this keeps track of the answers which are entered implicitly,
312 my $row = shift; 313 my $row = shift;
313 my $col = shift; 314 my $col = shift;
314 if( $row == 0 && $col == 0 ){ 315 if( $row == 0 && $col == 0 ){
315 $vecnum += 1; 316 $vecnum += 1;
316 } 317 }
318 #FIXME change made to conform to HTML 4.01 standards. "Name" attributes can only contain
319 # alphanumeric characters, _ : and .
320 # Also need to make corresponding changes in PGmorematrixmacros. grep for ArRaY.
317 my $label = "ArRaY"."$number"."["."$vecnum".","."$row".","."$col"."]"; 321 #my $label = "ArRaY"."$number"."["."$vecnum".","."$row".","."$col"."]";
322 my $label = "ArRaY"."$number"."__"."$vecnum".":"."$row".":"."$col"."__";
318 eval(q!push(@main::KEPT_EXTRA_ANSWERS, $label)!);#put the labels into the hash to be caught later for recording purposes 323 eval(q!push(@main::KEPT_EXTRA_ANSWERS, $label)!);#put the labels into the hash to be caught later for recording purposes
319 $label; 324 $label;
320} 325}
321 326
322# ENDDOCUMENT must come at the end of every .pg file. 327# ENDDOCUMENT must come at the end of every .pg file.

Legend:
Removed from v.1895  
changed lines
  Added in v.1896

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9