--- hyphen-show-20000425.orig/hyphen_show.1 +++ hyphen-show-20000425/hyphen_show.1 @@ -1,4 +1,4 @@ -.TH hyphen_show l "May 28, 1997" "Version: 6" +.TH hyphen_show 1 "May 28, 1997" "Version: 6" .SH NAME \fBhyphen_show\fP \- a program to look for hyphenations in a .dvi-file created by TeX/LaTeX --- hyphen-show-20000425.orig/hyphen_show.c +++ hyphen-show-20000425/hyphen_show.c @@ -79,9 +79,9 @@ Linux (gcc), SGI IRIS 5.2 */ #include - int close(int); - int read(int,char *,unsigned); - int isalpha(char); + #include + #include + #include #endif int gchar(unsigned char *); @@ -106,7 +106,6 @@ char zugelassen(char, unsigned char); char* text_clear(char *, int *); void eop(void); -long pow(int,int); void eingabe(long *, unsigned char); void right(unsigned char); void w0(void); @@ -114,7 +113,7 @@ void x0(void); void x(unsigned char); void down(unsigned char); -void y0(void); +void y_0(void); void y(unsigned char); void z0(void); void z(unsigned char); @@ -444,8 +443,8 @@ } void eop(void) - { char gef; - char * ttp, *ttap,*tgesp, *tcp, *terr; + { char gef = FALSE; + char * ttp, *ttap = NULL,*tgesp, *tcp, *terr; int ttapl,ntc; a_outimage(); s_max = s_p-1; @@ -491,24 +490,16 @@ s_p = 0; } -long pow(int b,int p) - { int w,k; - w = b; - for (k=1; k < p; k++) {w = w *b;}; - return w; - } - void eingabe(long* dd, unsigned char k) - { char neg; unsigned char hk; + { unsigned char hk; long hn,hw; hw = (int) e_inbyte(); - neg = FALSE; - if (hw > 127) {neg = TRUE;}; + if (hw > 127) hw -= 256; for (hn = 2; hn <= (long) k; hn++) { hk = e_inbyte(); hw = hw*256+hk; }; - if (neg == TRUE) {*dd = -(pow(2,k*8))+hw; } else *dd = hw; + *dd = hw; } void right(unsigned char code) @@ -544,7 +535,7 @@ if (d_v > v_grenze_zeile) a_outimage(); } -void y0(void) +void y_0(void) { if (d_y > y_grenze) a_outimage(); if (abs(d_y) > y_grenze_zeile) a_outimage(); } @@ -698,7 +689,7 @@ else if (k == 152) {x0();} /* x0 */ else if (k <= 156) {x(k);} /* x1 bis x4 */ else if (k <= 160) {down(k);} /* down1 bis down4 */ - else if (k == 161) {y0();} /* y0 */ + else if (k == 161) {y_0();} /* y0 */ else if (k <= 165) {y(k);} /* y1 bis y4 */ else if (k == 166) {z0();} /* z0 */ else if (k <= 170) {z(k);} /* z1 bis z4 */ --- hyphen-show-20000425.orig/debian/control +++ hyphen-show-20000425/debian/control @@ -0,0 +1,14 @@ +Source: hyphen-show +Section: tex +Priority: optional +Maintainer: Martin Buck +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.2.2 + +Package: hyphen-show +Architecture: any +Depends: ${shlibs:Depends} +Description: Show hyphenations in DVI-files + hyphen_show scans a DVI-file, tries to find all hyphenations and writes them + to stdout. It is useful to check whether TeX's hyphenation algorithm really + did the good job it is supposed to do. --- hyphen-show-20000425.orig/debian/compat +++ hyphen-show-20000425/debian/compat @@ -0,0 +1 @@ +5 --- hyphen-show-20000425.orig/debian/rules +++ hyphen-show-20000425/debian/rules @@ -0,0 +1,56 @@ +#!/usr/bin/make -f + +CC = gcc +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + + +build: build-stamp +build-stamp: + dh_testdir + + $(CC) $(CFLAGS) -o hyphen_show hyphen_show.c + + touch build-stamp + +clean: + dh_testdir + dh_testroot + -rm -f build-stamp install-stamp + -rm -f hyphen_show hyphen_show.o README + dh_clean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs usr/bin + dh_install hyphen_show usr/bin + cp README.hyphen_show README + touch install-stamp + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installdocs README + dh_installman hyphen_show.1 + dh_installchangelogs + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- hyphen-show-20000425.orig/debian/changelog +++ hyphen-show-20000425/debian/changelog @@ -0,0 +1,51 @@ +hyphen-show (20000425-2) unstable; urgency=low + + * Acknowledge previous NMU. Closes: #168391, #124744 + * gcc 3 compatibility fixes, using Gentoo's hyphen_show-gcc34.patch + * Fixed a few warnings + * Upgraded to Standards-Version 3.7.2.2: + - Support DEB_BUILD_OPTIONS + * Switched to debhelper compatibility level 5 + * Fixed manpage to use the right section + + -- Martin Buck Thu, 15 Mar 2007 00:38:58 +0100 + +hyphen-show (20000425-1.1) unstable; urgency=low + + * NMU. + * Add Build-Depends on debhelper. Closes: #168391. + * Fix spelling error in package description. Closes: #124744. + + -- Daniel Schepler Fri, 1 Aug 2003 23:18:33 -0700 + +hyphen-show (20000425-1) unstable; urgency=low + + * New upstream release + + -- Martin Buck Sun, 6 Aug 2000 01:43:22 +0200 + +hyphen-show (20000420-1) unstable; urgency=low + + * New upstream release + + -- Martin Buck Mon, 24 Apr 2000 16:51:27 +0200 + +hyphen-show (0.1-3) unstable; urgency=low + + * Fixed segfault that occured when hyphen_show could not open the .hyp file + for writing. closes: #60972 + + -- Martin Buck Sun, 16 Apr 2000 14:10:52 +0200 + +hyphen-show (0.1-2) unstable; urgency=low + + * Switched to debhelper + * Upgraded to Debian Policy 3.0.1.1 + + -- Martin Buck Mon, 13 Sep 1999 23:42:08 +0200 + +hyphen-show (0.1-1) unstable; urgency=low + + * Initial Release. + + -- Martin Buck Sun, 7 Sep 1997 19:20:36 +0200 --- hyphen-show-20000425.orig/debian/copyright +++ hyphen-show-20000425/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by Martin Buck mbuck@debian.org on +Sun, 7 Sep 1997 19:20:36 +0200. + +It was downloaded from ftp://ftp.iwd.uni-bremen.de/pub/tex/hyphenation/ + +Original authors & copyright: +Copyright (C) 1997 G. Lamprecht, W. Lotz, R. Weibezahn; IWD, Bremen University +License + +License: GPL (see /usr/share/common-licenses/GPL) + +Additionally: +IN NO EVENT SHALL THE LRW/IWD BE LIABLE TO ANY PARTY FOR +DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT +OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE LRW +HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +THE LRW/IWD SPECIFICALLY DISCLAIMS ANY WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS +ON AN "AS IS" BASIS, AND THE LRW/IWD NO OBLIGATION TO +PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.