home *** CD-ROM | disk | FTP | other *** search
- [PRDO.CNV]
- [G. Cisneros, 9.9.86]
- [[Print files using both sides of the paper]]
-
- [process the odd-numbered pages, then the even-numbered ones]
- (()()()(
- (,(WHILE,(8 9 1),<=>,(and,<-->(^@),<:P:><9>(^@))<1>,<<
- >>(%Or,CTR:pg)(%W,CTR:pg,1,2)<<
- >>(%p,(B)File: <9>(B)(B)<<
- >>(B)(B)(B)Page (%r,CTR:pg)(^MJJJ))<<
- >>(%Or,(%T,<8><9>))(i,0:(R))(%C,<8><9>),<1>)<<
- >>(%t,Turn paper over and press return)(,(%r))<<
- >>(WHILE,(8 9 1),<=>,(and,<-->(^@),<:P:><9>(^@))<1>,<<
- >>(%Or,CTR:pg)(%W,CTR:pg,2,2)<<
- >>(%Or,(%T,<8><9>))(i,(s,0:(R)))(%C,<8><9>),<1>));
- )) a
-
- [skip up to 58 lines]
- (()()(0)(
- (<0>:(^Z),(if,(#%,(%r,CTR:pg)%2),0,(%p,(^JJJ))0,63):(^Z));
- (58:<0>,(%p,(B)File: <9>(B)(B)<<
- >>(B)(B)(B)Page (%r,CTR:pg)(^MJJJ))0:<0>);
- (<0>:,(#p,<0>):(R)):
- )) s
-
- [print up to 58 lines]
- (()()(0 1)(
- (<0>:(^Z),(until,<0>,63,(%p,(^J)),(#p,<=>),));
- (58:,(%p,(^JJJJJ))(s,0:)):
- (<0>:<1>,(%p, (z,(y,<1>))(^MJ))(#p,<0>):(R)):
- )) i
-
- [trim to 80 characters]
- (()()(0)(
- ((and,<[80]>,<0>)<[1]>,<0> [);
- )) z
-
- [expand tabs]
- (()()(0 1 2)(
- ((and,<[8]>,<0>(^I)<1>)<2>,(u,<0>)(y,<1><2>));
- ((and,<[8]>,<0>)<1>,<0>(y,<1>));
- (<0>(^I)<1>,(u,<0>)(y,<1>));
- )) y
-
- [ensure eight columns]
- (()()(0)(
- ((and,<[8]>,<0>),<0>);
- (,<=> ):
- )) u
-
- [process command line tail]
- (()()(0 1)(
- (<0> (ITR, )<1>,<0><,><1>):
- (<0><,><,>(ITR,<,>)<1>,<0><,><1>):
- ((or,<,>,)<>,);
- (<,><0>,<0>);
- )) p
-
- [main - gather directory entries for the given list]
- ((
- ((and,(or,<-->:,)(ITR,<-->\),<8>)) P
- )(
- ( ) B
- ((%r,<8><9>)) R
- )()(
- (,(a,(WHILE,(8 1 2),(p,(&u,<=>)<,>),(and,<--><,>,<:P:><1><,>)<2>,<<
- >>(until,(%S,<8><1>),Not Found,<<
- >>(IF,(1),<=>,<[9]><1>,<8><1>(^@)),<<
- >>(%A),),<2>)));
- ))
-
- [end]