Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!funic!funic.funet.fi!jta From: jta@nic.funet.fi (Juha Takala) Newsgroups: comp.unix.sysv386 Subject: Re: Printing problem with PC-INTERFACE Message-ID: Date: 28 Dec 90 09:56:31 GMT References: <165@rubys.UUCP> Sender: usenet@nic.funet.fi Organization: Finnish Academic and Research Network Project - FUNET Lines: 38 In-Reply-To: dnb@rubys.UUCP's message of 22 Dec 90 04:56:09 GMT From: dnb@rubys.UUCP (Dave Buonomo) Newsgroups: comp.unix.sysv386 Keywords: PC-INTERFACE, printing problem Date: 22 Dec 90 04:56:09 GMT Organization: Ruby Systems (rubys) Rockville, MD My problem is this: when I try to print some documents, created with Word Perfect v4.2, on the HP LaserJet, it will print with some lines pulled to the left of the margin. Attempting to print this same document on the C.ITOH dot matrix or the same HP LaserJet directly connected to the PC/XT, results in the documenting printing perfectly! This souds familiar. We had same problems. My laserjet is (normally) configured to map LF --> CR+LF (esc & k 2 G). This makes UNIX text files print correctly, and makes no harm to normal DOS text files. This is done at the beginning of every print job in the interface script. WP does not change the setting. But with WP: when some line is indeted *after a short line*, WP emits one LF, and some BS's, to step to the correct position. Then it starts printing text. Now it happens, that the LF brings the printing position to the beg of line, you know the rest... To fix the problem, we added into WP's print job setup an ESC sequence to MAP LF --> LF, CR --> CR (esc & k 0 G). Try this. To find out what actually goes to lp, you can change the printer -command (normally in the PC's AUTOEXEC.BAT) to something like: printer lpt1 host "cat > /tmp/foo" /t15 Then you can study /tmp/foo on the server. -juha -- Juha Takala (jta@sah.vtt.fi) tel.: +358-0-456 6415 fax: +358-0-435 67014 Technical Research Centre, Laboratory of Electrical and Automation Engineering Otakaari 7 B, 02150 Espoo, FINLAND