[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

HP deskjet printer filter med æ, ø og å



Jeg har en HP Deskjet 890C, som ikke altid vil udskrive
æ, ø og å. Her er et filter, der via PCL sætter
printeren til at køre latin1 uden at gå igennem
ghostscript, så går det nemlig ret hurtigt at
udskrive tekst. Licensen er GNU. Brug programmet
som model for din eget printerfilter !

--------Brug:---------------------

cat latin1-tesktfil | dj | lpr _pdj

--------Oversættelse:-------------

gcc dj.c -o dj

=======================================================

/* dj.c - Af John B. Jacobsen - 18/3 2001 */

#include <stdio.h>

#define ESC       '\033'

main()
{

char latin1[] = "(0N";		/* latin1 */

char lf = 10;
char ff = 12;
char cr = 13;
char EOF = 26;

int c;
	
	putc(ESC,stdout);
	printf("%s",latin1);
	while ((c = getc(stdin)) != EOF) {
		if  (c != EOF) 
			putc(c,stdout);
		if ( c == lf )
			putc(cr,stdout);	
	}
	putc(ff,stdout);
}



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *