Log of /branches/gage_dev/pg/macros/PG.pl
Parent Directory
Revision
6248 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 14 01:17:21 2010 UTC (3 years ago) by
gage
Original Path:
trunk/pg/macros/PG.pl
File length: 30629 byte(s)
Diff to
previous 6058
,
to
selected 1365
major update which adds objective methods to the basic code of PG.
HEAD should be considered more beta than usual for a few days until minor glitches
are shaken out.
new modules needed:
PGcore PGalias PGresource PGloadfiles PGanswergroup PGresponsegroup Tie::IxHash
Revision
5663 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu May 8 00:37:31 2008 UTC (5 years ago) by
sh002i
Original Path:
trunk/pg/macros/PG.pl
File length: 27588 byte(s)
Diff to
previous 5658
,
to
selected 1365
add "my" and "our" specifiers to ^variable definitions. (This breaks
compatibility with the current version of ww-symbol-map, but it is the
format that the upcoming version will use. I hope to commit that new
version soon but testing is taking longer than expected.)
Revision
3566 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 25 00:35:18 2005 UTC (7 years, 8 months ago) by
dpvc
Original Path:
trunk/pg/macros/PG.pl
File length: 20346 byte(s)
Diff to
previous 3554
,
to
selected 1365
In order to overcome an MSIE bug that affects jsMath, the call is
changed from jsMath.ProcessBeforeShowing() to jsMath.wwProcess(),
which is added by the jsMath-ww.js file. (This routine uses an onload
handler for MSIE to put off the processing until MSIE can handle it
properly, but allows all others to do it at the usual time.)
Revision
3553 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Aug 23 22:56:50 2005 UTC (7 years, 8 months ago) by
jj
Original Path:
trunk/pg/macros/PG.pl
File length: 20444 byte(s)
Diff to
previous 3539
,
to
selected 1365
This adds wiring to the pg side for special bits of html to be included before/after the body of a problem. You also need to update global.conf (and probably want to update Tasks.pm).
A commented out example in global.conf.dist shows how to use this to produce boxed problems a la the Union College server. In this approach, the added parts are not used for problems rendered in the Library Browser or Problem Set Detail.
This addresses bug 817. This solution may not be suitable for inclusion of needed bits for modes such as asciimath or tth because the those bits of html are probably needed for display in the Library Browser. It is hard to distinguish bits which are always wanted, and those which are only wanted for use by Problem.
Revision
2698 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Aug 28 13:52:33 2004 UTC (8 years, 8 months ago) by
dpvc
Original Path:
trunk/pg/macros/PG.pl
File length: 18164 byte(s)
Diff to
previous 2400
,
to
selected 1365
Add better error reporting in PG translator. In particular, these
changes add two new features:
1) produce a full stack trace when a .pg file dies, and
2) convert (eval nnn) references to filenames, when
possible, in warn and die messages while processing a
.pg file.
There is also a change in the webwork tree that is needed to make this
all work, so be sure to apply updates in both trees.
Revision
1896 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 17 00:45:28 2004 UTC (9 years, 2 months ago) by
gage
Original Path:
trunk/pg/macros/PG.pl
File length: 16827 byte(s)
Diff to
previous 1791
,
to
selected 1365
Changed the naming of arrays from ArRaY[0,0,0] to ArRaY__0:0:0:__
This involved changes in PG.pl and PGmorematrixmacros (ans_array_filter)
Made other cosmetic fixes to code. Added names to many filters to help with
debugging. It seems to work for now.
Revision
1365 -
(
view)
(
download)
(
as text)
(
annotate)
-
[selected]
Modified
Fri Jul 11 20:18:57 2003 UTC (9 years, 10 months ago) by
lr003k
Original Path:
trunk/pg/macros/PG.pl
File length: 15999 byte(s)
Diff to
previous 1304
In order to make ans_array entries "sticky" I've had to change some stuff.
The answer labels for these entries are now put into $main::PG_FLAGS{ANSWER_ENTRY_ORDER} as an array reference in PG.pl.
In processProblem8.pl the labels are caught again in the subroutines logCourseData and encode_submitted_answers. It is important that
they're caught there rather than earlier because then the translator would think that every entry was it's own answer.
Professor Gage says that processProblem8.pl is no longer used in webwork2, and he says he'll fix this there.
Revision
1122 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 11 14:54:27 2003 UTC (9 years, 11 months ago) by
lr003k
Original Path:
trunk/pg/macros/PG.pl
File length: 13744 byte(s)
Diff to
previous 1080
,
to
selected 1365
Added two methods for naming the blanks in ans_array. The names now have the format ArRaY3[1,0,2] (this would be the name of
the 3rd answer (it's taken from main::answer_count which is then incremented so the answer before it is AnSwEr2 and the
answer after it is AnSwEr4) and it would be the second matrix or vector in the answer ( I need to take multiple vectors for
things like basis cmp, so ans_array_extension puts the vectors in different locations) and the 0 and 2 are row and column in
that matrix or vector.
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.