diff --git a/cups-client/files/drucken.py b/cups-client/files/drucken.py index 61c08c9998a6c971d9a4ff459de0d295d38ffbd5..fd7ab15d21b5dab712261033aaa0d3750b854c63 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', 'Front', 'Rear', 'UpperLeft', 'LowerLeft'], help="Tackern. (Karman-only)") +parser.add_argument("--staple", choices=['top-left', 'bottom-left', 'top-right', 'bottom-right', 'dual-left', 'dual-top', 'dual-right', 'dual-bottom'], help="Tackern. Geht aktuell nur für eine Kopie der Datei. Bei mehr Kopien werden alle Seiten aller Kopien zusammegetackert. (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.") @@ -84,12 +84,8 @@ if args.staple: command += ["-P", "Kopierer"] args.karman = True if args.karman: - if args.staple == "UpperLeft": - args.staple = "Rear" - elif args.staple == "LowerLeft": - args.staple = "Front" if args.staple: - command += ["-o", "Stpl="+args.staple] + command += ["-o", "StapleLocation=staple-"+args.staple] args.output_bin = "FDStackerA" if args.punch: if args.hoern:# or args.other: