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

Log of /trunk/pg/macros/PGanswermacros.pl

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 3615 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 13 14:07:32 2005 UTC (14 years, 2 months ago) by dpvc
File length: 175429 byte(s)
Diff to previous 3572
The ORIGINAL_NUM_CMP was calling str_cmp as a code reference rather
than as the more modern AnswerEvaluator object.  This causes error
messages when string answers were used.  It now uses the evaluate()
method of the AnswerEvaluator.

Revision 3572 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 25 18:21:21 2005 UTC (14 years, 3 months ago) by jj
File length: 175420 byte(s)
Diff to previous 3393
This makes the pg/lib/Parser/Legacy copy of PGanswermacros.pl the
official copy here.  This still leaves the original answer evaluators as
the default, but simplifies the update process, and we don't have to
maintain two copies of the original functions.

Revision 3393 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 20 18:30:59 2005 UTC (14 years, 4 months ago) by gage
File length: 165229 byte(s)
Diff to previous 3346
Added a modification of the grades that shows where the
state_summary_msg can be added.  This message is
printed at the bottom of each problem page.  The current default
is a blank message, which means that the default message
defined in Problem.pm is printed.

There is currently no way to turn the message off entirely.  Perhaps
on the next revision.

Revision 3346 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 4 19:52:38 2005 UTC (14 years, 5 months ago) by gage
File length: 164882 byte(s)
Diff to previous 3338
Rewrote checkbox_cmp as an AnswerEvaluator

Revision 3338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 4 15:21:52 2005 UTC (14 years, 5 months ago) by gage
File length: 162134 byte(s)
Diff to previous 3325
Restored str_filters -- removing it broke some of the other answer evaluators.

str_filters takes a string, filters it and then returns the filtered string.

The actual filters have been changed to work with answer hashes rather than with
strings, so str_filters warps the string in an answer hash before sending it through
the filters.

sorry for the breakage.

-- Mike

Revision 3325 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 29 17:10:11 2005 UTC (14 years, 5 months ago) by gage
File length: 162075 byte(s)
Diff to previous 3324
Added comments.

Revision 3324 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 29 16:19:42 2005 UTC (14 years, 5 months ago) by gage
File length: 162042 byte(s)
Diff to previous 3323
Fixed bug in radio_cmp closing bug #258.  We now check to make
sure that only a single string is being passed and not an array.
(The latter occurs if checkboxes are used instead of radio buttons.)
The presence of two checked checkboxes triggers a warning.

Revision 3323 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 29 02:48:55 2005 UTC (14 years, 5 months ago) by gage
File length: 161746 byte(s)
Diff to previous 3047
MASSIVE changes to str_cmp and related subroutines (mostly in STR_CMP).

This answer evaluator now produces an AnswerEvaluator type rather than
a subroutine.

Revision 3047 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Dec 18 21:52:58 2004 UTC (14 years, 11 months ago) by gage
File length: 156972 byte(s)
Diff to previous 3039
Changed comment to This answer is the same as the one you just submitted
or previewed.  This addreses bug #557

Revision 3039 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 17 17:11:46 2004 UTC (14 years, 11 months ago) by gage
File length: 156959 byte(s)
Diff to previous 2781
Added a check to handle  the  case when the $errors flag was not defined.

Revision 2781 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 14 21:36:45 2004 UTC (15 years, 2 months ago) by apizer
File length: 156930 byte(s)
Diff to previous 2277
Fixed bug with useBaseTenLog

Arnie

Revision 2277 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 8 02:06:32 2004 UTC (15 years, 6 months ago) by sh002i
File length: 156931 byte(s)
Diff to previous 2243
Reformatted the FUNCTION_CMP subroutine to make it more readable. Also,
one functional change:

< (defined ($inputs_ref->{$prev_ans_label} and $inputs_ref->{$prev_ans_label} =~/\S/) )
> (defined $inputs_ref->{$prev_ans_label} and $inputs_ref->{$prev_ans_label} =~/\S/)

I think the latter was what was intended.

Revision 2243 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 2 20:18:48 2004 UTC (15 years, 6 months ago) by jj
File length: 158994 byte(s)
Diff to previous 2151
Fixed bug which caused some debug output to always appear.

Revision 2151 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 22 01:23:17 2004 UTC (15 years, 6 months ago) by gage
File length: 158993 byte(s)
Diff to previous 2150
Roll back the previous changes.  They were added to HEAD instead of to the experimental branch.

Revision 2150 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 22 01:19:11 2004 UTC (15 years, 6 months ago) by gage
File length: 159377 byte(s)
Diff to previous 2061
Experimental refactorization of answer evaluators will take place on this branch.

Revision 2061 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 9 17:45:41 2004 UTC (15 years, 7 months ago) by gage
File length: 158993 byte(s)
Diff to previous 2056
Modifications to PGbasicmacros and PGanswermacros which check whether a function answer
is the same as the function answer submitted previously.  Gives warning message
if the same incorrect answers is submitted twice in a row.  The functions must
both compile in order to recognize that they are the same answer.  Two syntactically
incorrect entries will not be recognized as equivalent, even if they are in some sense.

Revision 2056 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 8 22:51:38 2004 UTC (15 years, 7 months ago) by gage
File length: 154137 byte(s)
Diff to previous 1932
Updating answer evaluators in PGanswermacros.pl

