[system] / branches / rel-2-3-dev / pg / lib / Parser / Legacy / NumberWithUnits.pm Repository:
ViewVC logotype

Log of /branches/rel-2-3-dev/pg/lib/Parser/Legacy/NumberWithUnits.pm

Parent Directory Parent Directory


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

Revision 4713 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 8 20:06:14 2006 UTC (6 years, 5 months ago) by sh002i
File length: 4224 byte(s)
Diff to previous 4617
backport (dpvc): Fixed a problem where the TeX version included two
copies of the units (one in TeX mode and one from the string() output).

Revision 4617 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 3 20:23:55 2006 UTC (6 years, 6 months ago) by sh002i
File length: 4113 byte(s)
Diff to previous 4612
backport (dpvc): Fixed problem where a zero with units would me marked
as "not looking like anumber with units".

Revision 4612 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 3 20:15:57 2006 UTC (6 years, 6 months ago) by sh002i
File length: 4079 byte(s)
Diff to previous 4611
backport (dpvc): Make a more sophisticated unit check so that it will
handle things like "3ft / s" (that don't have a space before the units).

Revision 4611 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 3 20:15:32 2006 UTC (6 years, 6 months ago) by sh002i
File length: 3528 byte(s)
Diff to previous 4396
backport (dpvc): Fixed unit checking so that units can include spaces
(like 4 ft / min).  Also fixed a problem where units were not being
reported as part of the student's entered answer.

Revision 4396 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 24 21:07:52 2006 UTC (6 years, 8 months ago) by
File length: 3395 byte(s)
Diff to previous 3370
This commit was manufactured by cvs2svn to create branch 'rel-2-3-dev'.

Revision 3370 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 12 22:29:53 2005 UTC (7 years, 10 months ago) by dpvc
Original Path: trunk/pg/lib/Parser/Legacy/NumberWithUnits.pm
File length: 3395 byte(s)
Diff to previous 3347
A first pass at making parser error messages localizable.  The
Context()->{error}{msg} hash can be used to specify translations of
the standard messages.  For example,

    Context()->{error}{msg}{'Division by zero'} = "Don't divide by zero, dude!";
    Context()->{error}{msg}{'Function '%s' has too many inputs'} =
        "You passed too many arguments to '%s'";

(I didn't translate into another language, here, but you could do
that, too.)

The msg hash could also be used within answer checkers to make certain
answer messages more appropriate for the given type of expected answer.

Revision 3347 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Jul 4 20:12:22 2005 UTC (7 years, 10 months ago) by dpvc
Original Path: trunk/pg/lib/Parser/Legacy/NumberWithUnits.pm
File length: 3393 byte(s)
This is an attempt at making the traditional answer checkers call the
new Parser in place of their original ones.  That is, if you follow
the instructions in the README file, then problems that use
std_num_cmp(), fun_cmp(), etc. will really be using the new Parser
instead of the original PGanswermacros.pl versions.

The old answer checkers are still available, and can be switched back
on a site-wide, course-wide, or problem-by-problem basis.  See the
README for details.

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