diff --git a/cups-client/files/drucken.py b/cups-client/files/drucken.py index d48d1c23f0ce6ca02cf2930e11aac5d9681b06c8..50c0b729ab62e1974842e2816dc40ed5f5d36f38 100755 --- a/cups-client/files/drucken.py +++ b/cups-client/files/drucken.py @@ -25,7 +25,7 @@ parser.add_argument("--landscape", action="store_true", help="Im Querformat druc group = parser.add_mutually_exclusive_group() group.add_argument("--fitplot", action="store_true", help="Datei auf Seitengröße skalieren.") group.add_argument("--scaling", type=int, help="Datei auf n Prozent der Seite skalieren.") -parser.add_argument("--staple", choices=['None', 'Center', 'UpperLeft', 'UpperRight'], help="Tackern. (Karman-only)") +parser.add_argument("--staple", choices=['None', 'Center', 'Front', 'Rear', 'UpperLeft', 'LowerLeft'], help="Tackern. (Karman-only)") parser.add_argument("--punch", choices=['None', '2Hole', '2HoleEUR', '3Hole', '4Hole', '2', '3', '4'], default='None', help="Lochen. (Karman-only)") parser.add_argument("--pages-per-page", choices=['1', '2', '4', '6', '9', '16'], default='1', help="Drucke n Seiten auf eine echte Seite. (default: %(default)s)") parser.add_argument("--media-type", choices=['Auto', 'Highqlty', 'Prepunched', 'Transparency', 'Bond', 'Labels', 'PrnDef', 'Cardstock', 'Letterhead', 'Recycled', 'Color', 'Plain', 'Rough', 'Envelope', 'Preprinted', 'Thick', 'Vellum'], help="Wähle das eingelegte Druckerpapier aus.") @@ -85,9 +85,12 @@ if args.staple: args.karman = True if args.karman: if args.staple == "UpperLeft": - command += ["-o", "KCStaple=Upperleft"] - else: - command += ["-o", "KCStaple="+args.staple] + args.staple = "Rear" + elif args.staple == "LowerLeft": + args.staple = "Front" + if args.staple: + command += ["-o", "Stpl="+args.staple] + args.output_bin = "FDStackerA" if args.punch: if args.hoern:# or args.other: if args.punch != 'None': @@ -101,7 +104,8 @@ if args.punch: punch_option += "Hole" if args.punch == "2": punch_option += "EUR" - command += ["-o", "KCPunch=" + punch_option] + command += ["-o", "Pnch=" + punch_option] + args.output_bin = "FDStackerA" if args.size: if args.hoern and args.size == 'A3':# or args.other parser.error("Die Drucker auf der Hörn können nicht in A3 drucken.")