Beginning to include code that will allow us to
check whether the current answer is the same
as the one submitted previously.

Revision 1932 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 3 15:44:55 2004 UTC (15 years, 8 months ago) by jj
File length: 151745 byte(s)
Diff to previous 1812
Added support for useBaseTenLog for ww2.

Revision 1812 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 16 20:34:01 2004 UTC (15 years, 9 months ago) by gage
File length: 151622 byte(s)
Diff to previous 1797
This is a new attempt to fix the problem that there was no
preview string if the units were incorrect.  The previous fix
caused difficulties if strings were entered for numerical answers.

The new code has been added to the subroutine fix_answers_for_display
which already performed answer cleanup of various kinds.

Revision 1797 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 12 20:26:26 2004 UTC (15 years, 9 months ago) by toenail
File length: 151176 byte(s)
Diff to previous 1785
Reordered pre-filters in NUM_CMP to allow for latex previews of answers with no units

Revision 1785 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 9 17:18:39 2004 UTC (15 years, 9 months ago) by gage
File length: 150922 byte(s)
Diff to previous 1780
Modifications to checkbox_cmp to include preview_latex_string.

this completes the squashing of bug #400

Revision 1780 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 6 02:55:55 2004 UTC (15 years, 10 months ago) by gage
File length: 150884 byte(s)
Diff to previous 1690
Corrected format of one line.

--Mike

Revision 1690 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 28 19:46:57 2003 UTC (15 years, 11 months ago) by gage
File length: 150880 byte(s)
Diff to previous 1620
Zeroed the variable storing the responses to questionnaires.  Should
fix the error on questionnaires revealed by the persistance of mod_perl
modules.

Changed warning message in dangerousMacros.pl to more accurately describe
what is wrong when the gif2eps script cannot be executed.  (Based on actual
experience running a course on webwork.math.rochester.edu -- I couldn't remember
what my own warning message implied.)
--Mike

Revision 1620 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 7 14:55:12 2003 UTC (16 years, 1 month ago) by apizer
File length: 150802 byte(s)
Diff to previous 1506
fixed a bug in line 2469 replacing \npsvnNumber by \n$psvnNumber

Arnie

Revision 1506 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 19 01:30:13 2003 UTC (16 years, 2 months ago) by gage
File length: 150801 byte(s)
Diff to previous 1463
Fixed check_string filter so that it places a
value in preivew_text_string and in preview_latex_string
in the answer hash.  For example entering DNE did not
show up in answer preview, which bothered some students.

--Mike

Revision 1463 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 15 16:51:09 2003 UTC (16 years, 3 months ago) by gage
File length: 150707 byte(s)
Diff to previous 1456
Changes to mail that make it work properly with ALLOW_MAIL_TO
--Mike

Revision 1456 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 14 16:10:01 2003 UTC (16 years, 3 months ago) by gage
File length: 150659 byte(s)
Diff to previous 1455
At least a temporary fix for mail_answers_to2

These evaluators are run in the grader and the
environment variables have disappeared??  I can't find
them at any rate.

this is at best a temporary fix until we get the global
variable situation under control when using cached code.
--Mike

Revision 1455 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 14 13:27:54 2003 UTC (16 years, 3 months ago) by gage
File length: 150549 byte(s)
Diff to previous 1452
Made changes to anstext and a few
other answer evaluators so that they
evaluated "main::" correctly.

Still need to fix install problem
grader
--Mike

Revision 1452 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 5 16:37:10 2003 UTC (16 years, 4 months ago) by jj
File length: 150515 byte(s)
Diff to previous 1451
Revised documentation for test_points.

Revision 1451 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 5 16:34:38 2003 UTC (16 years, 4 months ago) by jj
File length: 150361 byte(s)
Diff to previous 1450
Added some documentation for test_points.

Revision 1450 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 5 16:24:48 2003 UTC (16 years, 4 months ago) by jj
File length: 149340 byte(s)
Diff to previous 1267
Added option of test_points to fun_cmp.

Revision 1267 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 24 15:25:58 2003 UTC (16 years, 5 months ago) by gage
File length: 148152 byte(s)
Diff to previous 1250
Changes that allow these files to work with caching version
of Webwork2.0 -- optimized for speed
--Mike

Revision 1250 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 23 15:43:11 2003 UTC (16 years, 5 months ago) by gage
File length: 147658 byte(s)
Diff to previous 1080
Made changes required to allow caching of these files.
My tests indicate that these changes are compatible with webwork1.8
One possible problem might be the mail-to answer macros
which access the environement variable directly
I think I have this properly patched, but it has not been
tested yet.
--Mike

Revision 1080 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 9 17:49:36 2003 UTC (16 years, 6 months ago) by apizer
File length: 146962 byte(s)
Diff to previous 1071
remove unneccsary shebang lines

Arnie

Revision 1071 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 9 02:26:17 2003 UTC (16 years, 6 months ago) by gage
File length: 147728 byte(s)
Diff to previous 1050
Bringing these files in sync with the latest versions in the
courseScripts CVS
--Mike

Revision 1050 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Jun 6 21:39:42 2003 UTC (16 years, 6 months ago) by sh002i
File length: 146178 byte(s)
moved PG modules and macro files from webwork-modperl to pg
-sam

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9