[system] / branches / rel-2-4-patches / webwork-modperl / lib / WeBWorK / NPL.pm Repository:
ViewVC logotype

Log of /branches/rel-2-4-patches/webwork-modperl/lib/WeBWorK/NPL.pm

Parent Directory Parent Directory


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

Revision 5734 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 24 00:44:59 2008 UTC (4 years, 10 months ago) by
File length: 17088 byte(s)
Copied from: trunk/webwork-modperl/lib/WeBWorK/NPL.pm revision 5610
Diff to previous 5610
This commit was manufactured by cvs2svn to create branch 'rel-2-4-patches'.

Revision 5610 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 4 22:56:23 2008 UTC (5 years, 3 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/NPL.pm
File length: 17088 byte(s)
Diff to previous 5564
improve error reporting for list parsing

Revision 5564 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed Oct 17 16:56:16 2007 UTC (5 years, 7 months ago) by sh002i
Original Path: trunk/webwork-modperl/lib/WeBWorK/NPL.pm
File length: 17073 byte(s)
Useful tools for managing NPL-style tags in PG problems.

These tools were developed in the course of managing the Rogawski
problem library for W.H.Freeman:

lib/WeBWorK/NPL.pm - Useful routines for parsing and writing PG tags
format as well as the Textbooks file format. Also contains a routine
gen_find_tags which generates a "wanted" function for File::Find that
finds files that match a certain tags specification. As of now, editing
of tags is somewhat limited -- a facility for appending tags to the end
of the tag block is given, which should be sufficient for adding a new
textbook to existing files.

The tag parsing routine is all new, and should be somewhat more robust
and harder to abuse. One notable improvement is that it can handle
escaped single quotes within values, making it possible to say things
like:
	## DBsection('L\'Hospital\'s Rule')
However, the stricter value parsing makes it reject some broken values
already in the NPL. In the case of KEYWORDS, if a parse error is
encountered it will fall back on the old keyword parsing method. This
could be extended to other values if need be.

bin/pg-find-tags - Prints file names for files that match specifications
given on the command line. Good demo of how to use gen_find_tags. Can be
easily modified to perform other tasks.

bin/pg-append-textbook-tags - Appends tags for a new textbook to the end
of the tag block in an already-tagged file.

bin/pg-pull - Pull files from an existing library into a new library.
Directory and file names for the new library can be generated from the
tags in the problem (and optionally use the names from a Textbooks
file). We use this to pull Rogawski-tagged NPL problems out for separate
distribution. This script has some annoying limitations right now --
read the comments.

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