From 5e085f4628ec22f8ac211f5157073f78910b11d2 Mon Sep 17 00:00:00 2001 From: Peter Hawkins Date: Mon, 14 Sep 1998 02:45:47 +0000 Subject: update to Version 0.002 --- textproc/word2x/Makefile | 7 +- textproc/word2x/distinfo | 2 +- textproc/word2x/files/patch-aa | 4 +- textproc/word2x/files/patch-ab | 747 ++--------------------------------------- 4 files changed, 27 insertions(+), 733 deletions(-) (limited to 'textproc/word2x') diff --git a/textproc/word2x/Makefile b/textproc/word2x/Makefile index b49d9de3f577..810c45833329 100644 --- a/textproc/word2x/Makefile +++ b/textproc/word2x/Makefile @@ -1,15 +1,16 @@ # New ports collection makefile for: word2x -# Version required: 0.001 +# Version required: 0.002 # Date created: 10 June 1998 # Whom: Thomas Gellekum # -# $Id$ +# $Id: Makefile,v 1.1.1.1 1998/06/10 09:42:18 tg Exp $ DISTNAME= word2x -PKGNAME= word2x-0.001 +PKGNAME= word2x-0.002 CATEGORIES= textproc MASTER_SITES= ftp://word2x.astra.co.uk/pub/word2x/ +WRKSRC= ${WRKDIR}/word2x-0.002 MAINTAINER= ports@FreeBSD.ORG USE_GMAKE= yes diff --git a/textproc/word2x/distinfo b/textproc/word2x/distinfo index b362d91f4ec1..e0c7eafb0713 100644 --- a/textproc/word2x/distinfo +++ b/textproc/word2x/distinfo @@ -1 +1 @@ -MD5 (word2x.tar.gz) = 286e2ddde00aff365debe7e1fb48aa30 +MD5 (word2x.tar.gz) = cc01bf6065186ea25d2b696615e6d40c diff --git a/textproc/word2x/files/patch-aa b/textproc/word2x/files/patch-aa index 2cae88fac7e6..3db5813bb32e 100644 --- a/textproc/word2x/files/patch-aa +++ b/textproc/word2x/files/patch-aa @@ -1,5 +1,5 @@ ---- Makefile.in.orig Tue Apr 21 02:38:00 1998 -+++ Makefile.in Wed Jun 10 11:32:12 1998 +--- Makefile.in.orig Mon Aug 24 01:01:15 1998 ++++ Makefile.in Mon Sep 14 10:30:36 1998 @@ -6,10 +6,10 @@ CPP=@CXX@ diff --git a/textproc/word2x/files/patch-ab b/textproc/word2x/files/patch-ab index 76135ef9bae8..5d8bd38cfa41 100644 --- a/textproc/word2x/files/patch-ab +++ b/textproc/word2x/files/patch-ab @@ -1,727 +1,20 @@ -*** col-align.cc.old Fri Apr 11 00:16:44 1997 ---- col-align.cc Fri Jul 24 16:55:04 1998 -*************** -*** 40,46 **** - } - if (strlen(cdp)>(unsigned) max_wd[2]) - max_wd[2]=strlen(cdp); -! for (lt_sp=0, sc=cdp; isspace(*sc); sc++, lt_sp++) - { - if (*sc==CH_SUSPECT) - align_set=1; ---- 40,46 ---- - } - if (strlen(cdp)>(unsigned) max_wd[2]) - max_wd[2]=strlen(cdp); -! for (lt_sp=0, sc=cdp; isspace((unsigned char)*sc); sc++, lt_sp++) - { - if (*sc==CH_SUSPECT) - align_set=1; -*************** -*** 52,58 **** - { - if (*sc==CH_SUSPECT) - align_set=1; -! if (isspace(*sc)) - rt_sp++; - else - rt_sp=0; ---- 52,58 ---- - { - if (*sc==CH_SUSPECT) - align_set=1; -! if (isspace((unsigned char)*sc)) - rt_sp++; - else - rt_sp=0; -*** html-embed.cc.old Wed Apr 23 04:25:09 1997 ---- html-embed.cc Fri Jul 24 17:05:52 1998 -*************** -*** 83,89 **** - res=new(tblock); - while (inpadd("\\text{"); - if (flg) // If flag set then add everything up to scn ---- 215,221 ---- - * This section is meant to catch strings and render them nicely - * in a mbox. - */ -! if (islower((unsigned char)*inp) || isupper((unsigned char)*inp) || flg) - { - res->add("\\text{"); - if (flg) // If flag set then add everything up to scn -*************** -*** 228,239 **** - } - - flg=0; // Re-use flg -! while (inpadd("\\text{"); - if (flg) // If flag set then add everything up to scn ---- 389,395 ---- - * This section is meant to catch strings and render them nicely - * in a mbox. - */ -! if (islower((unsigned char)*inp) || isupper((unsigned char)*inp) || flg) - { - res->add("\\text{"); - if (flg) // If flag set then add everything up to scn -*************** -*** 402,413 **** - } - - flg=0; // Re-use flg -! while (inp0) ? "{" : "*{"); -! while(isspace(pt[i])) i++; - pt+=i; - do_add=1; - } ---- 392,398 ---- - op.add('\\'); - op.add(sects[unit]); - op.add((i>0) ? "{" : "*{"); -! while(isspace((unsigned char)pt[i])) i++; - pt+=i; - do_add=1; - } -*** reader.cc.old Tue Apr 21 04:21:55 1998 ---- reader.cc Fri Jul 24 17:05:52 1998 -*************** -*** 54,60 **** - { - if ((c=fgetc(in))==EOF) - break; -! if (c<' ' || c>126) - break; - } - if (i==ST_ASC_VCHARS) ---- 54,60 ---- - { - if ((c=fgetc(in))==EOF) - break; -! if (c<' ' || c==127) - break; - } - if (i==ST_ASC_VCHARS) -*************** -*** 107,113 **** - { - if ((c=fgetc(in))==EOF) - goto re_feed; -! if (c>=' ' && c<127) - asc++; - else - asc=0; ---- 107,113 ---- - { - if ((c=fgetc(in))==EOF) - goto re_feed; -! if (c>=' ' && c!=127) - asc++; - else - asc=0; -*************** -*** 421,427 **** - while (1) - { - /* Skip spaces */ -! while (isspace(*scan)) - scan++; - - /* Look for binary operator */ ---- 421,427 ---- - while (1) - { - /* Skip spaces */ -! while (isspace((unsigned char)*scan)) - scan++; - - /* Look for binary operator */ -*************** -*** 430,441 **** - { - /* skip spaces */ - scan++; -! while (isspace(*scan)) - scan++; - - /* Grab next word */ - blvl=0; -! while (!isspace(*scan) || blvl>0) - { - switch(*scan) - { ---- 430,441 ---- - { - /* skip spaces */ - scan++; -! while (isspace((unsigned char)*scan)) - scan++; - - /* Grab next word */ - blvl=0; -! while (!isspace((unsigned char)*scan) || blvl>0) - { - switch(*scan) - { -*************** -*** 478,484 **** - while (scan>=s) - { - /* Skip spaces */ -! while (scan>=s && isspace(*scan)) - scan--; - if (scan=s) - { - /* Skip spaces */ -! while (scan>=s && isspace((unsigned char)*scan)) - scan--; - if (scan=s && isspace(*scan)) - scan--; - if (scan0 ) - { - switch(*scan) - { ---- 489,502 ---- - { - /* skip spaces */ - scan--; -! while (scan>=s && isspace((unsigned char)*scan)) - scan--; - if (scan0 ) - { - switch(*scan) - { -*************** -*** 793,804 **** - int i,n; - - /* Determine initial number, if any */ -! if (!isdigit(txt[0])) - n=-1; - else - { - n=i=0; -! for (n=0, i=0; isdigit(txt[i]); i++) - n=n*10+txt[i]-'0'; - } - ---- 793,804 ---- - int i,n; - - /* Determine initial number, if any */ -! if (!isdigit((unsigned char)txt[0])) - n=-1; - else - { - n=i=0; -! for (n=0, i=0; isdigit((unsigned char)txt[i]); i++) - n=n*10+txt[i]-'0'; - } - -*************** -*** 818,824 **** - if (txt[0]=='a') - { - i=(txt[1]=='.') ? 2 : 1; -! if (isspace(txt[i])) - { - nl=new(struct list_info); - nl->list_type=LIST_ENUM_ALPHA; ---- 818,824 ---- - if (txt[0]=='a') - { - i=(txt[1]=='.') ? 2 : 1; -! if (isspace((unsigned char)txt[i])) - { - nl=new(struct list_info); - nl->list_type=LIST_ENUM_ALPHA; -*************** -*** 835,841 **** - if (txt[0]=='A') - { - i=(txt[1]=='.') ? 2 : 1; -! if (isspace(txt[i])) - { - nl=new(struct list_info); - nl->list_type=LIST_ENUM_ALPHA; ---- 835,841 ---- - if (txt[0]=='A') - { - i=(txt[1]=='.') ? 2 : 1; -! if (isspace((unsigned char)txt[i])) - { - nl=new(struct list_info); - nl->list_type=LIST_ENUM_ALPHA; -*************** -*** 951,962 **** - int i,n; - - /* Determine initial number. This will not change */ -! if (!isdigit(txt[0])) - n=-1; - else - { - n=i=0; -! for (n=0, i=0; isdigit(txt[i]); i++) - n=n*10+txt[i]-'0'; - } - ---- 951,962 ---- - int i,n; - - /* Determine initial number. This will not change */ -! if (!isdigit((unsigned char)txt[0])) - n=-1; - else - { - n=i=0; -! for (n=0, i=0; isdigit((unsigned char)txt[i]); i++) - n=n*10+txt[i]-'0'; - } - -*************** -*** 972,978 **** - { - if (txt[i]=='.') - i++; -! while (isspace(txt[i])) - i++; - if ((s=(char *) alloca(i+1))==NULL) - { ---- 972,978 ---- - { - if (txt[i]=='.') - i++; -! while (isspace((unsigned char)txt[i])) - i++; - if ((s=(char *) alloca(i+1))==NULL) - { -*************** -*** 1008,1014 **** - case LIST_BULLET: - if (txt[0]==lp->ldata.lbullet) - { -! for (i=0; (isspace(txt[i])); i++ ) ; - if ((s=(char *) alloca(2))==NULL) - { - fprintf(stderr, ---- 1008,1014 ---- - case LIST_BULLET: - if (txt[0]==lp->ldata.lbullet) - { -! for (i=0; (isspace((unsigned char)txt[i])); i++ ) ; - if ((s=(char *) alloca(2))==NULL) - { - fprintf(stderr, -*************** -*** 1029,1035 **** - t=new(tok)(T_ITEM, s, tok::TOK_START); - lp->last_item->enqueue(t); - -! while (isspace(*(++txt))); - t=new(tok)(T_PARAGRAPH, txt, tok::TOK_START); - lp->last_item->enqueue(t); - ---- 1029,1035 ---- - t=new(tok)(T_ITEM, s, tok::TOK_START); - lp->last_item->enqueue(t); - -! while (isspace((unsigned char)*(++txt))); - t=new(tok)(T_PARAGRAPH, txt, tok::TOK_START); - lp->last_item->enqueue(t); - -*************** -*** 1070,1077 **** - t=new(tok)(T_ITEM, s, tok::TOK_START); - lp->last_item->enqueue(t); - -! for (i=0; (!isspace(txt[i])); i++ ) ; -! for ( ;(isspace(txt[i])); i++) ; - t=new(tok)(T_PARAGRAPH, txt+i, tok::TOK_START); - lp->last_item->enqueue(t); - ---- 1070,1077 ---- - t=new(tok)(T_ITEM, s, tok::TOK_START); - lp->last_item->enqueue(t); - -! for (i=0; (!isspace((unsigned char)txt[i])); i++ ) ; -! for ( ;(isspace((unsigned char)txt[i])); i++) ; - t=new(tok)(T_PARAGRAPH, txt+i, tok::TOK_START); - lp->last_item->enqueue(t); - -*** wordwrap.cc.old Tue Apr 21 05:26:10 1998 ---- wordwrap.cc Fri Jul 24 16:55:05 1998 -*************** -*** 29,35 **** - { - /* FIXME: huge words might cause an oversize line */ - /* (this is not a typesetting program like *roff) */ -! if (isspace(*sc) || *sc=='\n' || *sc=='\0') - { - if (wlen+flg>croom) - { ---- 29,35 ---- - { - /* FIXME: huge words might cause an oversize line */ - /* (this is not a typesetting program like *roff) */ -! if (isspace((unsigned char)*sc) || *sc=='\n' || *sc=='\0') - { - if (wlen+flg>croom) - { -*** html-fmt.cc.bak Tue Apr 21 04:31:20 1998 ---- html-fmt.cc Fri Jul 24 17:15:39 1998 -*************** -*** 33,38 **** ---- 33,39 ---- - { 0xAE, "(R)" }, // reserved sign - { 0xB3, ">=" }, // Greater than or = came out as B3 - { 0xBB, ">>" }, // Closing >> quotes (28th element) -+ #if 0 - { 0xDF, "ß" }, // beta - { 0xE4, "&aumt;" }, // a with umlualt - { 0xE9, "è" }, // e grave?? -*************** -*** 40,45 **** ---- 41,47 ---- - { 0xF6, "&oumt" }, // o with umlualt - { 0xFA, "\\.u" }, // u with dot? - { 0xFC, "&uumt;" }, // u with umlualt. -+ #endif - }; - - tblock *__html_do_map(const char *s) +--- col-align.cc.orig Fri Jul 24 06:59:12 1998 ++++ col-align.cc Mon Sep 14 10:30:36 1998 +@@ -50,7 +50,7 @@ + } + if (strlen(cdp)>(unsigned) max_wd[2]) + max_wd[2]=strlen(cdp); +- for (lt_sp=0, sc=cdp; isspace(*sc); sc++, lt_sp++) ++ for (lt_sp=0, sc=cdp; isspace((unsigned char)*sc); sc++, lt_sp++) + { + if (*sc==CH_SUSPECT) + align_set=1; +@@ -62,7 +62,7 @@ + { + if (*sc==CH_SUSPECT) + align_set=1; +- if (isspace(*sc)) ++ if (isspace((unsigned char)*sc)) + rt_sp++; + else + rt_sp=0; -- cgit v1.2.3