The year is 1976 and a small upstart company has just invented the first (albeit crude) laser postscript printer. They have hired you to write Release 1 of the the postscript printer's device driver. Release 1 is very limited (with only two very limited fonts) since some nay- sayers in the industry believe that postscript printers will never take off.
The device driver reads in a series of commands which describe positions of text characters on the output page. (Graphics will be in release 2.) Each page is a 60 x 60 grid of characters. Each grid position can contain only the following characters: ABCDEFGHIJKLMNOPQRSTUVWXYZ .*
The alphabetic characters above and the blank comprise the character set of the first font (C1). The asterisk ( * ) is the base character from which the enlarged courier font (C5) is created. Each C5 character is defined on a 5 (rows) X 6 (columns) grid which contains either *'s or periods (.). The C5 font characters are as follows.
The year is 1976 and a small upstart company has just invented the first (albeit crude) laser postscript printer. They have hired you to write Release 1 of the the postscript printer's device driver. Release 1 is very limited (with only two very limited fonts) since some nay- sayers in the industry believe that postscript printers will never take off.
The device driver reads in a series of commands which describe positions of text characters on the output page. (Graphics will be in release 2.) Each page is a 60 x 60 grid of characters. Each grid position can contain only the following characters: ABCDEFGHIJKLMNOPQRSTUVWXYZ .*
The alphabetic characters above and the blank comprise the character set of the first font (C1). The asterisk ( * ) is the base character from which the enlarged courier font (C5) is created. Each C5 character is defined on a 5 (rows) X 6 (columns) grid which contains either *'s or periods (.). The C5 font characters are as follows.
.***.. ****.. .****. ****.. *****. *****. .****. *...*. *****.
*...*. *...*. *...*. *...*. *..... *..... *..... *...*. ..*...
*****. ****.. *..... *...*. ***... ***... *..**. *****. ..*...
*...*. *...*. *..... *...*. *..... *..... *...*. *...*. ..*...
*...*. ****.. .****. ****.. *****. *..... .***.. *...*. *****.
A B C D E F G H I
..***. *...*. *..... *...*. *...*. .***.. ****.. .***.. ****..
...*.. *..*.. *..... **.**. **..*. *...*. *...*. *...*. *...*.
...*.. ***... *..... *.*.*. *.*.*. *...*. ****.. *...*. ****..
*..*.. *..*.. *..... *...*. *..**. *...*. *..... *..**. *..*..
.**... *...*. *****. *...*. *...*. .***.. *..... .****. *...*.
J K L M N O P Q R
.****. *****. *...*. *...*. *...*. *...*. *...*. *****. ......
*..... *.*.*. *...*. *...*. *...*. .*.*.. .*.*.. ...*.. ......
.***.. ..*... *...*. .*.*.. *.*.*. ..*... ..*... ..*... ......
....*. ..*... *...*. .*.*.. **.**. .*.*.. ..*... .*.... ......
****.. .***.. .***.. ..*... *...*. *...*. ..*... *****. ......
S T U V W X Y Z blank
Input to your program will consist of a series of commands and their arguments (exactly 1 per line). You are to start with a ``blank" piece of paper and read the input file formatting and flushing paper until end of file.
With each ``.EOP" command, you are to output the 60*60 grid representing the current format of the page. In order to denote the end of page for the judges, you are to follow each outputted page with a blank line, a line of 60 dashes ( `-' ), and another blank line.
.C C5 3 |ACM| .C C1 10 |SOUTH CENTRAL REGION PROBLEM FOUR SAMPLE OUTPUT| .C C5 20 |OVERFLOW CENTERED LARGE FONT| .C C5 30 |CENTERED| .P C1 33 11 |LINE THAT OVERWRITES THROUGH CENTERED| .L C1 40 |SMALL FONT LINE IS LEFT JUSTIFIED ON ROW FORTY| .R C5 50 |RIGHT| .P C5 57 10 |BOTTOM AND RIGHT TRUNCATION| .EOP
............................................................ ............................................................ ......................***...****.*...*...................... .....................*...*.*...*.**.**...................... .....................*****.*.....*.*.*...................... .....................*...*.*.....*...*...................... .....................*...*..****.*...*...................... ............................................................ ............................................................ .......SOUTH.CENTRAL.REGION.PROBLEM.FOUR.SAMPLE.OUTPUT...... ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ .****.*****.*...*.*****.*****.****..*****.****........*..... *...*.*.....**..*.*.*.*.*.....*...*.*.....*...*.......*..... *.....***...*.*.*...*...***...****..***...*...*.......*..... *.....*.....*..**...*...*.....*..*..*.....*...*.......*..... .****.*****.*...*..***..*****.*...*.*****.****........*****. ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ .......****.*****.*...*.*****.*****.****..*****.****........ ......*...*.*.....**..*.*.*.*.*.....*...*.*.....*...*....... ......*.....***...*.*.*...*...***...****..***...*...*....... ......*...LINE.THAT.OVERWRITES*THROUGH.CENTERED.*...*....... .......****.*****.*...*..***..*****.*...*.*****.****........ ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ SMALL.FONT.LINE.IS.LEFT.JUSTIFIED.ON.ROW.FORTY.............. ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ ............................................................ ..............................****..*****..****.*...*.*****. ..............................*...*...*...*.....*...*.*.*.*. ..............................****....*...*..**.*****...*... ..............................*..*....*...*...*.*...*...*... ..............................*...*.*****..***..*...*..***.. ............................................................ ............................................................ .........****...***..*****.*****..***..*...*........***..*.. .........*...*.*...*.*.*.*.*.*.*.*...*.**.**.......*...*.**. .........****..*...*...*.....*...*...*.*.*.*.......*****.*.* .........*...*.*...*...*.....*...*...*.*...*.......*...*.*.. ------------------------------------------------------------