PressFileUtilities.mesa
Michael Plass, August 31, 1983 12:59 pm
DIRECTORY Rope, IO;
PressFileUtilities: CEDAR DEFINITIONS ~ BEGIN
PageRange: TYPE ~ RECORD [startPage, nPages: INT];
SpecError: ERROR [offset: INT];
ParsePageSpec: PROC [pageSpecRope: Rope.ROPE] RETURNS [pageSpec: LIST OF PageRange, charsParsed: INT];
Takes a list of page numbers or mesa-style ranges, delimited by spaces or commas.
ExtractPages: PROC [inputFile, outputFile: Rope.ROPE, pageSpec: LIST OF PageRange] RETURNS [success: BOOLEAN];
BreakIntoSinglePages: PROC [inputFile: Rope.ROPE, message: IO.STREAMNIL];
SendSinglePages: PROC [server: Rope.ROPE, inputFile: Rope.ROPE, pageSpec: LIST OF PageRange, message: IO.STREAMNIL];
END.