From 9c8dd66338ccd1acdcc9074900c4df9588883ec123d56beabca03311b929af96 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Tue, 15 Jul 2008 19:14:13 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/a2ps?expand=0&rev=7 --- a2ps-4.13-utf8.patch | 150 ++++++++++++++++++++++++++ a2ps-4.13.dif | 250 ++++++++++++++++++++++--------------------- a2ps.changes | 5 + a2ps.sh | 115 -------------------- a2ps.spec | 12 +-- 5 files changed, 291 insertions(+), 241 deletions(-) create mode 100644 a2ps-4.13-utf8.patch delete mode 100644 a2ps.sh diff --git a/a2ps-4.13-utf8.patch b/a2ps-4.13-utf8.patch new file mode 100644 index 0000000..da447d4 --- /dev/null +++ b/a2ps-4.13-utf8.patch @@ -0,0 +1,150 @@ +--- etc/a2ps_cfg.in ++++ etc/a2ps_cfg.in 2008-07-15 14:12:03.044199079 +0200 +@@ -266,6 +266,9 @@ $3p<-$3p> $4l# lines\n|| + # rm is done by a2ps itself. No need to quote. + # + ++########## UTF-8 filter for patched a2ps only ++Delegation: utf8 utf8:plain iconv -c -f UTF-8 -t $x ++ + ########## Compressed files + # A compressed file should be decompressed and processed by a2ps + # A consequence is that the decompressed file may be delegated. +--- sheets/sheets.map ++++ sheets/sheets.map 2008-07-15 17:24:53.922318567 +0200 +@@ -144,6 +144,9 @@ gmake: /GNUmakefile/ /*\/GNUmakefile/ + plain: /*.doc/ + /*.txt/ + ++# UTF-8 type for patched a2ps only ++utf8: ++ + # Ada files + ada: /*.ad[abs]/ + +--- src/buffer.c ++++ src/buffer.c 2008-07-15 17:11:53.197276387 +0200 +@@ -193,9 +193,24 @@ buffer_release (buffer_t * buffer) + { + /* VALUE is malloc'd only if BUFFER->LOWER_CASE */ + if (buffer->lower_case) +- free (buffer->value); ++ { ++ free (buffer->value); ++ buffer->value = NULL; ++ buffer->allocsize = 0; ++ } + /* I don't know how this one should be used */ +- /* obstack_free (&buffer->obstack, NULL); */ ++ if (buffer->buf) ++ { ++ free(buffer->buf); ++ buffer->buf = NULL; ++ buffer->bufsize = 0; ++ buffer->bufoffset = 0; ++ } ++ if (buffer->len == 0) ++ { ++ buffer->content = obstack_finish(&buffer->obstack); ++ } ++ obstack_free (&buffer->obstack, NULL); + } + + void +--- src/generate.c ++++ src/generate.c 2008-07-15 17:12:02.778172717 +0200 +@@ -35,7 +35,7 @@ char *sample_tmpname = NULL; + */ + enum style_kind_e + { +- no_style, binary, sshparser, unprintable, delegate ++ no_style, binary, sshparser, unprintable, delegate, utf8 + }; + + static enum style_kind_e +@@ -49,6 +49,8 @@ string_to_style_kind (const char * strin + return no_style; + else if (strequ (string, "delegate")) + return delegate; ++ else if (strequ (string, "utf8")) ++ return utf8; + return sshparser; + } + /************************************************************************/ +@@ -360,6 +362,76 @@ print (uchar * filename, int * native_jo + msg_file_pages_printed (job, _("plain")); + (*native_jobs)++; + break; ++ ++ case utf8: ++ { ++ char * argv[21], * ptr; ++ int n, argc, pfd[2]; ++ pid_t pid; ++ ++ if ((contract = get_subcontract(file_job->type, "plain")) == (struct delegation*)0) ++ goto plain_print; ++ ++ argc = 1; ++ argv[0] = ptr = contract->command; ++ while ((ptr = (strchr(ptr, ' ')))) ++ { ++ *ptr++ = '\0'; ++ if (argc < 20) ++ argv[argc++] = ptr; ++ } ++ ++ for (n = 0; n < argc; n++) ++ if (strstr(argv[n], "$x")) ++ argv[n] = job->requested_encoding_name; ++ argv[argc] = (char*)0; ++ ++ if (pipe(pfd) < 0) ++ { ++ message (msg_report2, (stderr, _("[%s (%s): failed. Ignored]\n"), file_job->name, buf)); ++ break; ++ } ++ ++ switch ((pid = fork())) ++ { ++ case -1: ++ close(pfd[0]); ++ close(pfd[1]); ++ goto err; ++ break; ++ case 0: ++ if ((n = fileno(input_buffer->stream)) == 0) ++ { ++ char * tmpfile = NULL; ++ FILE * tmp; ++ tempname_ensure(tmpfile); ++ buffer_save(input_buffer, tmpfile); ++ tmp = xrfopen(tmpfile); ++ n = fileno(tmp); ++ free(tmpfile); ++ } ++ close(0); ++ if (dup(n) < 0) ++ goto err; ++ close(1); ++ if (dup(pfd[1]) < 0) ++ goto err; ++ close(n); ++ close(pfd[0]); ++ close(pfd[1]); ++ execvp(argv[0], argv); ++ err: ++ message (msg_report2, (stderr, _("[%s (%s): failed. Ignored]\n"), file_job->name, buf)); ++ break; ++ default: ++ close(pfd[1]); ++ input_buffer->bufoffset = input_buffer->bufsize; ++ input_buffer->stream = fdopen(pfd[0], "r"); ++ input_buffer->pipe_p = true; ++ goto plain_print; ++ } ++ break; ++ } + } + + input_end (input_buffer); diff --git a/a2ps-4.13.dif b/a2ps-4.13.dif index 27ce379..227e6c5 100644 --- a/a2ps-4.13.dif +++ b/a2ps-4.13.dif @@ -1,6 +1,6 @@ --- .pkgextract +++ .pkgextract 2006-02-23 13:05:17.000000000 +0100 -@@ -0,0 +1,8 @@ +@@ -0,0 +1,9 @@ +patch -p0 -s --suffix=.ogon < ../a2ps-4.13-ogonkify.patch +patch -p0 -s --suffix=.secu < ../a2ps-4.13-security.patch +patch -p1 -s --suffix=.tmpf < ../a2ps-4.13-tempfile.patch @@ -9,9 +9,10 @@ +patch -p1 -s --suffix=.incl < ../a2ps-4.13-include.patch +patch -p0 -s --suffix=.acro < ../a2ps-4.13-acroread.patch +patch -p0 -s --suffix=.base < ../a2ps-4.13-base.patch ---- configure.in -+++ configure.in 2006-05-19 12:34:39.000000000 +0200 -@@ -197,8 +197,9 @@ ++patch -p0 -s --suffix=.utf8 < ../a2ps-4.13-utf8.patch +--- configure ++++ configure 2006-02-23 13:05:17.000000000 +0100 +@@ -8448,8 +8448,9 @@ echo "configure:8448: checking for PostS # Try to find some PostScript fonts. # Find out if ghostscript is installed ac_psfont_path= @@ -23,9 +24,9 @@ do if test "cd $ac_dir 2>/dev/null && echo *.afm"; then ac_psfont_path="$ac_psfont_path:$ac_dir"; ---- configure -+++ configure 2006-02-23 13:05:17.000000000 +0100 -@@ -8448,8 +8448,9 @@ +--- configure.in ++++ configure.in 2006-05-19 12:34:39.000000000 +0200 +@@ -197,8 +197,9 @@ AC_MSG_CHECKING(for PostScript fonts pat # Try to find some PostScript fonts. # Find out if ghostscript is installed ac_psfont_path= @@ -39,7 +40,7 @@ ac_psfont_path="$ac_psfont_path:$ac_dir"; --- afm/fonts.map +++ afm/fonts.map 2006-02-23 13:05:17.000000000 +0100 -@@ -43,6 +43,14 @@ +@@ -43,6 +43,14 @@ Bookman-Demi pbkd Bookman-DemiItalic pbkdi Bookman-Light pbkl Bookman-LightItalic pbkli @@ -54,7 +55,7 @@ Courier pcrr Courier-Bold pcrb Courier-Bold-Comp pcrb-c -@@ -55,6 +63,9 @@ +@@ -55,6 +63,9 @@ Courier-Oblique pcrro Courier-Oblique-Comp pcrro-c Courier-Oblique-Ogonki pcrro-o Courier-Ogonki pcrr-o @@ -64,7 +65,7 @@ Helvetica phvr Helvetica-Bold phvb Helvetica-Bold-Comp phvb-c -@@ -75,11 +86,25 @@ +@@ -75,11 +86,25 @@ NewCenturySchlbk-Bold pncb NewCenturySchlbk-BoldItalic pncbi NewCenturySchlbk-Italic pncri NewCenturySchlbk-Roman pncr @@ -90,7 +91,7 @@ Symbol psyr Times-Bold ptmb Times-Bold-Comp ptmb-c -@@ -93,5 +118,20 @@ +@@ -93,5 +118,20 @@ Times-Italic-Ogonki ptmri-o Times-Roman ptmr Times-Roman-Comp ptmr-c Times-Roman-Ogonki ptmr-o @@ -113,7 +114,7 @@ ZapfDingbats pzdr --- afm/pcrb.afm +++ afm/pcrb.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 633 XHeight 487 Descender -257 Ascender 674 @@ -122,7 +123,7 @@ C 32 ; WX 600 ; N space ; B 500 -100 700 100 ; C 33 ; WX 600 ; N exclam ; B 170 -65 430 689 ; C 34 ; WX 600 ; N quotedbl ; B 66 254 534 663 ; -@@ -255,6 +255,7 @@ +@@ -255,6 +255,7 @@ C -1 ; WX 600 ; N onehalf ; B -70 -65 67 C -1 ; WX 600 ; N onequarter ; B -70 -50 670 674 ; C -1 ; WX 600 ; N onesuperior ; B 100 140 500 674 ; C -1 ; WX 600 ; N otilde ; B -8 -65 608 657 ; @@ -130,7 +131,7 @@ C -1 ; WX 600 ; N overscore ; B -92 489 692 689 ; C -1 ; WX 600 ; N plusminus ; B -8 -50 608 610 ; C -1 ; WX 600 ; N prescription ; B -37 -50 669 633 ; -@@ -279,7 +280,7 @@ +@@ -279,7 +280,7 @@ C -1 ; WX 600 ; N yacute ; B -29 -257 62 C -1 ; WX 600 ; N ydieresis ; B -29 -257 629 631 ; C -1 ; WX 600 ; N zcaron ; B 35 -50 569 695 ; EndCharMetrics @@ -139,7 +140,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 0 146 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 0 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 0 146 ; -@@ -336,6 +337,7 @@ +@@ -336,6 +337,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 0 14 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 0 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 0 146 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 0 0 ; @@ -149,7 +150,7 @@ EndComposites --- afm/pcrbo.afm +++ afm/pcrbo.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 633 XHeight 487 Descender -257 Ascender 674 @@ -158,7 +159,7 @@ C 32 ; WX 600 ; N space ; B 500 -100 700 100 ; C 33 ; WX 600 ; N exclam ; B 197 -65 549 689 ; C 34 ; WX 600 ; N quotedbl ; B 171 254 654 663 ; -@@ -255,6 +255,7 @@ +@@ -255,6 +255,7 @@ C -1 ; WX 600 ; N onehalf ; B -14 -65 72 C -1 ; WX 600 ; N onequarter ; B -14 -50 741 674 ; C -1 ; WX 600 ; N onesuperior ; B 151 140 551 674 ; C -1 ; WX 600 ; N otilde ; B 34 -65 656 657 ; @@ -166,7 +167,7 @@ C -1 ; WX 600 ; N overscore ; B 33 489 817 689 ; C -1 ; WX 600 ; N plusminus ; B 3 -50 677 610 ; C -1 ; WX 600 ; N prescription ; B -26 -50 680 633 ; -@@ -279,7 +280,7 @@ +@@ -279,7 +280,7 @@ C -1 ; WX 600 ; N yacute ; B -62 -257 71 C -1 ; WX 600 ; N ydieresis ; B -62 -257 711 631 ; C -1 ; WX 600 ; N zcaron ; B 46 -50 651 695 ; EndCharMetrics @@ -175,7 +176,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 0 146 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 0 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 0 146 ; -@@ -336,6 +337,7 @@ +@@ -336,6 +337,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 0 14 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 0 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 0 146 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 0 0 ; @@ -185,7 +186,7 @@ EndComposites --- afm/pcrr.afm +++ afm/pcrr.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 583 XHeight 437 Descender -207 Ascender 624 @@ -194,7 +195,7 @@ C 32 ; WX 600 ; N space ; B 560 -40 640 40 ; C 33 ; WX 600 ; N exclam ; B 240 -5 360 639 ; C 34 ; WX 600 ; N quotedbl ; B 126 314 474 603 ; -@@ -255,6 +255,7 @@ +@@ -255,6 +255,7 @@ C -1 ; WX 600 ; N onehalf ; B -10 -20 61 C -1 ; WX 600 ; N onequarter ; B -10 -20 610 624 ; C -1 ; WX 600 ; N onesuperior ; B 160 200 440 624 ; C -1 ; WX 600 ; N otilde ; B 52 -35 548 597 ; @@ -202,7 +203,7 @@ C -1 ; WX 600 ; N overscore ; B -32 559 632 639 ; C -1 ; WX 600 ; N plusminus ; B 52 -20 548 550 ; C -1 ; WX 600 ; N prescription ; B 23 -20 609 583 ; -@@ -279,7 +280,7 @@ +@@ -279,7 +280,7 @@ C -1 ; WX 600 ; N yacute ; B 31 -207 569 C -1 ; WX 600 ; N ydieresis ; B 31 -207 569 571 ; C -1 ; WX 600 ; N zcaron ; B 95 -20 509 645 ; EndCharMetrics @@ -211,7 +212,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 0 146 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 0 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 0 146 ; -@@ -336,6 +337,7 @@ +@@ -336,6 +337,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 0 14 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 0 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 0 146 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 0 0 ; @@ -221,7 +222,7 @@ EndComposites --- afm/pcrro.afm +++ afm/pcrro.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 583 XHeight 437 Descender -207 Ascender 624 @@ -230,7 +231,7 @@ C 32 ; WX 600 ; N space ; B 560 -40 640 40 ; C 33 ; WX 600 ; N exclam ; B 257 -5 483 639 ; C 34 ; WX 600 ; N quotedbl ; B 231 314 594 603 ; -@@ -255,6 +255,7 @@ +@@ -255,6 +255,7 @@ C -1 ; WX 600 ; N onehalf ; B 46 -20 665 C -1 ; WX 600 ; N onequarter ; B 46 -20 681 624 ; C -1 ; WX 600 ; N onesuperior ; B 211 200 491 624 ; C -1 ; WX 600 ; N otilde ; B 91 -35 597 597 ; @@ -238,7 +239,7 @@ C -1 ; WX 600 ; N overscore ; B 95 559 759 639 ; C -1 ; WX 600 ; N plusminus ; B 56 -20 617 550 ; C -1 ; WX 600 ; N prescription ; B 27 -20 613 583 ; -@@ -279,7 +280,7 @@ +@@ -279,7 +280,7 @@ C -1 ; WX 600 ; N yacute ; B -4 -207 653 C -1 ; WX 600 ; N ydieresis ; B -4 -207 653 571 ; C -1 ; WX 600 ; N zcaron ; B 99 -20 593 645 ; EndCharMetrics @@ -247,7 +248,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 0 146 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 0 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 0 146 ; -@@ -336,6 +337,7 @@ +@@ -336,6 +337,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 0 14 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 0 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 0 146 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 0 0 ; @@ -257,7 +258,7 @@ EndComposites --- afm/phvb.afm +++ afm/phvb.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 729 XHeight 542 Descender -219 Ascender 729 @@ -266,7 +267,7 @@ C 32 ; WX 278 ; N space ; B 0 0 0 0 ; C 33 ; WX 333 ; N exclam ; B 112 0 262 729 ; C 34 ; WX 474 ; N quotedbl ; B 50 470 424 729 ; -@@ -231,6 +231,7 @@ +@@ -231,6 +231,7 @@ C -1 ; WX 834 ; N onehalf ; B 30 -20 803 C -1 ; WX 834 ; N onequarter ; B 30 -20 804 715 ; C -1 ; WX 333 ; N onesuperior ; B 46 284 247 709 ; C -1 ; WX 611 ; N otilde ; B 35 -23 569 729 ; @@ -274,7 +275,7 @@ C -1 ; WX 584 ; N plusminus ; B 40 0 544 674 ; C -1 ; WX 737 ; N registered ; B -14 -20 751 745 ; C -1 ; WX 556 ; N scaron ; B 29 -23 520 745 ; -@@ -370,7 +371,7 @@ +@@ -370,7 +371,7 @@ KPX y period -74 KPX y comma -74 EndKernPairs EndKernData @@ -283,7 +284,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 139 191 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 83 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 167 191 ; -@@ -427,6 +428,7 @@ +@@ -427,6 +428,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 200 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 146 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 222 191 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 139 0 ; @@ -293,7 +294,7 @@ EndComposites --- afm/phvbo.afm +++ afm/phvbo.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 729 XHeight 542 Descender -219 Ascender 729 @@ -302,7 +303,7 @@ C 32 ; WX 278 ; N space ; B 0 0 0 0 ; C 33 ; WX 333 ; N exclam ; B 112 0 417 729 ; C 34 ; WX 474 ; N quotedbl ; B 177 470 579 729 ; -@@ -231,6 +231,7 @@ +@@ -231,6 +231,7 @@ C -1 ; WX 834 ; N onehalf ; B 120 -20 87 C -1 ; WX 834 ; N onequarter ; B 151 -20 846 715 ; C -1 ; WX 333 ; N onesuperior ; B 169 284 398 709 ; C -1 ; WX 611 ; N otilde ; B 82 -23 639 729 ; @@ -310,7 +311,7 @@ C -1 ; WX 584 ; N plusminus ; B 40 0 639 674 ; C -1 ; WX 737 ; N registered ; B 55 -20 837 745 ; C -1 ; WX 556 ; N scaron ; B 60 -23 597 745 ; -@@ -368,7 +369,7 @@ +@@ -368,7 +369,7 @@ KPX y period -37 KPX y comma -37 EndKernPairs EndKernData @@ -319,7 +320,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 139 187 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 83 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 167 187 ; -@@ -425,6 +426,7 @@ +@@ -425,6 +426,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 194 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 139 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 222 187 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 139 0 ; @@ -329,7 +330,7 @@ EndComposites --- afm/phvr.afm +++ afm/phvr.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 729 XHeight 525 Descender -219 Ascender 729 @@ -338,7 +339,7 @@ C 32 ; WX 278 ; N space ; B 0 0 0 0 ; C 33 ; WX 278 ; N exclam ; B 124 0 208 729 ; C 34 ; WX 355 ; N quotedbl ; B 52 462 305 708 ; -@@ -231,6 +231,7 @@ +@@ -231,6 +231,7 @@ C -1 ; WX 834 ; N onehalf ; B 30 -21 804 C -1 ; WX 834 ; N onequarter ; B 30 -21 804 709 ; C -1 ; WX 333 ; N onesuperior ; B 60 284 219 709 ; C -1 ; WX 556 ; N otilde ; B 36 -23 510 716 ; @@ -346,7 +347,7 @@ C -1 ; WX 584 ; N plusminus ; B 40 0 544 618 ; C -1 ; WX 737 ; N registered ; B -13 -23 751 741 ; C -1 ; WX 500 ; N scaron ; B 34 -24 459 740 ; -@@ -374,7 +375,7 @@ +@@ -374,7 +375,7 @@ KPX y period -74 KPX y comma -74 EndKernPairs EndKernData @@ -355,7 +356,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 139 199 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 83 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 167 199 ; -@@ -431,6 +432,7 @@ +@@ -431,6 +432,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 200 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 117 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 222 199 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 111 0 ; @@ -365,7 +366,7 @@ EndComposites --- afm/phvro.afm +++ afm/phvro.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 729 XHeight 525 Descender -219 Ascender 729 @@ -374,7 +375,7 @@ C 32 ; WX 278 ; N space ; B 0 0 0 0 ; C 33 ; WX 278 ; N exclam ; B 124 0 363 729 ; C 34 ; WX 355 ; N quotedbl ; B 177 462 455 708 ; -@@ -231,6 +231,7 @@ +@@ -231,6 +231,7 @@ C -1 ; WX 834 ; N onehalf ; B 116 -21 86 C -1 ; WX 834 ; N onequarter ; B 147 -21 836 709 ; C -1 ; WX 333 ; N onesuperior ; B 184 284 370 709 ; C -1 ; WX 556 ; N otilde ; B 80 -23 583 716 ; @@ -382,7 +383,7 @@ C -1 ; WX 584 ; N plusminus ; B 40 0 621 618 ; C -1 ; WX 737 ; N registered ; B 55 -23 836 741 ; C -1 ; WX 500 ; N scaron ; B 61 -24 547 740 ; -@@ -367,7 +368,7 @@ +@@ -367,7 +368,7 @@ KPX y period -74 KPX y comma -74 EndKernPairs EndKernData @@ -391,7 +392,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 139 204 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 83 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 167 204 ; -@@ -424,6 +425,7 @@ +@@ -424,6 +425,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 194 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 111 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 222 204 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 111 0 ; @@ -401,7 +402,7 @@ EndComposites --- afm/ptmb.afm +++ afm/ptmb.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 681 XHeight 460 Descender -210 Ascender 670 @@ -410,7 +411,7 @@ C 32 ; WX 250 ; N space ; B 0 0 0 0 ; C 33 ; WX 333 ; N exclam ; B 84 -18 248 690 ; C 34 ; WX 555 ; N quotedbl ; B 67 371 425 690 ; -@@ -231,6 +231,7 @@ +@@ -231,6 +231,7 @@ C -1 ; WX 750 ; N onehalf ; B 30 -18 720 C -1 ; WX 750 ; N onequarter ; B 30 -18 720 690 ; C -1 ; WX 300 ; N onesuperior ; B 24 276 275 690 ; C -1 ; WX 500 ; N otilde ; B 25 -18 473 671 ; @@ -418,7 +419,7 @@ C -1 ; WX 570 ; N plusminus ; B 50 0 520 600 ; C -1 ; WX 747 ; N registered ; B 16 -17 730 690 ; C -1 ; WX 389 ; N scaron ; B 29 -17 359 690 ; -@@ -393,7 +394,7 @@ +@@ -393,7 +394,7 @@ KPX y period -55 KPX y comma -55 EndKernPairs EndKernData @@ -427,7 +428,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 167 219 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 55 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 111 219 ; -@@ -450,6 +451,7 @@ +@@ -450,6 +451,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 194 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 111 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 222 219 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 83 0 ; @@ -437,7 +438,7 @@ EndComposites --- afm/ptmbi.afm +++ afm/ptmbi.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 662 XHeight 458 Descender -203 Ascender 682 @@ -446,7 +447,7 @@ C 32 ; WX 250 ; N space ; B 0 0 0 0 ; C 33 ; WX 389 ; N exclam ; B 66 -13 367 676 ; C 34 ; WX 555 ; N quotedbl ; B 142 367 549 693 ; -@@ -231,6 +231,7 @@ +@@ -231,6 +231,7 @@ C -1 ; WX 750 ; N onehalf ; B 30 0 720 6 C -1 ; WX 750 ; N onequarter ; B 30 0 720 676 ; C -1 ; WX 300 ; N onesuperior ; B 17 270 283 676 ; C -1 ; WX 500 ; N otilde ; B 27 -13 508 648 ; @@ -454,7 +455,7 @@ C -1 ; WX 570 ; N plusminus ; B 33 0 537 665 ; C -1 ; WX 747 ; N registered ; B 23 -18 723 676 ; C -1 ; WX 389 ; N scaron ; B 16 -13 465 683 ; -@@ -377,7 +378,7 @@ +@@ -377,7 +378,7 @@ KPX y period -37 KPX y comma -37 EndKernPairs EndKernData @@ -463,7 +464,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 139 204 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 28 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 111 204 ; -@@ -434,6 +435,7 @@ +@@ -434,6 +435,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 194 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 111 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 194 204 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 83 0 ; @@ -473,7 +474,7 @@ EndComposites --- afm/ptmi.afm +++ afm/ptmi.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 660 XHeight 446 Descender -206 Ascender 684 @@ -482,7 +483,7 @@ C 32 ; WX 250 ; N space ; B 0 0 0 0 ; C 33 ; WX 333 ; N exclam ; B 46 -10 296 670 ; C 34 ; WX 420 ; N quotedbl ; B 107 442 402 673 ; -@@ -231,6 +231,7 @@ +@@ -231,6 +231,7 @@ C -1 ; WX 750 ; N onehalf ; B 30 -15 720 C -1 ; WX 750 ; N onequarter ; B 30 -15 720 684 ; C -1 ; WX 300 ; N onesuperior ; B 43 274 277 683 ; C -1 ; WX 500 ; N otilde ; B 27 -13 476 639 ; @@ -490,7 +491,7 @@ C -1 ; WX 675 ; N plusminus ; B 85 0 589 645 ; C -1 ; WX 760 ; N registered ; B 40 -22 719 672 ; C -1 ; WX 389 ; N scaron ; B 16 -14 450 669 ; -@@ -389,7 +390,7 @@ +@@ -389,7 +390,7 @@ KPX y period -55 KPX y comma -55 EndKernPairs EndKernData @@ -499,7 +500,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 111 227 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 28 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 83 227 ; -@@ -446,6 +447,7 @@ +@@ -446,6 +447,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 181 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 76 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 221 227 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 89 0 ; @@ -509,7 +510,7 @@ EndComposites --- afm/ptmr.afm +++ afm/ptmr.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -17,7 +17,7 @@ +@@ -17,7 +17,7 @@ CapHeight 662 XHeight 448 Descender -217 Ascender 682 @@ -518,7 +519,7 @@ C 32 ; WX 250 ; N space ; B 0 0 0 0 ; C 33 ; WX 333 ; N exclam ; B 109 -14 224 676 ; C 34 ; WX 408 ; N quotedbl ; B 70 445 337 685 ; -@@ -231,6 +231,7 @@ +@@ -231,6 +231,7 @@ C -1 ; WX 750 ; N onehalf ; B 30 -14 720 C -1 ; WX 750 ; N onequarter ; B 30 -14 720 676 ; C -1 ; WX 300 ; N onesuperior ; B 58 270 242 676 ; C -1 ; WX 500 ; N otilde ; B 30 -10 470 638 ; @@ -526,7 +527,7 @@ C -1 ; WX 564 ; N plusminus ; B 30 0 534 612 ; C -1 ; WX 760 ; N registered ; B 43 -14 718 676 ; C -1 ; WX 389 ; N scaron ; B 39 -10 351 674 ; -@@ -382,7 +383,7 @@ +@@ -382,7 +383,7 @@ KPX y period -65 KPX y comma -65 EndKernPairs EndKernData @@ -535,7 +536,7 @@ CC Zcaron 2 ; PCC Z 0 0 ; PCC caron 139 214 ; CC zcaron 2 ; PCC z 0 0 ; PCC caron 55 0 ; CC Scaron 2 ; PCC S 0 0 ; PCC caron 111 214 ; -@@ -439,6 +440,7 @@ +@@ -439,6 +440,7 @@ CC Ntilde 2 ; PCC N 0 0 ; PCC tilde 194 CC ntilde 2 ; PCC n 0 0 ; PCC tilde 83 0 ; CC Otilde 2 ; PCC O 0 0 ; PCC tilde 194 214 ; CC otilde 2 ; PCC o 0 0 ; PCC tilde 83 0 ; @@ -570,7 +571,7 @@ SHELL = @SHELL@ srcdir = @srcdir@ -@@ -45,10 +46,9 @@ +@@ -45,10 +46,9 @@ AUTOMAKE = @AUTOMAKE@ AUTOHEADER = @AUTOHEADER@ INSTALL = @INSTALL@ @@ -582,7 +583,7 @@ transform = @program_transform_name@ NORMAL_INSTALL = : -@@ -57,8 +57,6 @@ +@@ -57,8 +57,6 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : @@ -591,7 +592,7 @@ host_alias = @host_alias@ host_triplet = @host@ AMDEP = @AMDEP@ -@@ -130,7 +128,6 @@ +@@ -130,7 +128,6 @@ file_prog = @file_prog@ l = @l@ lispdir = @lispdir@ @@ -599,7 +600,7 @@ info_TEXINFOS = a2ps.texi regex.texi TEXI2DVI = $(top_srcdir)/contrib/texi2dvi4a2ps -@@ -141,23 +138,19 @@ +@@ -141,23 +138,19 @@ xa2ps = $(top_builddir)/src/a2ps defs = $(top_builddir)/tests/defs A2PS = a2ps @@ -625,7 +626,7 @@ TEXINFO_TEX = $(top_srcdir)/auxdir/texinfo.tex INFO_DEPS = a2ps.info regex.info DVIS = a2ps.dvi regex.dvi -@@ -165,8 +158,9 @@ +@@ -165,8 +158,9 @@ TEXINFOS = a2ps.texi regex.texi DIST_COMMON = Makefile.am Makefile.in stamp-vti version.texi @@ -636,7 +637,7 @@ GZIP_ENV = --best all: all-redirect .SUFFIXES: -@@ -218,7 +212,7 @@ +@@ -218,7 +212,7 @@ DVIPS = dvips && $(MAKEINFO) `echo $< | sed 's,.*/,,'` .texi.dvi: @@ -645,7 +646,7 @@ MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< .texi: -@@ -237,7 +231,7 @@ +@@ -237,7 +231,7 @@ DVIPS = dvips && $(MAKEINFO) `echo $< | sed 's,.*/,,'` .texinfo.dvi: @@ -654,7 +655,7 @@ MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< .txi.info: -@@ -246,7 +240,7 @@ +@@ -246,7 +240,7 @@ DVIPS = dvips && $(MAKEINFO) `echo $< | sed 's,.*/,,'` .txi.dvi: @@ -663,7 +664,7 @@ MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $< .txi: -@@ -262,7 +256,7 @@ +@@ -262,7 +256,7 @@ install-info-am: $(INFO_DEPS) @list='$(INFO_DEPS)'; \ for file in $$list; do \ d=$(srcdir); \ @@ -672,7 +673,7 @@ if test -f $$d/$$ifile; then \ echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \ $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \ -@@ -281,26 +275,24 @@ +@@ -281,26 +275,24 @@ install-info-am: $(INFO_DEPS) uninstall-info: $(PRE_UNINSTALL) @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \ @@ -709,7 +710,7 @@ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ || cp -p $$d/$$file $(distdir)/$$file; \ -@@ -308,14 +300,13 @@ +@@ -308,14 +300,13 @@ dist-info: $(INFO_DEPS) done mostlyclean-aminfo: @@ -731,7 +732,7 @@ clean-aminfo: -@@ -334,11 +325,18 @@ +@@ -334,11 +325,18 @@ TAGS: distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) @@ -751,7 +752,7 @@ else \ test -f $(distdir)/$$file \ || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ -@@ -368,7 +366,7 @@ +@@ -368,7 +366,7 @@ uninstall: uninstall-am all-am: Makefile $(INFO_DEPS) all-redirect: all-am install-strip: @@ -760,7 +761,7 @@ installdirs: $(mkinstalldirs) $(DESTDIR)$(infodir) -@@ -382,7 +380,6 @@ +@@ -382,7 +380,6 @@ distclean-generic: -rm -f config.cache config.log stamp-h stamp-h[0-9]* maintainer-clean-generic: @@ -768,7 +769,7 @@ -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) mostlyclean-am: mostlyclean-vti mostlyclean-aminfo mostlyclean-generic -@@ -393,7 +390,6 @@ +@@ -393,7 +390,6 @@ clean-am: clean-vti clean-aminfo clean- clean: clean-am distclean-am: distclean-vti distclean-aminfo distclean-generic clean-am @@ -776,7 +777,7 @@ distclean: distclean-am -@@ -409,8 +405,8 @@ +@@ -409,8 +405,8 @@ install-info-am uninstall-info mostlycle clean-aminfo maintainer-clean-aminfo tags distdir info-am info dvi-am \ dvi check check-am installcheck-am installcheck install-exec-am \ install-exec install-data-am install-data install-am install \ @@ -789,7 +790,7 @@ --- doc/a2ps.texi +++ doc/a2ps.texi 2006-02-23 13:05:17.000000000 +0100 -@@ -6182,7 +6182,7 @@ +@@ -6182,7 +6182,7 @@ Error related questions. @subsection Why Does it Print Nothing? @quotation @@ -798,7 +799,7 @@ @end quotation There are two ways that printing can fail: silently, or with a -@@ -6311,7 +6311,7 @@ +@@ -6311,7 +6311,7 @@ If it is incorrect, ask for help around @subsection Why Does it Say my File is Binary? @quotation @@ -809,7 +810,7 @@ There are several reasons that can cause @pack{} to consider a file is --- encoding/encoding.map +++ encoding/encoding.map 2006-02-23 13:05:17.000000000 +0100 -@@ -84,6 +84,10 @@ +@@ -84,6 +84,10 @@ iso15 iso15 latin9 iso15 latin0 iso15 iso-8859-15 iso15 @@ -822,7 +823,7 @@ # Other encodings --- etc/Makefile.in +++ etc/Makefile.in 2006-02-23 13:05:17.000000000 +0100 -@@ -297,7 +297,7 @@ +@@ -297,7 +297,7 @@ uninstall-local: # Building the correct a2ps.cfg a2ps.cfg: a2ps_cfg Makefile @@ -832,7 +833,7 @@ # Building a time stamp to know the version. README: README.in Makefile --- etc/a2ps_cfg.in -+++ etc/a2ps_cfg.in 2006-02-23 13:36:13.000000000 +0100 ++++ etc/a2ps_cfg.in 2008-07-15 18:50:20.922218080 +0200 @@ -43,26 +43,56 @@ # (Must be defined before --medium) # ################################################################# @@ -908,7 +909,7 @@ ################################################################# # 2) Path to the a2ps resource # -@@ -72,7 +102,7 @@ +@@ -72,7 +102,7 @@ LibraryPath: @libpath@ # It may be useful to extend it so that a2ps can see some # TeX or X11 resources: it likes AFM files and PF[AB] files. @@ -917,7 +918,7 @@ ################################################################# -@@ -264,24 +294,9 @@ +@@ -264,31 +294,16 @@ $3p<-$3p> $4l# lines\n|| @COM_PSUTILS@@COM_dvips@ fi ########## HTML files @@ -945,9 +946,18 @@ ########## MetaFont / MetaPost files Delegation: MetaFont mf:ps \ +- #{del.metafont} && #{dvips} $N.dvi | #{psnup} ++ #{del.metafont} && #{dvips} $N.dvi | #{del.psnup} + + Delegation: MetaPost mp:ps \ +- #{del.metapost} && #{dvips} $N.dvi | #{psnup} ++ #{del.metapost} && #{dvips} $N.dvi | #{del.psnup} + + ########## PDF files + # Delegated to pdf2ps, GS 5.50 --- lib/jobs.c +++ lib/jobs.c 2006-02-23 13:05:17.000000000 +0100 -@@ -134,10 +134,19 @@ +@@ -134,10 +134,19 @@ a2ps_job_new (void) /* Set the NLS on */ setlocale (LC_TIME, ""); @@ -970,7 +980,7 @@ textdomain (PACKAGE); --- lib/metaseq.c +++ lib/metaseq.c 2006-02-23 13:05:17.000000000 +0100 -@@ -205,7 +205,7 @@ +@@ -205,7 +205,7 @@ grow_user_string_obstack (struct obstack int justification = 1; /* Format string. */ @@ -996,7 +1006,7 @@ /* * Hooks used -@@ -545,6 +549,16 @@ +@@ -545,6 +549,16 @@ a2ps_handle_options (a2ps_job * job, int break; case 'M': /* select a medium */ @@ -1013,7 +1023,7 @@ xstrcpy (job->medium_request, optarg); break; -@@ -647,6 +661,14 @@ +@@ -647,6 +661,14 @@ a2ps_handle_options (a2ps_job * job, int break; case 'X': /* change the encoding scheme */ @@ -1023,7 +1033,7 @@ + if (codeset && !strncasecmp(codeset, "iso", 3)) + optarg = xstrdup(codeset); + else -+ optarg = xstrdup("iso15"); ++ optarg = xstrdup("ISO-8859-15"); + } /* Since there can be -X in the config files, and because * the encoding.map has not been read yet (because to read @@ -1053,7 +1063,7 @@ # define DIRECTORY_SEPARATOR '/' --- lib/printlen.c +++ lib/printlen.c 2006-02-23 13:05:17.000000000 +0100 -@@ -28,14 +28,15 @@ +@@ -28,14 +28,15 @@ Foundation, Inc., 59 Temple Place - Suit unsigned long strtoul (); static int @@ -1071,7 +1081,7 @@ for (cp = format ; *cp ; cp++) { -@@ -99,7 +100,7 @@ +@@ -99,7 +100,7 @@ int_printflen (const char *format, va_li int vprintflen (const char *format, va_list args) { @@ -1082,7 +1092,7 @@ int --- lib/title.c +++ lib/title.c 2006-02-23 13:05:17.000000000 +0100 -@@ -87,11 +87,13 @@ +@@ -83,11 +83,13 @@ title (stream, c, center_p, format, va_a VA_START (args, format); len = vprintflen (format, args); @@ -1108,7 +1118,7 @@ /* Perform subsitutions in string. Result is malloc'd --- man/a2ps.1 +++ man/a2ps.1 2006-02-23 13:05:17.000000000 +0100 -@@ -80,8 +80,8 @@ +@@ -80,8 +80,8 @@ first fill (DIRECTION=) rows, or columns predefined font sizes and layouts for 1.. 9 virtuals .TP \fB\-A\fR, \fB\-\-file\-align\fR=\fIMODE\fR @@ -1121,7 +1131,7 @@ print borders around columns --- ogonkify/Makefile.in +++ ogonkify/Makefile.in 2006-02-23 13:05:17.000000000 +0100 -@@ -138,7 +138,7 @@ +@@ -138,7 +138,7 @@ PSPROGS = allchars.ps compose.ps helper. @EXTENSIONS_TRUE@bin_SCRIPTS = @EXTENSIONS_TRUE@ogonkify composeglyphs @EXTENSIONS_TRUE@ogonkify_DATA = @EXTENSIONS_TRUE@$(ENCODINGS_VECTORS) $(CREATED_FONTS) $(PSPROGS) README @@ -1132,7 +1142,7 @@ # --- ogonkify/ogonkify.in.in +++ ogonkify/ogonkify.in.in 2006-02-23 13:05:17.000000000 +0100 -@@ -38,7 +38,7 @@ +@@ -38,7 +38,7 @@ $encoding='L2'; 'ibmpc','IBMPCEncoding', 'mac','MacintoshEncoding', 'HP','HPRomanEncoding'); @standardFont= @@ -1143,7 +1153,7 @@ 'Helvetica-BoldOblique'); --- ogonkify/pcrb-o.afm +++ ogonkify/pcrb-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Courier-Bold-Ogonki EncodingScheme StandardEncoding FullName Courier-Bold-Ogonki Composite font FontBBox -113 -250 749 801 @@ -1152,7 +1162,7 @@ C 32 ; WX 600 ; N space ; B 0 0 0 0 ; C 33 ; WX 600 ; N exclam ; B 202 -15 398 572 ; C 34 ; WX 600 ; N quotedbl ; B 135 277 465 562 ; -@@ -204,6 +204,7 @@ +@@ -204,6 +204,7 @@ C -1 ; WX 600 ; N Igrave ; B 77 0 523 78 C -1 ; WX 600 ; N brokenbar ; B 255 -175 345 675 ; C -1 ; WX 600 ; N Oacute ; B 22 -18 578 784 ; C -1 ; WX 600 ; N otilde ; B 30 -15 570 636 ; @@ -1162,7 +1172,7 @@ C -1 ; WX 600 ; N Atilde ; B -9 0 609 759 ; --- ogonkify/pcrbo-o.afm +++ ogonkify/pcrbo-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Courier-BoldOblique-Ogonki EncodingScheme StandardEncoding FullName Courier-BoldOblique-Ogonki Composite font FontBBox -56 -250 868 801 @@ -1171,7 +1181,7 @@ C 32 ; WX 600 ; N space ; B 0 0 0 0 ; C 33 ; WX 600 ; N exclam ; B 216 -15 495 572 ; C 34 ; WX 600 ; N quotedbl ; B 212 277 584 562 ; -@@ -204,6 +204,7 @@ +@@ -204,6 +204,7 @@ C -1 ; WX 600 ; N Igrave ; B 77 0 642 78 C -1 ; WX 600 ; N brokenbar ; B 218 -175 488 675 ; C -1 ; WX 600 ; N Oacute ; B 74 -18 645 784 ; C -1 ; WX 600 ; N otilde ; B 71 -15 642 636 ; @@ -1181,7 +1191,7 @@ C -1 ; WX 600 ; N Atilde ; B -9 0 638 759 ; --- ogonkify/pcrr-o.afm +++ ogonkify/pcrr-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Courier-Ogonki EncodingScheme StandardEncoding FullName Courier-Ogonki Composite font FontBBox -28 -250 628 805 @@ -1190,7 +1200,7 @@ C 32 ; WX 600 ; N space ; B 0 0 0 0 ; C 33 ; WX 600 ; N exclam ; B 236 -15 364 572 ; C 34 ; WX 600 ; N quotedbl ; B 187 328 413 562 ; -@@ -204,6 +204,7 @@ +@@ -204,6 +204,7 @@ C -1 ; WX 600 ; N Igrave ; B 96 0 504 79 C -1 ; WX 600 ; N brokenbar ; B 275 -175 326 675 ; C -1 ; WX 600 ; N Oacute ; B 43 -18 557 793 ; C -1 ; WX 600 ; N otilde ; B 62 -15 538 606 ; @@ -1200,7 +1210,7 @@ C -1 ; WX 600 ; N Atilde ; B 3 0 597 732 ; --- ogonkify/pcrro-o.afm +++ ogonkify/pcrro-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Courier-Oblique-Ogonki EncodingScheme StandardEncoding FullName Courier-Oblique-Ogonki Composite font FontBBox -28 -250 742 805 @@ -1209,7 +1219,7 @@ C 32 ; WX 600 ; N space ; B 0 0 0 0 ; C 33 ; WX 600 ; N exclam ; B 243 -15 464 572 ; C 34 ; WX 600 ; N quotedbl ; B 273 328 532 562 ; -@@ -204,6 +204,7 @@ +@@ -204,6 +204,7 @@ C -1 ; WX 600 ; N Igrave ; B 96 0 623 79 C -1 ; WX 600 ; N brokenbar ; B 238 -175 469 675 ; C -1 ; WX 600 ; N Oacute ; B 94 -18 638 793 ; C -1 ; WX 600 ; N otilde ; B 102 -15 629 606 ; @@ -1219,7 +1229,7 @@ C -1 ; WX 600 ; N Atilde ; B 3 0 656 732 ; --- ogonkify/phvb-o.afm +++ ogonkify/phvb-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Helvetica-Bold-Ogonki EncodingScheme StandardEncoding FullName Helvetica-Bold-Ogonki Composite font FontBBox -173 -221 1003 936 @@ -1228,7 +1238,7 @@ C 32 ; WX 278 ; N space ; B 0 0 0 0 ; C 33 ; WX 333 ; N exclam ; B 112 0 262 729 ; C 34 ; WX 474 ; N quotedbl ; B 50 470 424 729 ; -@@ -219,6 +219,7 @@ +@@ -219,6 +219,7 @@ C -1 ; WX 834 ; N onehalf ; B 30 -20 803 C -1 ; WX 834 ; N onequarter ; B 30 -20 804 715 ; C -1 ; WX 333 ; N onesuperior ; B 46 284 247 709 ; C -1 ; WX 611 ; N otilde ; B 35 -23 569 729 ; @@ -1238,7 +1248,7 @@ C -1 ; WX 556 ; N scaron ; B 29 -23 520 745 ; --- ogonkify/phvbo-o.afm +++ ogonkify/phvbo-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Helvetica-BoldOblique-Ogonki EncodingScheme StandardEncoding FullName Helvetica-BoldOblique-Ogonki Composite font FontBBox -177 -221 1107 936 @@ -1247,7 +1257,7 @@ C 32 ; WX 278 ; N space ; B 0 0 0 0 ; C 33 ; WX 333 ; N exclam ; B 112 0 417 729 ; C 34 ; WX 474 ; N quotedbl ; B 177 470 579 729 ; -@@ -219,6 +219,7 @@ +@@ -219,6 +219,7 @@ C -1 ; WX 834 ; N onehalf ; B 120 -20 87 C -1 ; WX 834 ; N onequarter ; B 151 -20 846 715 ; C -1 ; WX 333 ; N onesuperior ; B 169 284 398 709 ; C -1 ; WX 611 ; N otilde ; B 82 -23 639 729 ; @@ -1257,7 +1267,7 @@ C -1 ; WX 556 ; N scaron ; B 60 -23 597 745 ; --- ogonkify/phvr-o.afm +++ ogonkify/phvr-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Helvetica-Ogonki EncodingScheme StandardEncoding FullName Helvetica-Ogonki Composite font FontBBox -174 -220 1001 944 @@ -1266,7 +1276,7 @@ C 32 ; WX 278 ; N space ; B 0 0 0 0 ; C 33 ; WX 278 ; N exclam ; B 124 0 208 729 ; C 34 ; WX 355 ; N quotedbl ; B 52 462 305 708 ; -@@ -219,6 +219,7 @@ +@@ -219,6 +219,7 @@ C -1 ; WX 834 ; N onehalf ; B 30 -21 804 C -1 ; WX 834 ; N onequarter ; B 30 -21 804 709 ; C -1 ; WX 333 ; N onesuperior ; B 60 284 219 709 ; C -1 ; WX 556 ; N otilde ; B 36 -23 510 716 ; @@ -1276,7 +1286,7 @@ C -1 ; WX 500 ; N scaron ; B 34 -24 459 740 ; --- ogonkify/phvro-o.afm +++ ogonkify/phvro-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Helvetica-Oblique-Ogonki EncodingScheme StandardEncoding FullName Helvetica-Oblique-Ogonki Composite font FontBBox -178 -220 1108 944 @@ -1285,7 +1295,7 @@ C 32 ; WX 278 ; N space ; B 0 0 0 0 ; C 33 ; WX 278 ; N exclam ; B 124 0 363 729 ; C 34 ; WX 355 ; N quotedbl ; B 177 462 455 708 ; -@@ -219,6 +219,7 @@ +@@ -219,6 +219,7 @@ C -1 ; WX 834 ; N onehalf ; B 116 -21 86 C -1 ; WX 834 ; N onequarter ; B 147 -21 836 709 ; C -1 ; WX 333 ; N onesuperior ; B 184 284 370 709 ; C -1 ; WX 556 ; N otilde ; B 80 -23 582 716 ; @@ -1295,7 +1305,7 @@ C -1 ; WX 500 ; N scaron ; B 61 -24 547 740 ; --- ogonkify/ptmb-o.afm +++ ogonkify/ptmb-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Times-Bold-Ogonki EncodingScheme StandardEncoding FullName Times-Bold-Ogonki Composite font FontBBox -172 -256 1008 965 @@ -1304,7 +1314,7 @@ C 32 ; WX 250 ; N space ; B 0 0 0 0 ; C 33 ; WX 333 ; N exclam ; B 84 -18 248 690 ; C 34 ; WX 555 ; N quotedbl ; B 67 371 425 690 ; -@@ -219,6 +219,7 @@ +@@ -219,6 +219,7 @@ C -1 ; WX 750 ; N onehalf ; B 30 -18 720 C -1 ; WX 750 ; N onequarter ; B 30 -18 720 690 ; C -1 ; WX 300 ; N onesuperior ; B 24 276 275 690 ; C -1 ; WX 500 ; N otilde ; B 25 -18 473 671 ; @@ -1314,7 +1324,7 @@ C -1 ; WX 389 ; N scaron ; B 29 -17 359 690 ; --- ogonkify/ptmbi-o.afm +++ ogonkify/ptmbi-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Times-BoldItalic-Ogonki EncodingScheme StandardEncoding FullName Times-BoldItalic-Ogonki Composite font FontBBox -168 -232 1014 894 @@ -1323,7 +1333,7 @@ C 32 ; WX 250 ; N space ; B 0 0 0 0 ; C 33 ; WX 389 ; N exclam ; B 66 -13 367 676 ; C 34 ; WX 555 ; N quotedbl ; B 142 367 549 693 ; -@@ -219,6 +219,7 @@ +@@ -219,6 +219,7 @@ C -1 ; WX 750 ; N onehalf ; B 30 0 720 6 C -1 ; WX 750 ; N onequarter ; B 30 0 720 676 ; C -1 ; WX 300 ; N onesuperior ; B 17 270 283 676 ; C -1 ; WX 500 ; N otilde ; B 27 -13 507 648 ; @@ -1333,7 +1343,7 @@ C -1 ; WX 389 ; N scaron ; B 16 -13 465 683 ; --- ogonkify/ptmr-o.afm +++ ogonkify/ptmr-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Times-Roman-Ogonki EncodingScheme StandardEncoding FullName Times-Roman-Ogonki Composite font FontBBox -168 -218 1000 898 @@ -1342,7 +1352,7 @@ C 32 ; WX 250 ; N space ; B 0 0 0 0 ; C 33 ; WX 333 ; N exclam ; B 130 -9 238 676 ; C 34 ; WX 408 ; N quotedbl ; B 77 431 331 676 ; -@@ -167,6 +167,7 @@ +@@ -167,6 +167,7 @@ C -1 ; WX 444 ; N egrave ; B 25 -10 424 C -1 ; WX 300 ; N twosuperior ; B 1 270 296 676 ; C -1 ; WX 444 ; N eacute ; B 25 -10 424 678 ; C -1 ; WX 500 ; N otilde ; B 29 -10 470 638 ; @@ -1352,7 +1362,7 @@ C -1 ; WX 500 ; N yacute ; B 14 -218 475 678 ; --- ogonkify/ptmri-o.afm +++ ogonkify/ptmri-o.afm 2006-02-23 13:05:17.000000000 +0100 -@@ -5,7 +5,7 @@ +@@ -5,7 +5,7 @@ FontName Times-Italic-Ogonki EncodingScheme StandardEncoding FullName Times-Italic-Ogonki Composite font FontBBox -169 -217 1010 883 @@ -1361,7 +1371,7 @@ C 32 ; WX 250 ; N space ; B 0 0 0 0 ; C 33 ; WX 333 ; N exclam ; B 39 -11 302 667 ; C 34 ; WX 420 ; N quotedbl ; B 144 421 432 666 ; -@@ -167,6 +167,7 @@ +@@ -167,6 +167,7 @@ C -1 ; WX 444 ; N egrave ; B 31 -11 412 C -1 ; WX 300 ; N twosuperior ; B 33 271 324 676 ; C -1 ; WX 444 ; N eacute ; B 31 -11 459 664 ; C -1 ; WX 500 ; N otilde ; B 27 -11 496 624 ; @@ -1379,7 +1389,7 @@ /* From basename.c */ char *base_name PARAMS ((const char *path)); -@@ -102,7 +103,9 @@ +@@ -102,7 +103,9 @@ enum behavior behavior = b_ps; defined twice, see lib/confg.gperf, handling of `Options:'. */ char *program_name; @@ -1389,7 +1399,7 @@ /* Stores the data of liba2ps. */ -@@ -925,6 +928,7 @@ +@@ -925,6 +928,7 @@ int main (int argc, char *argv[]) { int argn; @@ -1397,7 +1407,7 @@ /* Architecture specific initialization. */ #ifdef __EMX__ -@@ -941,10 +945,20 @@ +@@ -941,10 +945,20 @@ Copyright (c) 1995-2000 Akim Demaille, M /* Set the NLS on */ setlocale (LC_TIME, ""); diff --git a/a2ps.changes b/a2ps.changes index 3ca0466..915943f 100644 --- a/a2ps.changes +++ b/a2ps.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jul 15 17:23:07 CEST 2008 - werner@suse.de + +- Better workaround for UTF-8 files + ------------------------------------------------------------------- Tue Mar 4 15:31:30 CET 2008 - werner@suse.de diff --git a/a2ps.sh b/a2ps.sh deleted file mode 100644 index 71e9d08..0000000 --- a/a2ps.sh +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/bash -# -# a2ps.sh: Simple workaround for getting a2ps handling -# UTF-8 partly. Partly means that iconv is -# used to get the UTF-8 encoding into the -# natural laint encoding of the base language -# provided by the enviroment variable LANG. -# -# Author: Werner Fink -# - -if test "${LANG#*.}" != "UTF-8" ; then - exec -a a2ps a2ps.bin ${1+"$@"} -fi - -ENC=$(LANG=${LANG%.*}; locale charmap 2> /dev/null) -test "$ENC" = "ISO-8859-1" && ENC=ISO-8859-15 -test "${LANG%.*}" = "en_US" && ENC=ISO-8859-1 - -case "${ENC%-*}" in - ISO-8859|KOI8) ;; - *) exec -a a2ps a2ps.bin -X $ENC ${1+"$@"} -esac - -# -# All long options of a2ps -# -LONG="version,help,guess,which,glob,list:,quiet,silent,verbose::,user-option:,debug,define:,\ -medium:,landscape,portrait,columns:,rows:,major:,file-align:borders,margin::,line-numbers:,\ -font-size:,lines-per-page:,chars-per-line:,catman,tabsize:,non-printable-format:,\ -no-header,header::,underlay::,center-title::,left-title::,right-title::,left-footer::,\ -footer::,right-footer::,pages::,truncate-lines,interpret,end-of-line:,encoding:,\ -title:,stdin:,print-anyway,delegate,toc::,pretty-print::,highlight-level:,strip-level:,\ -output:,version-control:,suffix:,printer:,prologue:,ppd::,copies:,sides:,setpagedevice:,\ -statusdict:,page-prefeed,no-page-prefeed" - -# -# All normal options of a2ps -# -SHORT="qv::=:D:M:,r,R,1,2,3,4,5,6,7,8,9,A:,j,C,f:,L:,l:,m,T:,B,b:,u:,a::,\ -c,i,X:,t:,Z,E::,g,o:,P:,d,n:,s:,S:,k,K" - -# -# We need the file names provided on the command line -# or the information if we read from stdin. -# -CMDLINE=$(getopt -o $SHORT -l $LONG -s bash -q -- ${1+"$@"}) - -if test $? -ne 0 ; then - # Let a2ps do the error message - exec -a a2ps a2ps.bin ${1+"$@"} -fi - -# -# Why sed? Just to get the `=' back instead of ` ' the -# empty space which are inserted by getopt(1) -# -CMDLINE=$(echo "$CMDLINE" | LC_ALL=POSIX sed -r "s|--([a-z-]+)[[:space:]]?(')|--\1=\2|g;s|-([vaE])[[:space:]]('[^-])|-\1\2|g") - -# -# Just for encoding given on command line: -# allow the user to overwrite autodetection -# -case "${CMDLINE}" in - *-X\ \'UTF-8\'*|*--encoding=\'UTF-8\'*) - ;; # handle this below - *-X*|*--encoding=*|*--version*|*--help*|*--which*|*--glob*|*--list=*) - exec -a a2ps a2ps.bin ${1+"$@"} -esac - -# -# Work around ogonkify bug which cause not defined fontsize -# -case "${CMDLINE}" in - *-E\'wdiff\'*) ENC=ISO-8859-1 -esac -# -# To not fool the bash with eval here -# - FILES=$(echo "$CMDLINE" | LC_ALL=POSIX sed -r "s|.*[[:space:]]--[[:space:]]?(.*)|\1|") -CMDLINE=$(echo "$CMDLINE" | LC_ALL=POSIX sed -r "s|(.*)[[:space:]]--[[:space:]]?.*|\1|") - -test -z "$FILES" && FILES="'-'" - -if test "$FILES" != "'-'" ; then - # - # We have real files, maybe with spaces in their path name - # - eval set -- "$CMDLINE" - eval fa=("$FILES") - for f in "${fa[@]}" ; do - case "$(file -b "$f" 2> /dev/null)" in - ISO-8859*text) - iconv -c -f ISO-8859-1 -t $ENC < "$f" | a2ps.bin -X $ENC --stdin="$f" ${1+"$@"} - stat=$? - ;; - UTF-8*text) - iconv -c -f UTF-8 -t $ENC < "$f" | a2ps.bin -X $ENC --stdin="$f" ${1+"$@"} - stat=$? - ;; - ASCII*text|*) - a2ps.bin -X $ENC ${1+"$@"} "$f" - stat=$? - ;; - esac - test $stat -eq 0 || exit $stat - done - exit 0 -fi - -# -# Just handle stdin at last but not least -# -cat - | iconv -c -f UTF-8 -t $ENC | a2ps.bin -X $ENC ${1+"$@"} -exit $? diff --git a/a2ps.spec b/a2ps.spec index 695d946..fed4cd8 100644 --- a/a2ps.spec +++ b/a2ps.spec @@ -20,11 +20,10 @@ Requires: /bin/sed /usr/bin/iconv /usr/bin/file /usr/bin/wdiff /usr/bin/w3 AutoReqProv: on PreReq: %{install_info_prereq} Version: 4.13 -Release: 1241 +Release: 1285 Summary: Converts ASCII Text into PostScript Source: a2ps-4.13b.tar.bz2 Source1: a2ps-ko.po -Source2: a2ps.sh Patch: a2ps-4.13.dif Patch1: a2ps-4.13-security.patch Patch2: a2ps-4.13-ogonkify.patch @@ -34,6 +33,7 @@ Patch5: a2ps-4.13-nb.patch Patch6: a2ps-4.13-include.patch Patch7: a2ps-4.13-acroread.patch Patch8: a2ps-4.13-base.patch +Patch9: a2ps-4.13-utf8.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -59,6 +59,7 @@ touch -r configure.in .ref %patch -P 7 -p 0 -b .acroread %endif %patch -P 8 -p 0 -b .base +%patch -P 9 -p 0 -b .utf8 %patch cp -f %SOURCE1 po/ko.po rename no nb po/no.* @@ -96,8 +97,6 @@ rename no nb po/no.* make install DESTDIR=$RPM_BUILD_ROOT PSFONT_PATH=/usr/share/ghostscript/fonts rm -r $RPM_BUILD_ROOT/%{_infodir}/regex* rm -r $RPM_BUILD_ROOT/%{_infodir}/dir - mv $RPM_BUILD_ROOT/usr/bin/a2ps $RPM_BUILD_ROOT/usr/bin/a2ps.bin - install -m 0755 %{SOURCE2} $RPM_BUILD_ROOT/usr/bin/a2ps %{find_lang} %{name} %clean @@ -117,7 +116,6 @@ test -n "$RPM_BUILD_ROOT" && rm -rf $RPM_BUILD_ROOT %config /etc/a2ps-site.cfg %config /etc/a2ps.cfg /usr/bin/a2ps -/usr/bin/a2ps.bin /usr/bin/card /usr/bin/composeglyphs /usr/bin/fixnt @@ -138,6 +136,8 @@ test -n "$RPM_BUILD_ROOT" && rm -rf $RPM_BUILD_ROOT /usr/share/ogonkify %changelog +* Tue Jul 15 2008 werner@suse.de +- Better workaround for UTF-8 files * Tue Mar 04 2008 werner@suse.de - Work around reencoded fonts from ogonkify in wdiff screen mode * Fri Apr 20 2007 aj@suse.de @@ -253,7 +253,7 @@ test -n "$RPM_BUILD_ROOT" && rm -rf $RPM_BUILD_ROOT - merged patches * Thu Jul 06 2000 werner@suse.de - Add `,' to atan2 in for77kwds.ssh to distinguish atan2 from cabs. -* Fri Apr 07 2000 bk@suse.de +* Sat Apr 08 2000 bk@suse.de - added suse update config macro * Fri Feb 25 2000 kukuk@suse.de - Fill out copyright and group tag