AmendHub

Download:

thecloud

/

SimpleSpooler

/

amendments

/

9

Simple Spooler 0.4 release


thecloud made amendment 9 13 days ago
--- README Thu Jul 30 20:22:56 2026 +++ README Fri Aug 7 13:43:16 2026 @@ -1,4 +1,4 @@ -## Simple Spooler 0.3 ## +## Simple Spooler 0.4 ## Copyright (c) 2026, Ken McLeod. This application acts as a virtual printer on an AppleTalk network, receiving @@ -9,6 +9,8 @@ visible on the network. Simple Spooler is freeware. You may use and distribute the software at no charge. See the LICENSE file for conditions on your use of the source code. +No AI or LLM was used at any stage of creating this software. There is no +substitute for the knowledge that is gained through personal experience. **System requirements** @@ -25,15 +27,15 @@ files, but all can add up if they are not being proces **Starting the spooler** -After opening the application, select "Start Spooler" from the Control menu. -A dialog will present the following options: +After opening the application for the first time, a dialog will present the +following options (also available from "Settings..." in the Control menu): * Printer name Type a name for the print spooler, which you can think of as a virtual printer. This name will appear on the network and can be selected by other users as an AppleTalk printer in the Chooser. -* Auto-run at launch +* Auto-run at launch Select this checkbox if you want the spooler to run automatically when the application opens, rather than needing to manually click Start. This allows for unattended server operation, e.g. by placing an alias to Simple Spooler @@ -44,7 +46,7 @@ A dialog will present the following options: ImageWriter to create a virtual printer of that type. For an ImageWriter or LQ, you can additionally select whether the printer is seen as having a color ribbon or a sheet feeder. The "IW1 compatibility" checkbox improves - compatibility with the original ImageWriter by removing newer printer + compatibility with the original ImageWriter I by removing newer printer control codes that only the ImageWriter II understands. The "Skip Reverse Feeds" checkbox strips control codes that would cause your printer to roll the paper backwards; selecting this can prevent misprints and paper jams. @@ -213,4 +215,8 @@ to reproduce it.) Thanks! 0.2 2026-02-23: added ImageWriter 1 compatibility mode 0.3 2026-07-30: split up configuration and startup, so server can auto-run; rewrote filter to run when printing rather than spooling; - optionally strip reverse feeds + optionally strip reverse feeds so paper never rolls back +0.4 2026-08-06: fix bug that failed to remove a filtered byte if it was the + last byte in the buffer being processed; + strip extra linefeeds generated by a reverse feed; + reset printer to defaults before starting each print job --- Spooler.c Wed Jul 29 20:43:03 2026 +++ Spooler.c Wed Aug 5 15:08:57 2026 @@ -10,7 +10,7 @@ * file is present in the spool directory. * * Written by: Ken McLeod, 2026-01-07 - * Last update: 2026-07-27 + * Last update: 2026-08-05 * * Some code was adapted from the Neighborhood Watch sample application * by Ricardo Batista, found on Apple Developer CD Volume IX, and from the @@ -153,6 +153,7 @@ char sPMStr[4]; /* pascal string with first 2 chars of char s12HrCycle; /* values: 0=24hr, 1=12hr */ char *sepStr = "\p----------------------------------------------------"; +char *verStr = "\pVersion 0.4, Copyright © 2026 Ken McLeod."; void main() @@ -1016,7 +1017,7 @@ void DoAbout() Message(0,"\pSimple Spooler is a basic print spooler application."); Message(0,"\pIt presents itself as an AppleTalk printer and will"); Message(0,"\prespond to Printer Access Protocol (PAP) messages."); - Message(0,"\pVersion 0.3, Copyright © 2026 Ken McLeod."); + Message(0,verStr); Message(0,sepStr); } @@ -1028,7 +1029,7 @@ void DoStatus() MessageWithQuotedString(0,"\pPrinter type:",ourType); MessageWithIntValue(0,"\pColor ribbon:",(defaultColorRibbon)?1:0); MessageWithIntValue(0,"\pSheet feeder:",(defaultSheetFeeder)?1:0); - MessageWithIntValue(0,"\pImageWriter 1 mode:",(defaultIW1Mode)?1:0); + MessageWithIntValue(0,"\pIW1 compatibility:",(defaultIW1Mode)?1:0); MessageWithIntValue(0,"\pSkip reverse feed:",(defaultNoReverse)?1:0); MessageWithQuotedString(0,"\pPrint to port:",ourPort); MessageWithIntValue(0,"\pPrinting enabled:",(defaultPrintEnabled)?1:0); --- Spooler.r Mon Jul 27 14:50:52 2026 +++ Spooler.r Fri Aug 7 13:37:51 2026 @@ -7,7 +7,13 @@ #include "Types.r" #include "SysTypes.r" -#define VERSION_STR "0.3" +/* version constants */ +#define MAJOR_VERSION 0x00 +#define MINOR_VERSION 0x04 +#define STAGE_VERSION development +#define REVISION_NUM 0x00 +#define VERSION_STR "0.4" +#define COPYRIGHT_STR "Copyright © 2026 Ken McLeod" /* resource type declarations */ type 'spoo' as 'STR '; @@ -51,10 +57,11 @@ resource 'FREF' (129, purgeable) { * 'vers' development=0x20, alpha=0x40, beta=0x60, release=0x80; */ resource 'vers' (1) { - 0x00, 0x10, development, 0x00, verUS, + MAJOR_VERSION, MINOR_VERSION, STAGE_VERSION, REVISION_NUM, + verUS, VERSION_STR, - $$Format("Simple Spooler %s\nCopyright © 2026 Ken McLeod", - VERSION_STR) + $$Format("Simple Spooler %s\n%s", + VERSION_STR,COPYRIGHT_STR) }; resource 'DLOG' (128, "Printer Setup") {