On Sunday 09 March 2008 02:39:47 Pascal De Vuyst wrote: > Thanks for your bug report. > Please attach you cups error_log after trying to print a ps or pdf file as > described here: https://wiki.ubuntu.com/DebuggingPrintingProblems. > > ** Changed in: ubuntu > Assignee: (unassigned) => Pascal De Vuyst (pascal-devuyst) > Status: New => Incomplete
Attached is typescript file for 'script' command. It is ugly, but I think you can see what is going on. This was done with March 10, 2008 daily-build of Hardy Heron 8.04 alpha-6. System is an HP Slimline dual AMD 64 based system. Thanks, Chuck -- Chuck Adams, K7QO [EMAIL PROTECTED] http://www.k7qo.net/ Moving to Arizona? Bring your own water, please. Script started on Mon 10 Mar 2008 10:58:38 AM MST [EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ ls [Kmod | grep usb usblp 17664 0 rt73usb 28928 0 rt2x00usb 14720 1 rt73usb rt2x00lib 25344 2 rt73usb,rt2x00usb mac80211 192532 2 rt2x00usb,rt2x00lib usbhid 35168 0 hid 44992 1 usbhid usb_storage 82496 0 libusual 23520 1 usb_storage scsi_mod 178488 6 sbp2,usb_storage,sg,sr_mod,sd_mod,libata usbcore 169904 9 usblp,rt73usb,rt2x00usb,usbhid,usb_storage,libusual,ehci_hcd,ohci_hcd [EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ tail -f /var/log/med[Kssages Mar 10 10:58:26 slimline-alpha6 kernel: [ 125.909891] usblp0: removed Mar 10 10:58:49 slimline-alpha6 kernel: [ 135.359236] usb 2-6: new high speed USB device using ehci_hcd and address 7 Mar 10 10:58:50 slimline-alpha6 kernel: [ 135.420089] usb 2-6: configuration #1 chosen from 1 choice Mar 10 10:58:50 slimline-alpha6 kernel: [ 135.423275] usblp0: USB Bidirectional printer dev 7 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17 Mar 10 10:58:50 slimline-alpha6 /usr/sbin/hplj1020: foo2zjs: Missing HP LaserJet 1020 firmware file /usr/share/foo2zjs/firmware/sihp1020.dl Mar 10 10:58:50 slimline-alpha6 /usr/sbin/hplj1020: foo2zjs: ...read foo2zjs installation instructions and run ./getweb 1020 Mar 10 10:58:50 slimline-alpha6 /usr/sbin/hplj1020: foo2zjs: Missing HP LaserJet 1020 firmware file /usr/share/foo2zjs/firmware/sihp1020.dl Mar 10 10:58:50 slimline-alpha6 /usr/sbin/hplj1020: foo2zjs: ...read foo2zjs installation instructions and run ./getweb 1020 Mar 10 10:59:02 slimline-alpha6 kernel: [ 140.375831] usb 2-6: USB disconnect, address 7 Mar 10 10:59:02 slimline-alpha6 kernel: [ 140.376220] usblp0: removed Mar 10 10:59:39 slimline-alpha6 kernel: [ 155.037064] usb 2-6: new high speed USB device using ehci_hcd and address 8 Mar 10 10:59:39 slimline-alpha6 kernel: [ 155.097882] usb 2-6: configuration #1 chosen from 1 choice Mar 10 10:59:39 slimline-alpha6 kernel: [ 155.098551] usblp0: USB Bidirectional printer dev 8 if 0 alt 0 proto 2 vid 0x03F0 pid 0x2B17 Mar 10 10:59:39 slimline-alpha6 /usr/sbin/hplj1020: foo2zjs: Missing HP LaserJet 1020 firmware file /usr/share/foo2zjs/firmware/sihp1020.dl Mar 10 10:59:39 slimline-alpha6 /usr/sbin/hplj1020: foo2zjs: ...read foo2zjs installation instructions and run ./getweb 1020 Mar 10 10:59:39 slimline-alpha6 /usr/sbin/hplj1020: foo2zjs: Missing HP LaserJet 1020 firmware file /usr/share/foo2zjs/firmware/sihp1020.dl Mar 10 10:59:39 slimline-alpha6 /usr/sbin/hplj1020: foo2zjs: ...read foo2zjs installation instructions and run ./getweb 1020 [EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ lpinfo -v network socket network beh direct hal:///org/freedesktop/Hal/devices/usb_device_3f0_2b17_JL29QKA_if0_printer_noserial direct hpfax direct usb://HP/LaserJet%201020 direct hp:/usb/HP_LaserJet_1020?serial=JL29QKA network http network ipp network lpd file cups-pdf:/ direct scsi network smb [EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ sudo vi /etc/cups/cupsd.con [sudo] password for adams: sudo vi /etc/cups/cupsd.conf [?1049h[?1h=[1;59r[?12;25h[?12l[?25h[27m[m[H[2J[?25l[59;1H"/etc/cups/cupsd.conf" "/etc/cups/cupsd.conf" 80 lines, 2356 characters[1;1H# # # Sample configuration file for the Common UNIX Printing System (CUPS) # scheduler. See "man cupsd.conf" for a complete description of this # file. # # Log general information in error_log - change "info" to "debug" for # troubleshooting... LogLevel warning # Administrator user group... SystemGroup lpadmin # Only listen for connections from the local machine. Listen localhost:631 Listen /var/run/cups/cups.sock # Show shared printers on the local network. Browsing Off BrowseOrder allow,deny BrowseAllow all BrowseAddress @LOCAL # Default authentication type, when authentication is required... DefaultAuthType Basic # Restrict access to the server... <Location /> Order allow,deny </Location> # Restrict access to the admin pages... <Location /admin> Order allow,deny </Location> # Restrict access to configuration files... <Location /admin/conf> AuthType Default Require user @SYSTEM Order allow,deny </Location> # Set the default printer/job policies... <Policy default> # Job-related operations must be done by the owner or an administrator... <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Repp[50;1Hrocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job> Require user @OWNER @SYSTEM Order deny,allow </Limit> # All administration operations require an administrator to authenticate... <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default> AuthType Default Require user @SYSTEM[1;1H[?12l[?25h[?25l[59;1H[K[59;1H/[?12l[?25hLogLevel [?25l/LogLevel [10;1H[?12l[?25hLogLevel wa[?25l[10;10H[K[10;9H[?12l[?25h [?25ld[?12l[?25h[?25le[?12l[?25h[?25lb[?12l[?25h[?25lu[?12l[?25h[?25lg[?12l[?25h[?25l[59;1H"/etc/cups/cupsd.conf" "/etc/cups/cupsd.conf" 80 lines, 2354 characters written [?1l>[?12l[?25h[?1049l]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ Z[Ksudo /etc/init.d/cupsys restart * Restarting Common Unix Printing System: cupsd [179G [173G[ OK ] ]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ cat /var/log/cups/error_log E [10/Mar/2008:10:57:41 -0700] [cups-driverd] Unable to open PPD directory "/usr/share/cups/model": No such file or directory E [10/Mar/2008:10:57:41 -0700] [cups-driverd] Unable to open PPD directory "/opt/share/ppd": No such file or directory E [10/Mar/2008:10:58:00 -0700] CUPS-Add-Modify-Printer: Unauthorized E [10/Mar/2008:10:58:27 -0700] Pause-Printer: Unauthorized E [10/Mar/2008:10:58:52 -0700] Resume-Printer: Unauthorized E [10/Mar/2008:10:59:03 -0700] Pause-Printer: Unauthorized E [10/Mar/2008:10:59:41 -0700] Resume-Printer: Unauthorized I [10/Mar/2008:11:01:17 -0700] Listening to 127.0.0.1:631 (IPv4) I [10/Mar/2008:11:01:17 -0700] Listening to /var/run/cups/cups.sock (Domain) I [10/Mar/2008:11:01:17 -0700] Loaded configuration file "/etc/cups/cupsd.conf" I [10/Mar/2008:11:01:17 -0700] Using default TempDir of /var/spool/cups/tmp... I [10/Mar/2008:11:01:17 -0700] Configured for up to 100 clients. I [10/Mar/2008:11:01:17 -0700] Allowing up to 100 client connections per host. I [10/Mar/2008:11:01:17 -0700] Using policy "default" as the default! I [10/Mar/2008:11:01:17 -0700] Full reload is required. I [10/Mar/2008:11:01:17 -0700] Loaded MIME database from '/etc/cups': 36 types, 39 filters... D [10/Mar/2008:11:01:17 -0700] Loading printer HP_LaserJet_1020... D [10/Mar/2008:11:01:17 -0700] Loading printer PDF... D [10/Mar/2008:11:01:17 -0700] cupsdLoadRemoteCache: Not loading remote cache. I [10/Mar/2008:11:01:17 -0700] Loading job cache file "/var/cache/cups/job.cache"... I [10/Mar/2008:11:01:17 -0700] Full reload complete. I [10/Mar/2008:11:01:17 -0700] Cleaning out old temporary files in "/var/spool/cups/tmp"... I [10/Mar/2008:11:01:17 -0700] Listening to 127.0.0.1:631 on fd 3... I [10/Mar/2008:11:01:17 -0700] Listening to /var/run/cups/cups.sock on fd 4... I [10/Mar/2008:11:01:17 -0700] Resuming new connection processing... D [10/Mar/2008:11:01:18 -0700] Report: clients=0 D [10/Mar/2008:11:01:18 -0700] Report: jobs=0 D [10/Mar/2008:11:01:18 -0700] Report: jobs-active=0 D [10/Mar/2008:11:01:18 -0700] Report: printers=2 D [10/Mar/2008:11:01:18 -0700] Report: printers-implicit=0 D [10/Mar/2008:11:01:18 -0700] Report: stringpool-string-count=455 D [10/Mar/2008:11:01:18 -0700] Report: stringpool-alloc-bytes=10416 D [10/Mar/2008:11:01:18 -0700] Report: stringpool-total-bytes=8792 ]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ lpstat -t scheduler is running no system default destination device for HP_LaserJet_1020: hp:/usb/HP_LaserJet_1020?serial=JL29QKA device for PDF: cups-pdf:/ HP_LaserJet_1020 accepting requests since Mon 10 Mar 2008 10:59:41 AM MST PDF accepting requests since Sun 09 Mar 2008 10:28:04 PM MST printer HP_LaserJet_1020 is idle. enabled since Mon 10 Mar 2008 10:59:41 AM MST printer PDF is idle. enabled since Sun 09 Mar 2008 10:28:04 PM MST ]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ enscript /etc/passwd lpr: Error - no default destination available. [ 1 pages * 1 copy ] sent to printer ]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ info enscript [?1h=[?1049h[H[2J[59;1HWelcome to Info version 4.11. Type ? for help, m for menu item.[1;1HFile: enscript.info, Node: Top, Next: Introduction, Prev: (dir), Up: (dir)[3;1HGNU enscript[4;1H************[6;1H This file documents the GNU enscript program. This edition documents[7;1Hversion 1.6.4.[9;1H* Menu:[11;1H* Introduction::[12;1H* Invoking Enscript::[13;1H* Basic Printing::[14;1H* Advanced Usage::[15;1H* Configuration Files::[16;1H* Customization::[17;1H* The states Program::[18;1H* Writing New Highlighting Definitions::[19;1H* Index::[58;1H[7m--zz-Info: (enscript.info.gz)Top, 20 lines --All-----------------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting first menu item...[1;29HIntroduction, Next: Invoking Enscript, Prev: Top, Up: Top[3;1HIntroduction[6;4H* overall[K[7;1H[K[8;1H * design[9;1H[K[11;1H[K[12;1H[K[13;1H[K[14;1H[K[15;1H[K[16;1H[K[17;1H[K[18;1H[K[19;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Introduction, 9 lines --All---------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;31Hvoking Enscript, Next: Basic Printing, Prev: Introduction, Up: Top[3;3Hvoking Enscript[4;13H*****[6;1H[K[8;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Invoking Enscript, 5 lines --All----------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HBasic Printing, Next: Advanced Usage, Prev: Invoking Enscript, Up: Top[3;1HBasic Printing[K[4;15H[K[6;1H* Menu:[8;1H* Input Encodings::[9;1H* Selecting Fonts::[10;1H* Page Headers::[11;1H* Page Handling::[12;1H* Highlighting::[58;1H[7m--zz-Info: (enscript.info.gz)Basic Printing, 13 lines --All------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting first menu item...[1;29HInput Encodings, Next: Selecting Fonts, Prev: Basic Printing, Up: Basic Printing[3;1HInput Encodings[4;1H===============[6;1H[K[8;1H[K[9;1H[K[10;1H[K[11;1H[K[12;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Input Encodings, 5 lines --All------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HSelecting Fonts, Next: Page Headers, Prev: Input Encodings, Up: Basic Printing[K[3;1HSelecting Fonts[58;1H[7m--zz-Info: (enscript.info.gz)Selecting Fonts, 5 lines --All------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HPage Headers, Next: Page Handling, Prev: Selecting Fonts, Up: Basic Printing[K[3;1HPage Headers[K[4;13H[K[58;1H[7m--zz-Info: (enscript.info.gz)Page Headers, 5 lines --All---------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;35Handling, Next: Highlighting, Prev: Page Headers, Up: Basic Printing[K[3;7Handling[4;13H=[6;1H* Menu:[8;1H* Page Orientation::[9;1H* N-up Printing::[10;1H* Fitting Text to Page::[58;1H[7m--zz-Info: (enscript.info.gz)Page Handling, 11 lines --All-------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting first menu item...[1;34HOrientation, Next: N-up Printing, Prev: Page Handling, Up: Page Handling[3;6HOrientation[4;1H----------------[6;1H[K[8;1H[K[9;1H[K[10;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Page Orientation, 5 lines --All-----------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HN-up Printing, Next: Fitting Text to Page, Prev: Page Orientation, Up: Page Handling[3;1HN-up Printing[K[4;14H[K[58;1H[7m--zz-Info: (enscript.info.gz)N-up Printing, 5 lines --All--------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HFitting Text to Page, Prev: N-up Printing, Up: Page Handling[K[3;1HFitting Text to Page[4;14H-------[58;1H[7m--zz-Info: (enscript.info.gz)Fitting Text to Page, 5 lines --All-------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HMoving Up 1 time(s), then Next.[1;29HHighlighting, Prev: Page Handling, Up: Basic Printing[K[3;1HHighlighting[K[4;1H============[K[6;1H* Menu:[8;1H* Different Output Languages::[58;1H[7m--zz-Info: (enscript.info.gz)Highlighting, 9 lines --All---------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting first menu item...[1;29HDifferent Output Languages, Prev: Highlighting, Up: Highlighting[3;1HDifferent Output Languages[4;1H--------------------------[6;1H[K[8;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Different Output Languages, 5 lines --All-------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HMoving Up 2 time(s), then Next.[1;29HAdvanced Usage, Next: Configuration Files, Prev: Basic Printing, Up: Top[3;1HAdvanced Usage[K[4;1H**************[K[6;1H* Menu:[8;1H* Selecting Pages::[9;1H* Escape Sequences::[10;1H* Input Filters::[11;1H* Slice Printing::[12;1H* PostScript Printer Controlling::[13;1H* Pass-Through Mode::[58;1H[7m--zz-Info: (enscript.info.gz)Advanced Usage, 14 lines --All------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting first menu item...[1;29HSelecting Pages, Next: Escape Sequences, Prev: Advanced Usage, Up: Advanced Usage[3;1HSelecting Pages[4;1H===============[6;1H[K[8;1H[K[9;1H[K[10;1H[K[11;1H[K[12;1H[K[13;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Selecting Pages, 5 lines --All------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HEscape Sequences, Next: Input Filters, Prev: Selecting Pages, Up: Advanced Usage[K[3;1HEscape Sequences[4;16H=[58;1H[7m--zz-Info: (enscript.info.gz)Escape Sequences, 5 lines --All-----------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HInput Filters, Next: Slice Printing, Prev: Escape Sequences, Up: Advanced Usage[K[3;1HInput Filters[K[4;14H[K[58;1H[7m--zz-Info: (enscript.info.gz)Input Filters, 5 lines --All--------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HSlice Printing, Next: PostScript Printer Controlling, Prev: Input Filters, Up: Advanced Usage[3;1HSlice Printing[4;14H=[58;1H[7m--zz-Info: (enscript.info.gz)Slice Printing, 5 lines --All-------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HPostScript Printer Controlling, Next: Pass-Through Mode, Prev: Slice Printing, Up: Advanced Usage[3;1HPostScript Printer Controlling[4;15H================[58;1H[7m--zz-Info: (enscript.info.gz)PostScript Printer Controlling, 5 lines --All---------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;30Hass-Through Mode, Prev: PostScript Printer Controlling, Up: Advanced Usage[K[3;2Hass-Through Mode[K[4;18H[K[58;1H[7m--zz-Info: (enscript.info.gz)Pass-Through Mode, 5 lines --All----------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HMoving Up 1 time(s), then Next.[1;29HConfiguration Files, Next: Customization, Prev: Advanced Usage, Up: Top[K[3;1HConfiguration Files[4;1H*******************[58;1H[7m--zz-Info: (enscript.info.gz)Configuration Files, 5 lines --All--------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;30Hustomization, Next: The states Program, Prev: Configuration Files, Up: Top[3;2Hustomization[K[4;14H[K[6;1H* Menu:[8;1H* Output Media::[9;1H* User-Defined Fancy Headers::[58;1H[7m--zz-Info: (enscript.info.gz)Customization, 10 lines --All-------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting first menu item...[1;29HOutput Media, Next: User-Defined Fancy Headers, Prev: Customization, Up: Customization[3;1HOutput Media[K[4;1H============[K[6;1H[K[8;1H[K[9;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Output Media, 5 lines --All---------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HUser-Defined Fancy Headers, Prev: Output Media, Up: Customization[K[3;1HUser-Defined Fancy Headers[4;13H==============[58;1H[7m--zz-Info: (enscript.info.gz)User-Defined Fancy Headers, 5 lines --All-------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HMoving Up 1 time(s), then Next.[1;29HThe states Program, Next: Writing New Highlighting Definitions, Prev: Customization, Up: Top[3;1HThe `states' Program[K[4;1H********************[K[58;1H[7m--zz-Info: (enscript.info.gz)The states Program, 5 lines --All---------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HWriting New Highlighting Definitions, Next: Index, Prev: The states Program, Up: Top[K[3;1HWriting New Highlighting Definitions[4;21H****************[6;1H The highlighting works in three separate phases. First, the[7;1H"highlighing rules" process the input stream and parse it into logical[8;1Hcomponents. The components are called "faces". A face presents one[9;1Hlogical component of the input language, for example, a keyword, a[10;1Hcomment, etc.. The enscript's highlighting model defines the following[11;1Hfaces:[13;1Hbold[14;1Hitalic[15;1Hbold_italic[16;1H Hard-coded faces for the bold, italic, and bold-italice text types.[17;1H These faces define the exact presentation of the face font, so the[18;1H style files have very little power in customizing their outlook.[19;1H These faces should be avoided as much as possible.[21;1Hcomment[22;1H A comment, normally in a programming language.[24;1Hfunction_name[25;1H A function name. The function names are normally recognized from[26;1H function definitions, not from an use of the function.[28;1Hvariable_name[29;1H A variable name. The variable names are normally recognized from[30;1H function, type, and variable definitions.[32;1Hkeyword[33;1H A reserved keyword. Normally, all occurrences of the keywords are[34;1H recognized.[36;1Hreference[37;1H A reference to another location in a file or to another file or[38;1H resource. For example, in the C-language, the goto targets are[39;1H references.[41;1Hstring[42;1H A string literal.[44;1Hbuiltin[45;1H A builtin function or property. Normally, all occurrences of the[46;1H builtins are recognized.[48;1Htype[49;1H A type specifier. The types are normally recognized from function,[50;1H type, and variable definitions.[52;1H As the second step, the "output style" specifies how the faces are[53;1Hpresented in the generated output. Each face has the following[54;1Hproperties:[56;1Hfontname[57;1H The PostScript font name of the the font that is used for the face.[58;1H[7m--zz-Info: (enscript.info.gz)Writing New Highlighting Definitions, 86 lines --Top--------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[1;1Hfontname[K[2;1H The PostScript font name of the the font that is used for the face.[3;1H This property is used only for the PostScript outputs.[4;1H[K[5;1Hboldp[6;4H A boolean flag which tells whether the face should be printed in[7;1H bold font. This property is used for all output languages except[8;1H for the PostScript which uses the fontname property.[K[9;1H[K[10;1Hitalicp[K[11;1H A boolean flag which tells whether the face shuold be printed with[12;1H italic font. This property is used for all output languages[13;1H except for the PostScript which uses the fontname property.[14;1H[K[15;1Hfg_color[K[16;6HThe foreground color of the face.[K[17;1H[K[18;1Hbg_color[K[19;9H background color of the face. This property is not[20;1H implemented on all output languages.[21;1H[K[22;4HFinally, the "output language" describes how the faces and other[23;1Htext are presented in the output language. The output language defines[24;1Ha set of functions which are called to generate the output.[25;1H[K[26;1H* Menu:[K[28;1H* Highlighting Rules::[29;1H* Styles::[K[30;1H* Output Languages::[K[32;1H[K[33;1H[K[34;1H[K[36;1H[K[37;1H[K[38;1H[K[39;1H[K[41;1H[K[42;1H[K[44;1H[K[45;1H[K[46;1H[K[48;1H[K[49;1H[K[50;1H[K[52;1H[K[53;1H[K[54;1H[K[56;1H[K[57;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Writing New Highlighting Definitions, 86 lines --Bot--------------------------------------------------------------------------------------------------[0m[1;1H[59;1HSelecting first menu item...[1;1HFile: enscript.info, Node: Highlighting Rules, Next: Styles, Prev: Writing New Highlighting Definitions, Up: Writing New Highlighting Definitions[2;1H[K[3;1HHighlighting Rules[K[4;1H==================[5;1H[K[6;1H[K[7;1H[K[8;1H[K[10;1H[K[11;1H[K[12;1H[K[13;1H[K[15;1H[K[16;1H[K[18;1H[K[19;1H[K[20;1H[K[22;1H[K[23;1H[K[24;1H[K[26;1H[K[28;1H[K[29;1H[K[30;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Highlighting Rules, 5 lines --All---------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HStyles, Next: Output Languages, Prev: Highlighting Rules, Up: Writing New Highlighting Definitions[K[3;1HStyles[K[4;7H[K[58;1H[7m--zz-Info: (enscript.info.gz)Styles, 5 lines --All---------------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting Next node...[1;29HOutput Languages, Prev: Styles, Up: Writing New Highlighting Definitions[K[3;1HOutput Languages[4;7H==========[6;1H - Function: map_color (r, g, b)[8;1H - Function: language_print (string)[10;1H - Function: language_symbol (symbol)[12;1H - Function: header ()[14;1H - Function: trailer ()[16;1H - Function: face_on (face)[18;1H - Function: face_off (face)[20;1H - Variable: LANGUAGE_SPECIALS[22;1H The following example creates a new output language `simple_html'[23;1Hthat creates simple HTML outputs. The output language is defined in a[24;1Hfile called `lang_simple_html.st'. The file must define a state called[25;1H`lang_simple_html'. The file can be located in any directory that is[26;1Hin the load path of the states program.[28;1H The output language definitions are defined in the `BEGIN' block of[29;1Hthe `lang_simple_html' state. Please, note that the `BEGIN' block is[30;1Hended with a `return'-statement. This statement will return the[31;1Hcontrol to the calling state that is the start state of the enscript[32;1Hhighlight program. If the `return'-statement was omitted, the states[33;1Hwould start processing the input with the `lang_simple_html' state[34;1Hwhich is obviously a wrong choice.[36;1H state lang_simple_html[37;1H {[38;1H BEGIN {[39;1H sub map_color (r, g, b)[40;1H {[41;1H return sprintf ("#%02X%02X%02X", r, g, b);[42;1H }[43;1H [44;1H sub language_print (str)[45;1H {[46;1H str = regsuball (str, /\&/, "&");[47;1H str = regsuball (str, /</, "<");[48;1H str = regsuball (str, />/, ">");[49;1H str = regsuball (str, /\"/, """);[50;1H print (str);[51;1H }[52;1H [53;1H sub language_symbol (symbol)[54;1H {[55;1H return false;[56;1H }[57;1H [58;1H[7m--zz-Info: (enscript.info.gz)Output Languages, 94 lines --Top----------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[1;1H }[K[2;1H [3;1H sub header ()[4;1H {[K[5;1H print ("<html>\n<head>\n<title>Simple HTML Output</title>\n");[6;2H print ("</head>\n<body>\n");[7;1H }[8;2H [K[9;1H sub trailer ()[10;2H {[K[11;1H print ("</body>\n</html>\n");[12;2H }[K[13;1H [14;2H sub fase_on (face)[15;1H {[16;2H if (face(boldp])[17;1H print ("<B>");[18;2H if (face(italicp])[19;1H print ("<I>");[20;2H if (face[fg_color])[21;1H print ("<FONT COLOR=\", face[fg_color], "\">");[22;4H }[K[23;1H [K[24;1H sub face_off (face)[K[25;1H {[K[26;1H if (face[fg_color])[K[27;1H print ("</FONT>");[28;4H if (face[italicp])[K[29;1H print ("</I>");[K[30;1H if (face[boldp])[K[31;1H print ("</B>");[K[32;1H }[K[33;1H [K[34;1H LANGUAGE_SPECIALS = /[<>\&\"]/;[35;1H [36;6H return;[K[37;6H }[38;6H}[K[39;1H[K[40;1H[K[41;1H[K[42;1H[K[43;1H[K[44;1H[K[45;1H[K[46;1H[K[47;1H[K[48;1H[K[49;1H[K[50;1H[K[51;1H[K[52;1H[K[53;1H[K[54;1H[K[55;1H[K[56;1H[K[57;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Output Languages, 94 lines --Bot----------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1HMoving Up 1 time(s), then Next.[1;1HFile: enscript.info, Node: Index, Prev: Writing New Highlighting Definitions, Up: Top[2;1H[K[3;1HIndex[K[4;1H*****[K[5;1H[K[6;1H* Menu:[K[7;1H[K[8;1H* face_off: Output Languages.[9;1H* face_on: Output Languages.[10;1H* header: Output Languages.[11;1H* language_print: Output Languages.[12;1H* LANGUAGE_SPECIALS: Output Languages.[13;1H* language_symbol: Output Languages.[14;1H* map_color: Output Languages.[15;1H* trailer: Output Languages.[16;1H[K[17;1H[K[18;1H[K[19;1H[K[20;1H[K[21;1H[K[22;1H[K[23;1H[K[24;1H[K[25;1H[K[26;1H[K[27;1H[K[28;1H[K[29;1H[K[30;1H[K[31;1H[K[32;1H[K[33;1H[K[34;1H[K[35;1H[K[36;1H[K[37;1H[K[38;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Index, 17 lines --All---------------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting first menu item...[1;29HOutput Languages, Prev: Styles, Up: Writing New Highlighting Definitions[3;1HOutput Languages[4;1H================[6;1H - Function: map_color (r, g, b)[8;1H - Function: language_print (string)[K[9;1H[K[10;1H - Function: language_symbol (symbol)[K[11;1H[K[12;1H - Function: header ()[K[13;1H[K[14;1H - Function: trailer ()[K[15;1H[K[16;1H - Function: face_on (face)[18;1H - Function: face_off (face)[20;1H - Variable: LANGUAGE_SPECIALS[22;1H The following example creates a new output language `simple_html'[23;1Hthat creates simple HTML outputs. The output language is defined in a[24;1Hfile called `lang_simple_html.st'. The file must define a state called[25;1H`lang_simple_html'. The file can be located in any directory that is[26;1Hin the load path of the states program.[28;1H The output language definitions are defined in the `BEGIN' block of[29;1Hthe `lang_simple_html' state. Please, note that the `BEGIN' block is[30;1Hended with a `return'-statement. This statement will return the[31;1Hcontrol to the calling state that is the start state of the enscript[32;1Hhighlight program. If the `return'-statement was omitted, the states[33;1Hwould start processing the input with the `lang_simple_html' state[34;1Hwhich is obviously a wrong choice.[36;1H state lang_simple_html[37;1H {[38;1H BEGIN {[39;1H sub map_color (r, g, b)[40;1H {[41;1H return sprintf ("#%02X%02X%02X", r, g, b);[42;1H }[43;1H [44;1H sub language_print (str)[45;1H {[46;1H str = regsuball (str, /\&/, "&");[47;1H str = regsuball (str, /</, "<");[48;1H str = regsuball (str, />/, ">");[49;1H str = regsuball (str, /\"/, """);[50;1H print (str);[51;1H }[52;1H [53;1H sub language_symbol (symbol)[54;1H {[55;1H return false;[56;1H }[57;1H [58;1H[7m--zz-Info: (enscript.info.gz)Output Languages, 94 lines --Top----------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[1;1H }[K[2;1H [3;1H sub header ()[4;1H {[K[5;1H print ("<html>\n<head>\n<title>Simple HTML Output</title>\n");[6;2H print ("</head>\n<body>\n");[7;1H }[8;2H [K[9;1H sub trailer ()[10;2H {[K[11;1H print ("</body>\n</html>\n");[12;2H }[K[13;1H [14;2H sub fase_on (face)[15;1H {[16;2H if (face(boldp])[17;1H print ("<B>");[18;2H if (face(italicp])[19;1H print ("<I>");[20;2H if (face[fg_color])[21;1H print ("<FONT COLOR=\", face[fg_color], "\">");[22;4H }[K[23;1H [K[24;1H sub face_off (face)[K[25;1H {[K[26;1H if (face[fg_color])[K[27;1H print ("</FONT>");[28;4H if (face[italicp])[K[29;1H print ("</I>");[K[30;1H if (face[boldp])[K[31;1H print ("</B>");[K[32;1H }[K[33;1H [K[34;1H LANGUAGE_SPECIALS = /[<>\&\"]/;[35;1H [36;6H return;[K[37;6H }[38;6H}[K[39;1H[K[40;1H[K[41;1H[K[42;1H[K[43;1H[K[44;1H[K[45;1H[K[46;1H[K[47;1H[K[48;1H[K[49;1H[K[50;1H[K[51;1H[K[52;1H[K[53;1H[K[54;1H[K[55;1H[K[56;1H[K[57;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Output Languages, 94 lines --Bot----------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1HMoving Up 1 time(s), then Next.[1;1HFile: enscript.info, Node: Index, Prev: Writing New Highlighting Definitions, Up: Top[2;1H[K[3;1HIndex[K[4;1H*****[K[5;1H[K[6;1H* Menu:[K[7;1H[K[8;1H* face_off: Output Languages.[9;1H* face_on: Output Languages.[10;1H* header: Output Languages.[11;1H* language_print: Output Languages.[12;1H* LANGUAGE_SPECIALS: Output Languages.[13;1H* language_symbol: Output Languages.[14;1H* map_color: Output Languages.[15;1H* trailer: Output Languages.[16;1H[K[17;1H[K[18;1H[K[19;1H[K[20;1H[K[21;1H[K[22;1H[K[23;1H[K[24;1H[K[25;1H[K[26;1H[K[27;1H[K[28;1H[K[29;1H[K[30;1H[K[31;1H[K[32;1H[K[33;1H[K[34;1H[K[35;1H[K[36;1H[K[37;1H[K[38;1H[K[58;1H[7m--zz-Info: (enscript.info.gz)Index, 17 lines --All---------------------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1HSelecting first menu item...[1;29HOutput Languages, Prev: Styles, Up: Writing New Highlighting Definitions[3;1HOutput Languages[4;1H================[6;1H - Function: map_color (r, g, b)[8;1H - Function: language_print (string)[K[9;1H[K[10;1H - Function: language_symbol (symbol)[K[11;1H[K[12;1H - Function: header ()[K[13;1H[K[14;1H - Function: trailer ()[K[15;1H[K[16;1H - Function: face_on (face)[18;1H - Function: face_off (face)[20;1H - Variable: LANGUAGE_SPECIALS[22;1H The following example creates a new output language `simple_html'[23;1Hthat creates simple HTML outputs. The output language is defined in a[24;1Hfile called `lang_simple_html.st'. The file must define a state called[25;1H`lang_simple_html'. The file can be located in any directory that is[26;1Hin the load path of the states program.[28;1H The output language definitions are defined in the `BEGIN' block of[29;1Hthe `lang_simple_html' state. Please, note that the `BEGIN' block is[30;1Hended with a `return'-statement. This statement will return the[31;1Hcontrol to the calling state that is the start state of the enscript[32;1Hhighlight program. If the `return'-statement was omitted, the states[33;1Hwould start processing the input with the `lang_simple_html' state[34;1Hwhich is obviously a wrong choice.[36;1H state lang_simple_html[37;1H {[38;1H BEGIN {[39;1H sub map_color (r, g, b)[40;1H {[41;1H return sprintf ("#%02X%02X%02X", r, g, b);[42;1H }[43;1H [44;1H sub language_print (str)[45;1H {[46;1H str = regsuball (str, /\&/, "&");[47;1H str = regsuball (str, /</, "<");[48;1H str = regsuball (str, />/, ">");[49;1H str = regsuball (str, /\"/, """);[50;1H print (str);[51;1H }[52;1H [53;1H sub language_symbol (symbol)[54;1H {[55;1H return false;[56;1H }[57;1H [58;1H[7m--zz-Info: (enscript.info.gz)Output Languages, 94 lines --Top----------------------------------------------------------------------------------------------------------------------[0m[1;1H[59;1H[K[59;1H[K[?1l>[?1049l]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ enscript -v AFM: scanning path... AFM: reading font map "/usr/share/enscript/afm/font.map" lpr: Error - no default destination available. processing file ""... ]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ enscript -d HP_LaserJet_1020 /etc/passwd [ 1 pages * 1 copy ] sent to HP_LaserJet_1020 ]0;[EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ tail -f /var/log/messages Mar 10 10:59:39 slimline-alpha6 /usr/sbin/hplj1020: foo2zjs: ...read foo2zjs installation instructions and run ./getweb 1020 Mar 10 10:59:39 slimline-alpha6 /usr/sbin/hplj1020: foo2zjs: Missing HP LaserJet 1020 firmware file /usr/share/foo2zjs/firmware/sihp1020.dl Mar 10 10:59:39 slimline-alpha6 /usr/sbin/hplj1020: foo2zjs: ...read foo2zjs installation instructions and run ./getweb 1020 Mar 10 11:01:17 slimline-alpha6 kernel: [ 194.124178] audit(1205172077.131:3): operation="inode_permission" request_mask="a::" denied_mask="a::" name="/dev/tty" pid=6158 profile="/usr/sbin/cupsd" namespace="default" Mar 10 11:03:07 slimline-alpha6 kernel: [ 238.107090] usblp0: removed Mar 10 11:03:07 slimline-alpha6 kernel: [ 238.227536] audit(1205172187.560:4): operation="inode_permission" request_mask="::rw" denied_mask="::rw" name="/dev/tty" pid=6188 profile="/usr/sbin/cupsd" namespace="default" Mar 10 11:03:07 slimline-alpha6 kernel: [ 238.270891] audit(1205172187.672:5): operation="inode_permission" request_mask="::rw" denied_mask="::rw" name="/dev/tty" pid=6191 profile="/usr/sbin/cupsd" namespace="default" Mar 10 11:03:07 slimline-alpha6 foo2zjs-wrapper: foo2zjs-wrapper -P -z1 -L0 -r1200x600 -p1 -s7 -m1 -n1 Mar 10 11:03:10 slimline-alpha6 foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x6600 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000 Mar 10 11:03:10 slimline-alpha6 foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x6600 -p1 -m1 -n1 -d1 -s7 -z1 -u 192x96 -l 192x96 -L 0 -P [EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ [EMAIL PROTECTED]: [EMAIL PROTECTED]:~$ [EMAIL PROTECTED]: [EMAIL PROTECTED] -- [Hardy] alpha6 8.04 hp laserjet 1020 https://bugs.launchpad.net/bugs/199864 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs