[net.lang.pascal] Seeking help with a Word Processor in Pascal.

bt@bnl44.UUCP (William M. Tatun @ Brookhaven National Lab) (05/11/85)

	Is there anyone in net-land 
that could offer some help with a little problem that I have been having.
???????????????????????????????????????

	I have recently allowed my-
self to get involved in writing a word
processor in Pascal.  This task
originated at Stony Brook University, where in 1983, the computer science
students were asked to do such a prob-
lem.
	This program involves the
reading and implementing of several 
commands:
		
	1) indenting a # of spaces
	2) centering lines
	3) wrapping of lines
	4) check to see that only
		one space is left
		between each word
	and other trivial functions
like those.

	The problem arrised when I 
sat down to think out the problem.
I need a suggestion or to on how to 
get started in writing it. For example, I know that \-I'll have to store
the incomming characters in an array
in which I would check for commands
there.

	here is the situation.....
If there is anyone out there that may
have done this particular problem, I
would appreciate some suggestion...

--------------------------------------

You are to develop a software system
which will operate as a document pro-
cessor to satisfy the given functions.
The input to the system should be
intersperses with designated commands.
Anything else on the line with a com-
mand should be ignored.

COMMANDS:

Each command will start with a "."
in the first column of a line of input
and will be followed by two letters
indicating a command.  The command may
be followed by an integer in some cases.
Anything else but the mentioned, should be ignored.

Commands that you should implement:

.lm "integer" -- set l. margin def=1
.rm "integer" -- set r. margin def=80
.ti "integer" -- indent ## spaces
.sp "integer" -- skip ## lines
.ce "integer" -- center the next ## lines def= next line only

-- When printing out text, make sure
that if a word won't fit on a line,
move it down to the next. 
-- Also fill lines up to the maximum.

--------------------------------------

That's it......... Any suggestions?

		William M. Tatun
		
bt@bnl44

-- 
          Sincerely,
          William M. Tatun
          -+-+-+-+-+-+-+-+----------------

UUCP: ...!decvax!philabs!sbcs!bnl!bt

ARPA: bt@bnl

Telephone: 516-475-6255 (VOICE)

MAILING ADDRESS:  197 Schoenfeld Blvd.
                  Patchogue, New York
                         11772