home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-08-25 | 32.5 KB | 1,431 lines |
- ; $VER: Wordworth Driver Disk V4SE (18.08.95)
- ; Copyright (C) 1993 Wolf Faust
-
- (complete 0)
- (set DriverSpace 95000)
- (set PrefsSpace 120000)
-
- (delopts "oknodelete" "force" "askuser")
-
- ;***************************************************************
- ;**
- ;** Installation Messages
- ;**
- ;*** New Messages added, PW 27.09.94
- ;*** Changes made for new Amiga bundles, DP 18.08.95
- ;***************************************************************
-
- (set #InsertDiskMsg
- (cat "\nBitte folgende Diskette einlegen:\n\n"
- ))
-
- (set #FloppySoExit
- (cat "\n\nDer Wordworth Print Manager erfordert zur Installation "
- "Eine Festplatte..\n\nZum Abbruch bitte auf Weiter klicken.")
- )
-
- (set #ExitMsg "\nDer Wordworth® Print Manager wurde nicht installiert.")
-
- (set #welcome
- (cat "\nFortgeschrittene:Druckertreiber werden auf dieser Diskette installiert.\n"
- "Experten: Druckertreiber können auf jeder gewünschten Diskette/Platte installiert werden.\n\n"
- ))
- (set #welcome-pirate
- (cat "\nWillkommen bei der Wordworth® Print Manager Installation\n\n"
- "Copyright (C) 1991-95 Wolf Faust\n\n"
- "Digita International Limited.\n\n\n"
- "Wordworth Print Manager ist im Lieferumfang des Amiga® von Amiga Technologies GmbH (TM) enthalten. All Rechte vorbehalten."
- ))
-
- (set #bad-kick
- (cat "\nIhr Betriebssystem ist veraltet. "
- "Sie benötigen mindestens Kickstart 2.04 \n\n"
- ))
- (set #abortunpack
- (cat "\nFehler beim Dekomprimieren/Schreiben! \n\n"
- ))
-
- (set #ask-sys
- (cat "\nIn welcher Schublade/Disk soll der Druckertreiber installiert werden?"
- ))
- (set #ask-sys-help
- (cat "\nIn diesem Abschnitt können Sie wählen, in welcher Schublade/Diskette/Platte der"
- "Druckertreiber installiert wird. "
- "Normalerweise wird der Treiber in das \"devs:printers\" Verzeichnis "
- "Ihrer Systemdiskette kopiert.\n\n"
- ))
-
- (set #diskhelp
- (cat "\n Wenn Sie die richtige Diskette im Laufwerk haben und dennoch nicht fortfahren "
- "können, ist der Name der Diskette falsch. \n"
- " Überprüfen Sie, ob der Name der Diskette Leerzeichen oder `copy_of_` vor oder nach dem Namen enthält.\n\n\n"
- )
- )
-
-
- (set #abortmsgdriver
- (cat "\nDieses Programm benötigt mindestens " (/ DriverSpace 1000) "k freien Speicherplatz\n"
- "Versuchen Sie es erneut mit mehr verfügbarem Speicher.\n\n"
- ))
-
- (set #ask-prefs
- (cat "\nIn welcher Schublade/Diskette/Platte soll das Programm `Druckervoreinstellungen`installiert werden?"
- ))
- (set #ask-prefs-help
- (cat "\nIn diesem Abschnitt können Sie wählen, in welcher Schublade/Diskette/Platte das"
- "Programm `Druckervoreinstellungen`installiert wird. "
- "Normalerwiese wird das Programm in das \"sys:prefs\" Verzeichnis Ihrer Systemdiskette kopiert. "
- " \n\n"
- ))
- (set #abortmsgpref
- (cat "\nDieses Programm benötigt mindestens " (/ PrefsSpace 1000) "k freien Speicherplatz"
- "um das Programm `Voreinstellungen` zu installieren. Versuchen Sie es erneut "
- "mit mehr verfügbarem Speicher.\n\n"
- ))
- (set #missing-env-kick
- (cat "\nEs ist kein ENV: Verzeichnis zur Speicherung der Treiberdaten verfügbar! \n"
- "Alle Treiber speichern diese Daten, wie Emulation und Helligkeit im ENV: Verzeichnis. "
- "Gewöhnlich wird das ENV: mit dem Standard-Amiga Startup-Programm erzeugt.\n"
- "Sollten Sie das Startup-Programm verändert haben, korrigieren Sie es und versuchen "
- "Sie es erneut.\n\n"
- ))
- (set #ask-env-mes
- (cat "\nEs ist kein ENV: Verzeichnis zur Speicherung der Treiberdaten verfügbar! \n"
- "Alle Treiber speichern diese Daten, wie Emulation und Helligkeit im ENV: Verzeichnis. "
- "Gewöhnlich wird das ENV: mit dem Standard-Amiga Startup-Programm erzeugt.\n"
- "Sollten Sie das Startup-Programm verändert haben, können Sie es mit Hilfe dieses "
- "Installationsprogramms korrigieren!\n\n"
- ))
- (set #ask-env
- (cat "\nWo sollen die Environment Settings (ENV:) gespeichert werden?"
- ))
- (set #ask-env-help
- (cat "\nIn diesem Abschnitt können Sie wählen, in welcher Schublade/Diskette/Platte "
- "der Wordworth Print Manager seine Voreinstellungen speichert."
- "Diese sind gewöhnlich im \"ENV:\" Verzeichnis Ihrer Systemdiskette.\n\n"
- "Sichern Sie ENV: auf Diskette oder Festplatte, damit Ihre Voreinstellungen "
- "nach dem Ausschalten Ihres AMIGA erhalten bleiben. \n\n"
- ))
- (set #ask-startup
- (cat "\nHinzufügen ENV: assign to \"S:user-startup\"?"
- ))
- (set #ask-startup-help
- (cat "\nWählen Sie JA, um assign Ihrer Startup-Datei hinzuzufügen\n\n"
- ))
- (set #warn-env-kick
- (cat "\nHinweis: Bitte achten Sie darauf, daß Ihr ENV: Verzeichnis einer Diskette oder Festplatte "
- "in Ihrer \"s:startup-sequence\" zugewiesen ist. Die Voreinstellungen gehen sonst "
- "beim ausschalten verloren. Überprüfen Sie nach Beendigung der Installation "
- "Ihr Startup-Programm und ändern Sie es, falls notwendig.\n\n"
- ))
- (set #cfm-delete
- (cat "\n\nWordworth Print Manager wurde bereits installiert. \n"
- "Wenn Sie fortfahren, werden Ihre bestehenden Voreinstellungen überschrieben. "
- ))
- (set #cfm-delete-help
- (cat "\n"
- ))
- (set #cfm-delete-1
- (cat "Ja: Löschen"
- ))
- (set #cfm-delete-2
- (cat "Nein"
- ))
- (set #cfmdelete
- (cat "Die alten Voreinstellungen konnten nicht gelöscht werden! "
- "Ein neuer Treiber wurde daher nicht installiert. "
- "Sollten Sie die alten Voreinstellungen löschen wollen, versuchen Sie es erneut.\n\n"
- ))
- (set #emu
- (cat "\n\nVerfügt Ihr Drucker über mehrere Emulationen, und möchten Sie "
- "zwischen diesen Emulationen wechseln? "
- ))
- (set #emu-help
- (cat "\nWählen Sie JA, wenn sich Ihr Drucker zwischen verschiedenen "
- "Emulationen umschalten läßt, z.B. Postscript und PCL."
- ))
- (set #emu-yes
- (cat "Ja"
- ))
- (set #emu-no
- (cat "Nein"
- ))
- (set #w-desk
- (cat "Wählen Sie die Druckeremulation"
- ))
- (set #w-desk-help
- (cat @askchoice-help
- ))
- (set #w-driver
- (cat "Wählen Sie den Namen des Geräts, das Ihr Drucker emuliert."
- ))
- (set #w-driver-help
- (cat "\nSehen Sie im Druckerhandbuch nach, welche Emulationen Ihr Drucker "
- "unterstützt.\n\n"
- @askchoice-help
- ))
- (set #w-emul
- (cat "Wählen Sie die Druckerart"
- ))
- (set #w-emul-help
- (cat "\nSehen Sie im Druckerhandbuch nach, welche Emulationen Ihr Drucker "
- "unterstützt.\n\n"
- @askchoice-help
- ))
- (set #w-ink
- (cat "Wählen Sie die Druckerart"
- ))
- (set #w-ink-help
- (cat @askchoice-help
- ))
- (set #w-ink-choice1
- (cat "Tintenstrahldrucker"
- ))
- (set #w-ink-choice2
- (cat "Nadeldrucker"
- ))
- (set #w-gemu
- (cat "Wählen Sie die Grafikemulation"
- ))
- (set #w-gemu-help
- (cat "\nDie meisten 24 Nadeldrucker unterstützen vertikal 24 dpi."
- "Star-Drucker nutzen hierfür die NEC- oder EPSON-Emulation. "
- "Die Emulation wird gewöhnlich über DIP-Schalter am Drucker gewählt."
- "\n\nHinweis: Ältere Star (NB)-Modelle unterstützen nur die NEC-Emulation\n\n"
- ))
- (set #w-gemu2
- (cat "Wählen Sie die Grafikemulation Ihres Druckers"
- ))
- (set #w-gemu2-help
- (cat "\nDie meisten 24 Nadeldrucker unterstützen vertikal 24 dpi."
- "Star-Drucker nutzen hierfür die NEC- oder EPSON-Emulation. "
- "Die Emulation wird gewöhnlich über DIP-Switches am Drucker gewählt."
- "\n\nHinweis: Ältere Star (NB)-Modelle unterstützen nur die NEC-Emulation\n\n"
- @askchoice-help
- ))
- (set #w-laser
- (cat "Wählen Sie die Grafikemulation Ihres Druckers"
- ))
- (set #w-laser-help
- (cat "\nEs sind verschiedene LaserJet-Emulationen möglich. "
- "Weitere Informationen entnehmen Sie Ihrem Druckerhandbuch.\n\n"
- @askchoice-help
- ))
- (set #w-color
- (cat "Wählen Sie die Druckerart"
- ))
- (set #w-color-help
- (cat "\nWordworth Print Manager ermöglicht Ihnen den Druck in bis zu "
- "256 Graustufen.\n\n"
- @askchoice-help
- ))
- (set #w-color-choice1
- (cat "Farbe"
- ))
- (set #w-color-choice2
- (cat "Schwarz/Weiß"
- ))
-
- (set #finalmsg2
- (cat "\nwurde erfolgreich installiert.\n"
- ))
- (set #finalmsg3
- (cat ""
- ))
-
- (set #wrongdither
- (cat "\n\nWARNUNG: Für das einwandfreie Funktionieren ist es nun notwendig, das Dithering "
- "in Ihrer Amiga Workbench Voreinstellungen in Ordered... zu ändern.\n\n"
- ))
- (set #waitmsg
- (cat "\n\n\n\nEinen Moment bitte..."
- ))
-
- (set #DPMDiskName "WwPrintManager")
-
- (set #InsertDPMDiskMsg
- (cat "\nBitte legen Sie die Diskette\n\n\"" #DPMDiskName "\" ein."
- ))
-
-
-
- ;***************************************************************
- ;**
- ;** Installation Code
- ;**
- ;***************************************************************
-
-
- (message #welcome-pirate)
-
- ; **** sure we are running under a 2.04 ROM???
- (if (< (/ (getversion) 65536) 37)
- (abort #bad-kick)
- )
-
- (complete 5)
-
- (set @default-dest "")
- (set DriverDest "Devs:Printers")
- (set PrefsDest "SYS:Prefs")
- (set #SourceDiskName "WwPrintManager")
-
- (set PrefsDestExists 0)
- (set DriverDestExists 0)
-
- (set #ExpandDevs (expandpath "Devs:printers"))
- (if (= #ExpandDevs "Wordworth4SE:Devs/Printers")
- (
- (message #FloppySoExit)
- (exit #ExitMsg)
- )
- (
- (set #PrefsProgDest PrefsDest)
- (set OnFloppy 0)
- )
- )
-
-
-
-
- ;** Prefs Destination Stuff
- (if (exists PrefsDest)
- (set PrefsDestExists 1)
- )
-
- (if (= PrefsDestExists 0)
- (
- (set PrefsDest
- (askdir
- (prompt #ask-prefs)
- (help #ask-prefs-help)
- (default PrefsDest)
- )
- )
- ))
-
-
- (complete 9)
-
-
-
-
- ;** Driver Destination stuff
-
- (if (exists DriverDest)
- (set DriverDestExists 1)
- )
-
- (if (= DriverDestExists 0)
- (
- (set DriverDest
- (askdir
- (prompt #ask-sys)
- (help #ask-sys-help)
- (default DriverDest)
- )
- )
- ))
-
-
- (if (= OnFloppy 1)
- (
- (askdisk
- (prompt #InsertDiskMsg #WwDiskName)
- (help #diskhelp)
- (dest #WwDiskName)
- )
- )
- )
- (set DriverTargetSize (getdiskspace DriverDest))
- (if (< DriverTargetSize DriverSpace)
- (
- (if (<> (getdevice DriverDest) "RAM")
- (
- (abort #abortmsgdriver)
- ))
- ))
-
-
-
- (complete 10)
-
- (if (not (exists "RAM:DPMTemp"))
- (
- (makedir "RAM:DPMTemp" )
- )
- )
-
- (makeassign "DPMTemp" "RAM:DPMTemp")
-
- ; find the ENV: directory
- (if (not (exists "ENV:"))
- (
- (if (< (/ (getversion) 65536) 37)
- (abort #missing-env-kick)
- )
- (set envdisk "SYS:Env-Archive")
- (if (exists "SYS:Prefs/Env-Archive")
- (
- (set envdisk "SYS:Prefs/Env-Archive")
- ))
- (message #ask-env-mes)
- (set envdisk (askdir (prompt #ask-env)
- (help #ask-env-help)
- (default envdisk))
- )
- (startup
- "System Environment"
- (prompt #ask-startup)
- (help #ask-startup-help )
- (command ("Assign ENV: %s" envdisk))
- )
- (makeassign "ENV" envdisk)
- )
- ( ; else
- (if (< (/ (getversion) 65536) 37)
- (message #warn-env-kick)
- )
- ))
- (complete 15)
-
- ; delete old ENV: and ENVARC: settings
- (set n 0 )
- (foreach "Env:" "Digita#?"
- (
- (set n 1)
- ))
- (if (> n 0)
- (
- (message #cfm-delete)
- (set n 0)
- (while (set thisfile (select n "BEEP"
- "CADJ"
- "CDIT"
- "COLOR"
- "COMPRESS"
- "CONV"
- "COPY"
- "NODISP"
- "EMU"
- "FEED"
- "FONT"
- "FONTS"
- "FORM"
- "GADJ"
- "GDIT"
- "GFEED"
- "KADJ"
- "KDIT"
- "MADJ"
- "MAGENTA"
- "MDIT"
- "MIRROR"
- "MODE"
- "NOSTRIP"
- "ORIENT"
- "OVER"
- "PERF"
- "RESX"
- "RESY"
- "SEP"
- "SUPER"
- "TAB"
- "TIME"
- "TOP"
- "TYPE"
- "YADJ"
- "YDIT"
- "YELLOW"
- "OVERPAGE"
- "FONT0"
- "FONT1"
- "FONT2"
- "FONT3"
- "FONT4"
- "FONT5"
- "FONT6"
- "FONT7"
- "FONT8"
- "FONT9"
- "FONT10"
- "Dry"
- "Copies"
- "GEmu"
- "TEmu"
- "Strip"
- "Quiet"
- "GFeed"
- "Wrap"
- "GDirect"
- "Shingl"
- "Depl"
- "Quality"
- "Compress"
- "Symbol"
- "Media"
- "PCL5"
- "Tray"
- "OutTray"
- "PJL"
- "HighRes"
- "PPage"
- "PjlHighRes"
- "PjlTimeout"
- "PjlTimeFlag"
- "PjlRet"
- "PjlProtect"
- "" ))
- (
- (set n (+ n 1))
- (if (exists (cat "ENV:Digita" thisfile))
- (
- (delete (cat "ENV:Digita" thisfile))
- ))
- (if (>= (/ (getversion) 65536) 37)
- (if (exists (cat "ENVARC:Digita" thisfile))
- (
- (delete (cat "ENVARC:Digita" thisfile))
- ))
- ))
- )
- ))
-
- (complete 20)
- ; ask for kind of printer
- (set emul (askchoice (prompt #w-emul)
- (help #w-emul-help)
- (choices
- "9 Pin Epson Driver" ; 0
- "24/48 pin Epson/Nec/Citizen/Star... driver" ; 1
- "Deskjet 310/500/510/500C/520, PJ 300XL" ; 2
- "Deskjet 550C, 560C driver" ; 3
- "Laserjet/PCL driver" ; 4
- "Canon BJ 200 or 230 (BJ)" ; 5
- "Canon BJ 5, 10 or 20 (BJ)" ; 6
- )
- (default 1)
- ))
- (complete 25)
- ; ask for type of laserprinter
- (if (= emul 4)
- (
- (set brand (askchoice (prompt #w-laser)
- (help #w-laser-help)
- (choices "PCL 5e compat., HP 4/4M, 4P/4MP, 4Si/4SiMX" ; 0
- "HP IIIP, HP 4L" ; 1
- "PCL 5 compatible, HP III, IIISI, IIID" ;2
- "Brother HL4Ve, Nec S62P, Ricoh LP1200" ;3
- "Oki 810, Seikosha OP108, Star LS 5" ;4
- "Star LS 4, LS5, LS 8, Seikosha OP104" ;5
- "HP IIP, Brother HL4V, HL8V, HL8D" ;6
- "PCL 3 / PCL 4 / Laserjet II compatible" ;7
- "HP LaserJet I, I+, 500, 2000, II" ;8
- "Nec S60P, Panasonic KX-P4455" ;9
- )
- (default 7)
- ))
- ))
- (complete 30)
- ; ask for: color or b/w if not laser printer
- (if (< emul 3)
- (
- (set prtcolor (askchoice (prompt #w-color)
- (help #w-color-help)
- (choices #w-color-choice1
- #w-color-choice2)
- (default 0)
- ))
- (if (> prtcolor 0)
- (
- (textfile (dest "ENV:DigitaSuper")
- (append "ON"))
- ))
- ))
-
- (complete 35)
- ; make directory for dither matrices
- (if (not (exists (tackon PrefsDest "Dither-Settings")))
- (makedir (tackon PrefsDest "Dither-Settings")
- (infos))
- )
- ; make directory for color adjustments
- (if (not (exists (tackon PrefsDest "Color-Settings")))
- (makedir (tackon PrefsDest "Color-Settings")
- (infos))
- )
- (set ditherord "8 8 4 236 60 220 8 224 48 208 132 68 188 124 136 72 176 112 36 196 20 252 40 200 24 240 164 100 148 84 168 104 152 88 12 228 52 212 0 232 56 216 140 76 180 116 128 64 184 120 44 204 28 244 32 192 16 248 172 108 156 92 160 96 144 80") ; order 64
- ; now check wich kind of printer the user has
- (complete 40)
-
-
-
-
- (if (= emul 0)
- ( ; Pin 9 Epson driver - note: this driver has default adjustment/dither values built-in
- (set printerdriver "Digita-Pin9Driver")
- (complete 50)
- (set printerpref "Digita-Pin9Pref")
- ))
-
-
-
- (if (= emul 1)
- ( ; Pin24Driver
- (set printerdriver "Digita-PinDriver")
- (set printerpref "Digita-PinPref")
- (set brand (askchoice (prompt #w-driver)
- (help #w-driver-help)
- (choices "Epson 24 pin Emulation: LQ, SQ, ..."
- "Epson 48 pin Emulation: SQ, BJC800, ..."
- "Seikosha (Epson): SL230, ..."
- "Star (Epson): SJ/LC/XB, ..."
- "Epson Stylus (Epson): "
- "Nec (Epson/Nec) : P6, P6+, P60,..."
- "Fujitsu (DPL24C/DPL24C+): DL1100, ..."
- "Panasonic (Epson 24pin): KX-P, ..."
- "Citizen (Epson 24pin): 224, Swift24 ..."
- )
- (default 0)
- ))
- (complete 45)
- ; do we have an inkjet or pin printer?
- (set kind (askchoice (prompt #w-ink)
- (help #w-ink-help)
- (choices #w-ink-choice1
- #w-ink-choice2
- )
- (default 0)
- ))
- (complete 50)
- (set adj "0 79 106 127 144 158 171 183 194 204 214 223 231 240 247 255")
- (if (= kind 1) ; **** pin printer
- (
- (set ditherord "8 8 144 160 152 128 108 92 100 124 216 224 232 176 36 28 20 76 208 248 240 168 44 4 12 84 184 200 192 136 68 52 60 116 104 88 96 120 148 164 156 132 32 24 16 72 220 228 236 180 40 0 8 80 212 252 244 172 64 48 56 112 188 204 196 140") ; halftone a 64
- (set adj "0 90 117 137 153 167 179 190 200 210 218 226 234 241 248 255") ; gamma 32
- ))
- (textfile (dest "Env:DigitaGDit")
- (append ditherord))
- (if (= prtcolor 0)
- (
- (textfile (dest "Env:DigitaCDit")
- (append ditherord))
- (textfile (dest "Env:DigitaMDit")
- (append ditherord))
- (textfile (dest "Env:DigitaYDit")
- (append ditherord))
- (textfile (dest "Env:DigitaKDit")
- (append ditherord))
- ))
-
- (complete 55)
- (if (= brand 0) ; **** Epson 24 pin
- (
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
- (if (= prtcolor 0)
- (
- (textfile (dest "Env:DigitaCAdj")
- (append adj))
- (textfile (dest "Env:DigitaMAdj")
- (append adj))
- (textfile (dest "Env:DigitaYAdj")
- (append adj))
- (textfile (dest "Env:DigitaKAdj")
- (append adj))
- ))
- ))
- (if (= brand 1) ; **** Epson 48 pin
- (
- (textfile (dest "Env:DigitaGEmu")
- (append "1"))
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
- (if (= prtcolor 0)
- (
- (textfile (dest "Env:DigitaCAdj")
- (append adj))
- (textfile (dest "Env:DigitaMAdj")
- (append adj))
- (textfile (dest "Env:DigitaYAdj")
- (append adj))
- (textfile (dest "Env:DigitaKAdj")
- (append adj))
- ))
- ))
- (if (= brand 2) ; **** Seikosha
- (
- (textfile (dest "Env:DigitaTEmu")
- (append "5"))
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
- (if (= prtcolor 0)
- (
- (textfile (dest "Env:DigitaCAdj")
- (append adj))
- (textfile (dest "Env:DigitaMAdj")
- (append adj))
- (textfile (dest "Env:DigitaYAdj")
- (append adj))
- (textfile (dest "Env:DigitaKAdj")
- (append adj))
- ))
- ))
- (if (= brand 3) ; **** Star
- (
- (if (askchoice (prompt #w-gemu)
- (help #w-gemu-help)
- (choices "Epson Emulation: LC24"
- "Nec Emulation: NBxx"
- )
- (default 0))
- (
- (textfile (dest "Env:DigitaGEmu")
- (append "3"))
- ))
- (textfile (dest "Env:DigitaTEmu")
- (append "7"))
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
- (if (= prtcolor 0)
- (
- (textfile (dest "Env:DigitaCAdj")
- (append adj))
- (textfile (dest "Env:DigitaMAdj")
- (append adj))
- (textfile (dest "Env:DigitaYAdj")
- (append adj))
- (textfile (dest "Env:DigitaKAdj")
- (append adj))
- ))
- ))
- (if (= brand 4) ; **** Epson Stylus
- (
- (textfile (dest "Env:DigitaStrip")
- (append "100"))
- (textfile (dest "Env:DigitaGEmu")
- (append "6"))
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
-
- (if (= prtcolor 0)
- (
- (textfile (dest "Env:DigitaCAdj")
- (append adj))
- (textfile (dest "Env:DigitaMAdj")
- (append adj))
- (textfile (dest "Env:DigitaYAdj")
- (append adj))
- (textfile (dest "Env:DigitaKAdj")
- (append adj))
- ))
- ))
- (if (= brand 5) ; **** Nec
- (
- (textfile (dest "Env:DigitaGEmu")
- (append "3"))
- (textfile (dest "Env:DigitaTEmu")
- (append "2"))
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
-
- (if (= prtcolor 0)
- (
- (textfile (dest "Env:DigitaCAdj")
- (append adj))
- (textfile (dest "Env:DigitaMAdj")
- (append adj))
- (textfile (dest "Env:DigitaYAdj")
- (append adj))
- (textfile (dest "Env:DigitaKAdj")
- (append adj))
- ))
- ))
- (if (= brand 6) ; **** Fujitsu
- (
- (textfile (dest "Env:DigitaGEmu")
- (append "4"))
- (textfile (dest "Env:DigitaTEmu")
- (append "3"))
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
- (if (= prtcolor 0)
- (
- (textfile (dest "Env:DigitaCAdj")
- (append adj))
- (textfile (dest "Env:DigitaMAdj")
- (append adj))
- (textfile (dest "Env:DigitaYAdj")
- (append adj))
- (textfile (dest "Env:DigitaKAdj")
- (append adj))
- ))
- ))
- (if (= brand 7) ; **** Panasonic
- (
- (if (askchoice (prompt #w-gemu2)
- (help #w-gemu2-help)
- (choices "Epson Emulation"
- "Nec Emulation"
- )
- (default 0))
- (
- (textfile (dest "Env:DigitaGEmu")
- (append "3"))
- ))
- (textfile (dest "Env:DigitaTEmu")
- (append "4"))
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
- (if (= prtcolor 0)
- (
- (textfile (dest "Env:DigitaCAdj")
- (append adj))
- (textfile (dest "Env:DigitaMAdj")
- (append adj))
- (textfile (dest "Env:DigitaYAdj")
- (append adj))
- (textfile (dest "Env:DigitaKAdj")
- (append adj))
- ))
- ))
- (if (= brand 8) ; **** Citizen
- (
- (set adj "0 79 106 127 144 158 171 183 194 204 214 223 231 240 247 255")
- (textfile (dest "Env:DigitaTEmu")
- (append "6"))
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
- (if (= prtcolor 0)
- (
- (textfile (dest "Env:DigitaCAdj")
- (append adj))
- (textfile (dest "Env:DigitaMAdj")
- (append adj))
- (textfile (dest "Env:DigitaYAdj")
- (append adj))
- (textfile (dest "Env:DigitaKAdj")
- (append adj))
- ))
- ))
- ))
-
-
-
- (if (= emul 2)
- ( ; Deskjet
- (set printerdriver "Digita-DeskDriver")
- (set printerpref "Digita-DeskPref")
- ; ask for kind of printer
- (set desk (askchoice (prompt #w-desk)
- (help #w-desk-help)
- (choices "HP Deskjet and compatible"
- "HP Deskjet Plus"
- "HP Deskjet 500, 520 and compatible"
- "HP Deskjet 500C, 310 and compatible"
- "HP Deskjet 1200C and 1200PS"
- "HP Paintjet 300XL"
- )
- (default 2)
- ))
- (textfile (dest "Env:DigitaTop")
- (append "0")) ;turn off top margin, WW print border handles this
- (textfile (dest "Env:DigitaPerf")
- (append "Off")) ; Ww handles paging
-
- (complete 45)
- (if (> desk 1)
- (
- (textfile (dest "Env:DigitaCompress")
- (append "3"))
- (if (> desk 2)
- (
- (askdisk
- (prompt #InsertDPMDiskMsg)
- (dest #DPMDiskName)
- (help #diskhelp)
- )
- (copyfiles
- (source (cat #DPMDiskName ":Color-Settings"))
- (dest "DPMTemp:Color-Settings")
- (pattern "DJ500#?")
- (infos)
- (nogauge)
- )
- ))
- ))
- (complete 50)
- (textfile (dest "Env:DigitaGDit")
- (append ditherord))
- (textfile (dest "Env:DigitaCDit")
- (append ditherord))
- (textfile (dest "Env:DigitaMDit")
- (append ditherord))
- (textfile (dest "Env:DigitaYDit")
- (append ditherord))
- (set adj "0 66 93 114 132 147 161 174 186 198 208 218 228 237 246 255")
- (set adj2 "0 104 167 193 205 215 221 225 232 237 240 244 249 253 255 255")
- (set adj3 "0 95 140 161 191 198 209 219 228 232 236 240 242 246 251 255")
- (set adj4 "0 100 154 178 199 207 215 224 230 232 238 242 247 251 253 255")
- ; DJ 1200 and PJ 300XL
- (if (> desk 3)
- (
- ; install 256 shades dither
- (copyfiles (source "DigitaPrintManager:Dither-Settings/Hexagonal-Cluster-256.dit")
- (dest "ENV:")
- (newname "DigitaGDit")
- (files)
- (infos)
- (nogauge))
- (copyfiles (source "DigitaPrintManager:Dither-Settings/Hexagonal-Cluster-256.dit")
- (dest "ENV:")
- (newname "DigitaCDit")
- (files)
- (infos)
- (nogauge))
- (copyfiles (source "DigitaPrintManager:Dither-Settings/Hexagonal-Cluster-256.dit")
- (dest "ENV:")
- (newname "DigitaMDit")
- (files)
- (infos)
- (nogauge))
- (copyfiles (source "DigitaPrintManager:Dither-Settings/Hexagonal-Cluster-256.dit")
- (dest "ENV:")
- (newname "DigitaYDit")
- (files)
- (infos)
- (nogauge))
- (set adj "0 12 22 33 50 74 99 120 140 159 176 193 211 228 242 255")
- (set adj2 "0 47 88 109 140 165 181 197 209 216 224 231 238 244 250 255")
- (set adj3 "0 74 105 120 147 163 177 192 206 216 228 238 243 248 252 255")
- (set adj4 "0 99 138 163 194 215 230 240 249 253 254 254 255 255 255 255")
- (if (= desk 5)
- (
- (set adj "0 60 68 87 108 129 144 157 170 182 194 206 219 235 248 255")
- (set adj2 "58 109 144 161 180 194 204 214 224 230 237 243 246 249 252 255")
- (set adj3 "58 124 147 158 179 193 205 217 227 235 246 251 253 255 255 255")
- (set adj4 "58 124 163 193 222 237 246 251 253 254 254 255 255 255 255 255")
- ))
- ))
- (complete 55)
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
- (textfile (dest "Env:DigitaCAdj")
- (append adj2))
- (textfile (dest "Env:DigitaMAdj")
- (append adj3))
- (textfile (dest "Env:DigitaYAdj")
- (append adj4))
- (if (> prtcolor 0)
- (
- (textfile (dest "Env:DigitaShingl")
- (append "0"))
- )
- ( ; else
- (textfile (dest "Env:DigitaShingl")
- (append "0"))
- (textfile (dest "Env:DigitaDepl")
- (append "0"))
- ))
- ))
-
-
-
- (if (= emul 3)
- ( ; Deskjet 550C
- (set printerdriver "Digita-DeskDriver4C")
- (set printerpref "Digita-DeskPref4C")
- ; ask for kind of printer
- (set desk (askchoice (prompt #w-desk)
- (help #w-desk-help)
- (choices "HP Deskjet 550C and compatible"
- "HP Deskjet 1200C and 1200PS"
- "HP Paintjet 300XL"
- )
- (default 0)
- ))
- (textfile (dest "Env:DigitaTop")
- (append "0")) ;turn off top margin, WW print border handles this
- (textfile (dest "Env:DigitaPerf")
- (append "Off")) ; Ww handles paging
- (complete 45)
- (textfile (dest "Env:DigitaCompress")
- (append "3"))
- (textfile (dest "Env:DigitaGDit")
- (append ditherord))
- (textfile (dest "Env:DigitaCDit")
- (append ditherord))
- (textfile (dest "Env:DigitaMDit")
- (append ditherord))
- (textfile (dest "Env:DigitaYDit")
- (append ditherord))
- (textfile (dest "Env:DigitaKDit")
- (append ditherord))
- (complete 50)
- ; **** copy additional color-settings
- (if (= desk 0)
- (
- (askdisk
- (prompt #InsertDPMDiskMsg)
- (dest #DPMDiskName)
- (help #diskhelp)
- )
- (copyfiles
- (source (cat #DPMDiskName ":Color-Settings"))
- (dest "DPMTemp:Color-Settings")
- (pattern "DJ550#?")
- (infos)
- (nogauge)
- )
- )
- ( ;else desk 1,2
- (if (= desk 1)
- (
- (copyfiles
- (source (cat #DPMDiskName ":Color-Settings"))
- (dest "DPMTemp:Color-Settings")
- (pattern "DJ1200#?")
- (infos)
- (nogauge)
- )
- )
- ( ;else 2
- (copyfiles
- (source (cat #DPMDiskName ":Color-Settings"))
- (dest "DPMTemp:Color-Settings")
- (pattern "XL300#?")
- (infos)
- (nogauge)
- )
- )
- )
- )
- )
-
- (set adj "0 66 93 114 132 147 161 174 186 198 208 218 228 237 246 255")
- (set adj2 "0 104 167 193 205 215 221 225 232 237 240 244 249 253 255 255")
- (set adj3 "0 95 140 161 191 198 209 219 228 232 236 240 242 246 251 255")
- (set adj4 "0 100 154 178 199 207 215 224 230 232 238 242 247 251 253 255")
- (set adj5 "0 100 154 178 199 207 215 224 230 232 238 242 247 251 253 255")
- (if (> desk 0)
- (
- (textfile (dest "Env:DigitaPCL5")
- (append "1"))
- ; install 256 shades dither
- (askdisk
- (prompt #InsertDPMDiskMsg)
- (help #diskhelp)
- (dest #DPMDiskName)
- )
- (copyfiles
- (source (cat #DPMDiskName ":Dither-Settings/Hexagonal-Cluster-256.dit"))
- (dest "ENV:")
- (newname "DigitaGDit")
- (files)
- (infos)
- (nogauge)
- )
- (copyfiles
- (source (cat #DPMDiskName ":Dither-Settings/Hexagonal-Cluster-256.dit"))
- (dest "ENV:")
- (newname "DigitaCDit")
- (files)
- (infos)
- (nogauge)
- )
- (copyfiles
- (source (cat #DPMDiskName ":Dither-Settings/Hexagonal-Cluster-256.dit"))
- (dest "ENV:")
- (newname "DigitaMDit")
- (files)
- (infos)
- (nogauge)
- )
- (copyfiles
- (source (cat #DPMDiskName ":Dither-Settings/Hexagonal-Cluster-256.dit"))
- (dest "ENV:")
- (newname "DigitaYDit")
- (files)
- (infos)
- (nogauge)
- )
- (set adj "0 12 22 33 50 74 99 120 140 159 176 193 211 228 242 255")
- (set adj2 "0 47 88 109 140 165 181 197 209 216 224 231 238 244 250 255")
- (set adj3 "0 74 105 120 147 163 177 192 206 216 228 238 243 248 252 255")
- (set adj4 "0 99 138 163 194 215 230 240 249 253 254 254 255 255 255 255")
- (set adj5 "0 74 105 120 147 163 177 192 206 216 228 238 243 248 252 255")
- (if (= desk 2)
- (
- (set adj "0 60 68 87 108 129 144 157 170 182 194 206 219 235 248 255")
- (set adj2 "58 109 144 161 180 194 204 214 224 230 237 243 246 249 252 255")
- (set adj3 "58 124 147 158 179 193 205 217 227 235 246 251 253 255 255 255")
- (set adj4 "58 124 163 193 222 237 246 251 253 254 254 255 255 255 255 255")
- (set adj5 "58 124 147 158 179 193 205 217 227 235 246 251 253 255 255 255")
- ))
- ))
- (complete 55)
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
- (textfile (dest "Env:DigitaCAdj")
- (append adj2))
- (textfile (dest "Env:DigitaMAdj")
- (append adj3))
- (textfile (dest "Env:DigitaYAdj")
- (append adj4))
- (textfile (dest "Env:DigitaKAdj")
- (append adj5))
- (if (> prtcolor 0)
- (
- (textfile (dest "Env:DigitaShingl")
- (append "0"))
- )
- ( ; else
- (textfile (dest "Env:DigitaShingl")
- (append "0"))
- (textfile (dest "Env:DigitaDepl")
- (append "0"))
- ))
- ))
-
-
-
-
- (if (> emul 4)
- ( ; Canon BJ 5, 10, 20 200, 230
- (set printerdriver "Digita-CanonBJ5-230")
- (set printerpref "Digita-CanonPrefBJ5-230")
- (set adj "0 72 100 121 138 153 167 179 190 201 211 221 230 239 247 255")
- (textfile (dest "Env:DigitaFont")
- (append "Off"))
- (complete 45)
- (textfile (dest "Env:DigitaGDit")
- (append ditherord))
- (complete 50)
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
- (complete 55)
- ))
-
-
-
- (if (= emul 4)
- ( ; Laserjet printer
- (set printerdriver "Digita-LaserDriver")
- (set printerpref "Digita-LaserPref")
- (set adj "0 90 117 137 153 167 179 190 200 210 218 226 234 241 248 255")
- (textfile (dest "Env:DigitaGDit")
- (append ditherord))
- (textfile (dest "Env:DigitaGAdj")
- (append adj))
- (textfile (dest "Env:DigitaTop")
- (append "0")) ;turn off top margin, WW print border handles this
- (textfile (dest "Env:DigitaPerf")
- (append "Off")) ; Ww handles paging
- (if (= brand 0)
- (
- (textfile (dest "Env:DigitaHighRes")
- (append "2"))
- (textfile (dest "Env:DigitaPJL")
- (append "1"))
- ))
- (complete 50)
- (if (< brand 7)
- (
- (textfile (dest "Env:DigitaCompress")
- (append "1"))
- (if (< brand 5)
- (
- (textfile (dest "Env:DigitaSymbol")
- (append "1"))
- (textfile (dest "Env:DigitaCompress")
- (append "3"))
- (if (< brand 2)
- (
- (textfile (dest "Env:DigitaCompress")
- (append "4"))
- ))
- ))
- ))
- (complete 55)
- (if (> brand 0)
- (
- (if (askbool (prompt (#emu))
- (help (#emu-help ))
- (choices #emu-yes #emu-no))
- (
- (textfile (dest "Env:DigitaPJL")
- (append "2"))
- ))
- ))
- ))
-
-
-
-
-
-
- (working #waitmsg)
- (complete 60)
- ; *** unpack driver to destination
-
- ; copy to ram to save disk swaps
-
- (if (= OnFloppy 1)
- (
- (askdisk
- (prompt #InsertDiskMsg #PrefsProgDest)
- (help #diskhelp)
- (dest #PrefsProgDest)
- )
- (set PrefsTargetSize (getdiskspace (cat #PrefsProgDest ":")))
- )
- (
- (set PrefsTargetSize (getdiskspace PrefsDest))
- )
- )
-
- (if (< PrefsTargetSize PrefsSpace)
- (
- (if (<> (getdevice PrefsDest) "RAM")
- (
- (abort #abortmsgpref)
- )
- )
- )
- )
-
-
- (askdisk
- (prompt #InsertDPMDiskMsg)
- (help #diskhelp)
- (dest #DPMDiskName)
- )
- (run (cat #DPMDiskName ":unpack " #DPMDiskName ":drivers/"
- printerdriver
- ".pkd \""
- (tackon "DPMTemp:" printerdriver)
- "\""
- ))
-
- (if (exists "RAM:StudioTemp")
- (
- (abort #abortunpack)
- ))
-
- (complete 65)
-
- ; *** unpack preferences program to destination
- (askdisk
- (prompt #InsertDPMDiskMsg)
- (help #diskhelp)
- (dest #DPMDiskName)
- )
- (run (cat #DPMDiskName ":unpack " #DPMDiskName ":Prefs/"
- printerpref
- ".pkd \""
- (tackon "DPMTemp:" printerpref)
- "\""
- ))
-
- (complete 70)
-
-
-
- (if (exists "RAM:StudioTemp")
- (
- (abort #abortunpack)
- ))
-
-
- (complete 75)
-
-
- ; Unpack Preferences to RAM
- (askdisk
- (prompt #InsertDPMDiskMsg)
- (help #diskhelp)
- (dest #DPMDiskName)
- )
- (copyfiles
- (source (cat #DPMDiskName ":Prefs/" printerpref ".info"))
- (dest "DPMTemp:")
- (files)
- (nogauge)
- )
-
- ; For 3.1SE floppy copy prefs to DPM disk, else copy to Sys:prefs
- (if (= OnFloppy 1)
- (
- (set #FullPrefsProgDest (cat #PrefsProgDest ":"))
- )
- (
- (set #FullPrefsProgDest #PrefsProgDest)
- )
- )
- (copyfiles
- (source (cat "DPMTemp:" printerpref ".info"))
- (dest #FullPrefsProgDest)
- (files)
- (nogauge)
- )
-
- ; Copy Preferences to disk
- (copyfiles
- (source (tackon "DPMTemp:" printerpref ) )
- (dest #FullPrefsProgDest)
- )
-
- (if (= OnFloppy 1)
- (
- (askdisk
- (prompt #InsertDiskMsg #WwDiskName)
- (help #diskhelp)
- (dest #WwDiskName)
- )
- )
- )
-
- ; Copy Driver to disk
- (copyfiles
- (source (tackon "DPMTemp:" printerdriver) )
- (dest DriverDest)
- )
-
- ; Copy Color settings to disk
- (if (exists "DPMTemp:Color-Settings")
- (
- (copyfiles
- (source "DPMTemp:Color-Settings")
- (dest (tackon PrefsDest "Color-Settings"))
- (all)
- (infos)
- (nogauge)
- )
- )
- )
-
-
- (complete 80)
- ; **** copy ENV: vars to ENVARC:
- (if (>= (/ (getversion) 65536) 37)
- (
- (set n 0)
- (while (set thisfile (select n "Beep"
- "CADJ"
- "CDIT"
- "COLOR"
- "COMPRESS"
- "CONV"
- "COPY"
- "NODISP"
- "NOSTRIP"
- "EMU"
- "FEED"
- "FONT"
- "FONTS"
- "FORM"
- "GADJ"
- "GDIT"
- "GFEED"
- "KADJ"
- "KDIT"
- "MADJ"
- "MAGENTA"
- "MDIT"
- "MIRROR"
- "MODE"
- "ORIENT"
- "OVER"
- "PERF"
- "RESX"
- "RESY"
- "SEP"
- "SUPER"
- "TAB"
- "TIME"
- "TOP"
- "TYPE"
- "YADJ"
- "YDIT"
- "YELLOW"
- "OVERPAGE"
- "FONT0"
- "FONT1"
- "FONT2"
- "FONT3"
- "FONT4"
- "FONT5"
- "FONT6"
- "FONT7"
- "FONT8"
- "FONT9"
- "FONT10"
- "FONTDAT"
- "Dry"
- "Copies"
- "GEmu"
- "TEmu"
- "Strip"
- "Quiet"
- "GFeed"
- "Wrap"
- "GDirect"
- "Shingl"
- "Depl"
- "Quality"
- "Compress"
- "Symbol"
- "Media"
- "PCL5"
- "Tray"
- "OutTray"
- "PJL"
- "HighRes"
- "PPage"
- "PjlHighRes"
- "PjlTimeout"
- "PjlTimeFlag"
- "PjlRet"
- "PjlProtect"
- "" ))
- (
- (set n (+ n 1))
- (if (exists (cat "ENV:Digita" thisfile))
- (
- (copyfiles (source (cat "ENV:Digita" thisfile))
- (dest "ENVARC:")
- (nogauge)
- (files))
- ))
- ))
- ))
-
- (set #finalmsg1
- (cat "Der Wordworth Druckertreiber \"" printerdriver "\" wurde in Ihrem "
- "\"" DriverDest "\" Verzeichnis installiert.\n"
- " Um die Einstellungen zu verändern, "
- "klicken Sie zweimal auf dem \""printerpref "\" Symbol im Verzeichnis \"" PrefsDest "\".\n"
- "Um den Wordworth Print Manager in Wordworth zu benützen,\n"
- "starten Sie Wordworth und wählen Sie \"Druckereinrichtung\" aus dem Menü DATEI. "
- "wählen Sie den Digita Druckertreiber \"" printerdriver "\" aus der Liste und klicken OK. "
- "Wählen Sie die Option VOREINSTELLUNGEN im Wordworth Menü ZUSÄTZE und dann "
- "SPEICHERN, um Ihre Druckereinstellung ständig zu sichern."
- ))
-
-
- ;(set #finalmsg1
- ;(cat "\nThe Digita printer driver \"" printerdriver "\" has been installed "
- ; "in your \"" DriverDest "\" drawer.\n\n" " To edit the settings, double-click "
- ; "the \""printerpref "\" icon which is located in your \"" PrefsDest "\" drawer.\n\n"
- ; "Using Wordworth with Digita Print Manager:\n"
- ; "Start Wordworth and choose \"Print Setup\" from the Project menu. "
- ; "From the list, select the Digita print driver \"" printerdriver "\" and click OK."
- ;))
-
-
- (complete 90)
- (run "delete DPMTemp:#? all") ; ensure only ram copy */
-
- (message #finalmsg1)
- (complete 100)
-