Generic text-only printer does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cups (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: cups-client
I have a Citizen 500 dot-matrix printer that I use for printing plain-text, such as source code files. The print system thinks that it knows better than I do, however, and wins the battle, refusing to print my code.
This is what happens when I attempt to print source code from lp:alltray (and remove the tabs so the printer doesn't wrap things in an ugly fashion):
Wednesday, 2009-Jun-10 at 23:44:40 - mbt@zest - Linux v2.6.30
Ubuntu Jaunty:
lp: Unsupported format 'application/
This is, of course, a plain text file. It should pass through CUPS without any issues and get to the printer without any modifications.
The printer is configured in Ubuntu as a plain (generic) text printer, since I don't intend to ever send graphics to it; just plain text. There doesn't seem to be any option for ignoring the input and just shunting print jobs directly to the printer; I'd think that would be possible for a generic text-only printer, but it doesn't seem so.
summary: |
- CUPS [lp(1)] does not print Vala, C source code to generic text printer + Generic text-only printer does not work |
Tim, can you have a look at your "Generic Text-Only printer"? The "textonly" CUPS filter does not touch paper sizes anywhere and the PPD file has only a "Letter" paper size, no A4, nothing else. The PPD file should also have a cupsFilter lines like
*cupsFilter: "text/* 0 textonly" x-cshell 0 textonly" x-shell 0 textonly" x-csource 0 textonly"
*cupsFilter: "application/
*cupsFilter: "application/x-perl 0 textonly"
*cupsFilter: "application/
*cupsFilter: "application/
instead of
*cupsFilter: "text/plain 0 textonly"
so that all text formats defined in /etc/cups/ mime.types get supported.
Another solution for the text-only printer to recognize the additional text formats would be adding the following conversion rules (for example in /usr/share/ cups/mime/ text.convs) :
application/ x-cshell text/plain 100 - x-csource text/plain 100 -
application/
application/x-perl text/plain 100 -
application/x-shell text/plain 100 -
text/html text/plain 100 -
text/css text/plain 100 -
This makes all text formats falling back to text/plain if there is no filter chain accepting the text formats themselves.