In the Perl script there is the following code portion: ---------- finished=0 while [ $finished = 0 ]; do perl -e 'my $content = join("", <>); $content =~ s:(CustomMedia\s*\")([^\s\.\/]+)(\/([^\"]+?\s+|))(\S+\"([^\n]*\n){0,4}\s*CustomMedia\s*\")(\2)(.Duplex)(\/[^\"]*?\s*)(AutoDuplex ):\1\2.SM\3Small Margins \5\7\9:smgi; print $content' $f > $f.new 2>/dev/null ----------
The third line of this code portion is a perl call with a very long regular expression, containing "{0,4}" at some point. Can you replace this by "{0,100}?". Does this improve the result, leading to less failing PPDs? Or does it totally solve the problem? Or does it even cause new problems. If it does not solve the problem completely, try using a higher number than 100, but do not use numbers causing new problems. Try also to replace the "{0,4}" expression by "*?". Does this solve the problem without causing new failures? Another question: How do you determine failures? All the time with "ppdc -t <file>.drv"? And to which file do you apply it? To the one installed into the system as "/usr/share/cups/drv/hpcups.drv"? Or to another file? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1568996 Title: Duplex printing does not work properly for HP printers To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1568996/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs