[SuSE Linux] apsfilter
How can I setup CR->CRLF conversation Milan Hromada <A HREF="mailto:mhromada@elas.sk">mailto:mhromada@elas.sk</A> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
I just had this problem and played with it for a little while... What I ended up doing was uncommenting the following line in apsfilterrc PRINT_RAW_SETUP_PRINTER='\033&k2G\033(s2Q\033&k5W\033&l0L\033&a7L\033(s12H' I also had to change the 'Feature' (further down in apsfilterrc) because the printout started printing sideways... Hope that helps... Alan Melick, NOC Engineer II Fuse Internet Access On Mon, 1 Feb 1999, Unix Technik wrote:
How can I setup CR->CRLF conversation
Milan Hromada <A HREF="mailto:mhromada@elas.sk">mailto:mhromada@elas.sk</A>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Don't want to work with HP Laserjet5N It seems that apsfilter don't work because this printer does not want to print .ps file. Ghostscript runs fine when I do gs -sDEVICE=lj5mono -r600x600 -sOutputFile=f.pcl f.ps and then I print f.pcl. On Mon, 1 Feb 1999, Alan Melick wrote:
I just had this problem and played with it for a little while... What I ended up doing was uncommenting the following line in apsfilterrc
PRINT_RAW_SETUP_PRINTER='\033&k2G\033(s2Q\033&k5W\033&l0L\033&a7L\033(s12H'
I also had to change the 'Feature' (further down in apsfilterrc) because the printout started printing sideways...
Hope that helps...
Alan Melick, NOC Engineer II Fuse Internet Access
On Mon, 1 Feb 1999, Unix Technik wrote:
How can I setup CR->CRLF conversation
Milan Hromada <A HREF="mailto:mhromada@elas.sk">mailto:mhromada@elas.sk</A>
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
On Mon, 01 Feb 1999, you wrote:
How can I setup CR->CRLF conversation
I made this simple tcl script 2 days ago (so that I didn't test it too much) which converts unix eol (\r) to dos eol (\n\r). It creates a filename.txt from filename.[ext]. You can use it if you like (of course there is a dos2unix tcl script, too). *************************************************** #! /usr/bin/tclsh # Converts unix file [eol \n] to dos file [eol \r\n] proc doconv {string} { set FileName [file join [pwd] $string] set FileNameDos "[file root $FileName].txt" set FIdWrite [open $FileNameDos w] set FIdRead [open $FileName r] fconfigure $FIdWrite -translation crlf puts -nonewline $FIdWrite [read $FIdRead] close $FIdRead close $FIdWrite if {[file size $FileNameDos] <= 0} { puts stdout "Error!" } } if {[regexp {[^-a-zA-Z0-9._]+| [hH]*} $argv] || [string compare $argv ""] == 0} { puts stdout {Usage: unix2dos filename} } else { doconv $argv } - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (3)
-
alan@fuse.net
-
milan@elas.sk
-
paspartu@uni.net