summaryrefslogtreecommitdiff
path: root/hyphen/hyphen-2.3.patch
blob: 04b464a8bc91a8d0168317d2a9e5864eb48af02a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
*** misc/hyphen-2.3/hyphen.c	Thu Nov 22 09:51:20 2007
--- misc/build/hyphen-2.3/hyphen.c	Mon Feb 18 10:46:20 2008
***************
*** 298,304 ****
              } else {
                  hnj_strchomp(repl + 1);
                  replindex = 0;
!                 replcut = strlen(buf);
              }
              repl = hnj_strdup(repl + 1);
            }
--- 298,304 ----
              } else {
                  hnj_strchomp(repl + 1);
                  replindex = 0;
!                 replcut = (signed char) strlen(buf);
              }
              repl = hnj_strdup(repl + 1);
            }
***************
*** 331,340 ****
                      if ((((unsigned char) word[pc]) >> 6) != 2) pu++;
                      if ((ps < 0) && (replindex == pu)) {
                          ps = replindex;
!                         replindex = pc;
                      }
                      if ((ps >= 0) && ((pu - ps) == replcut)) {
!                         replcut = (pc - replindex);
                          break;
                      }
                  }
--- 331,340 ----
                      if ((((unsigned char) word[pc]) >> 6) != 2) pu++;
                      if ((ps < 0) && (replindex == pu)) {
                          ps = replindex;
!                         replindex = (signed char) pc;
                      }
                      if ((ps >= 0) && ((pu - ps) == replcut)) {
!                         replcut = (signed char) (pc - replindex);
                          break;
                      }
                  }
***************
*** 351,357 ****
  	  dict->states[state_num].repl = repl;
  	  dict->states[state_num].replindex = replindex;
            if (!replcut) {
!             dict->states[state_num].replcut = strlen(word);
            } else {
              dict->states[state_num].replcut = replcut;
            }
--- 351,357 ----
  	  dict->states[state_num].repl = repl;
  	  dict->states[state_num].replindex = replindex;
            if (!replcut) {
!             dict->states[state_num].replcut = (signed char) strlen(word);
            } else {
              dict->states[state_num].replcut = replcut;
            }
*** misc/hyphen-2.3/makefile.mk	Mon Feb 18 11:06:40 2008
--- misc/build/hyphen-2.3/makefile.mk	Mon Feb 18 11:05:49 2008
***************
*** 1 ****
! dummy
--- 1,65 ----
! #*************************************************************************
! #
! #   $RCSfile: hyphen-2.3.patch,v $
! #
! #   $Revision: 1.3 $
! #
! #   last change: $Author: mh $ $Date: 2008-02-18 10:07:47 $
! #
! #*  The Contents of this file are made available subject to
! #*  the terms of GNU Lesser General Public License Version 2.1.
! #*
! #*
! #*    GNU Lesser General Public License Version 2.1
! #*    =============================================
! #*    Copyright 2005 by Sun Microsystems, Inc.
! #*    901 San Antonio Road, Palo Alto, CA 94303, USA
! #*
! #*    This library is free software; you can redistribute it and/or
! #*    modify it under the terms of the GNU Lesser General Public
! #*    License version 2.1, as published by the Free Software Foundation.
! #*
! #*    This library is distributed in the hope that it will be useful,
! #*    but WITHOUT ANY WARRANTY; without even the implied warranty of
! #*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
! #*    Lesser General Public License for more details.
! #*
! #*    You should have received a copy of the GNU Lesser General Public
! #*    License along with this library; if not, write to the Free Software
! #*    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
! #*    MA  02111-1307  USA
! #*
! #*************************************************************************
! 
! PRJ = ..$/..$/..$/..
! 
! PRJNAME = hyphen
! TARGET  = hyphen
! CFLAGSCALL=gsd
! 
! USE_DEFFILE=TRUE
! EXTERNAL_WARNINGS_NOT_ERRORS := TRUE
! 
! .INCLUDE : settings.mk
! 
! # --- Files --------------------------------------------------------
! 
! # !! not to be compiled because those belong to a stand alone programs: !!
! #        $(SLO)$/createfp.obj\
! #        $(SLO)$/testtextcat.obj
! 
! OBJFILES=   \
!         $(OBJ)$/hyphen.obj\
!         $(OBJ)$/hnjalloc.obj\
!         $(OBJ)$/csutil.obj
! 
! # --- Targets ------------------------------------------------------
! 
! ALL: hyph_en_US.dic ALLTAR
! 
! .INCLUDE : target.mk
! 
! hyph_en_US.dic : hyphen.tex
! 	cp hyphen.tex hyphen.us
! 	patch < hyphen.patch
! 	perl substrings.pl hyphen.us hyph_en_US.dic ISO8859.-1