summaryrefslogtreecommitdiff
path: root/external/hyphen
diff options
context:
space:
mode:
Diffstat (limited to 'external/hyphen')
-rw-r--r--external/hyphen/UnpackedTarball_hyphen.mk4
-rw-r--r--external/hyphen/hyphen-android.patch20
-rw-r--r--external/hyphen/hyphen-fdo43931.patch15
-rw-r--r--external/hyphen/hyphen-fdo48017-wfopen.patch10
-rw-r--r--external/hyphen/hyphen-lenwaswrong.patch11
-rw-r--r--external/hyphen/hyphen-rhmin.patch27
6 files changed, 4 insertions, 83 deletions
diff --git a/external/hyphen/UnpackedTarball_hyphen.mk b/external/hyphen/UnpackedTarball_hyphen.mk
index c112b3597338..0f41367756b6 100644
--- a/external/hyphen/UnpackedTarball_hyphen.mk
+++ b/external/hyphen/UnpackedTarball_hyphen.mk
@@ -12,10 +12,6 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,hyphen))
$(eval $(call gb_UnpackedTarball_set_tarball,hyphen,$(HYPHEN_TARBALL)))
$(eval $(call gb_UnpackedTarball_add_patches,hyphen,\
- external/hyphen/hyphen-lenwaswrong.patch \
- external/hyphen/hyphen-fdo43931.patch \
- external/hyphen/hyphen-android.patch \
- external/hyphen/hyphen-rhmin.patch \
external/hyphen/hyphen-build.patch \
external/hyphen/hyphen-fdo48017-wfopen.patch \
))
diff --git a/external/hyphen/hyphen-android.patch b/external/hyphen/hyphen-android.patch
deleted file mode 100644
index d092d786f6f0..000000000000
--- a/external/hyphen/hyphen-android.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- misc/hyphen-2.8.4/config.sub
-+++ misc/build/hyphen-2.8.4/config.sub
-@@ -120,7 +120,7 @@
- # Here we must recognize all the valid KERNEL-OS combinations.
- maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
- case $maybe_os in
-- nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
-+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
- uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
- storm-chaos* | os2-emx* | rtmk-nova*)
- os=-$maybe_os
-@@ -1215,7 +1215,7 @@
- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
- | -chorusos* | -chorusrdb* \
- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
-- | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
-+ | -mingw32* | -linux-gnu* | -linux-androideabi* | -linux-newlib* | -linux-uclibc* \
- | -uxpv* | -beos* | -mpeix* | -udk* \
- | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
- | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
diff --git a/external/hyphen/hyphen-fdo43931.patch b/external/hyphen/hyphen-fdo43931.patch
deleted file mode 100644
index 0a1f0b9cbdee..000000000000
--- a/external/hyphen/hyphen-fdo43931.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- misc//hyphen-2.8.4/hyphen.c 2011-10-10 15:49:33.000000000 +0200
-+++ misc/build/hyphen-2.8.4/hyphen.c 2011-12-27 13:49:07.568283812 +0100
-@@ -436,9 +436,9 @@
- }
- } else if (k == 1) {
- /* default first level: hyphen and ASCII apostrophe */
-- if (!dict[0]->utf8) hnj_hyphen_load_line("NOHYPHEN '\n", dict[k], hashtab);
-- else hnj_hyphen_load_line("NOHYPHEN ',\xe2\x80\x93,\xe2\x80\x99\n", dict[k], hashtab);
-- strncpy(buf, "1-1/=,1,1\n", MAX_CHARS-1); // buf rewritten by hnj_hyphen_load here
-+ if (!dict[0]->utf8) hnj_hyphen_load_line("NOHYPHEN ',-\n", dict[k], hashtab);
-+ else hnj_hyphen_load_line("NOHYPHEN ',\xe2\x80\x93,\xe2\x80\x99,-\n", dict[k], hashtab);
-+ strncpy(buf, "1-1\n", MAX_CHARS-1); // buf rewritten by hnj_hyphen_load here
- buf[MAX_CHARS-1] = '\0';
- hnj_hyphen_load_line(buf, dict[k], hashtab); /* remove hyphen */
- hnj_hyphen_load_line("1'1\n", dict[k], hashtab); /* ASCII apostrophe */
diff --git a/external/hyphen/hyphen-fdo48017-wfopen.patch b/external/hyphen/hyphen-fdo48017-wfopen.patch
index 27cffa08703c..4bcf6335ac2a 100644
--- a/external/hyphen/hyphen-fdo48017-wfopen.patch
+++ b/external/hyphen/hyphen-fdo48017-wfopen.patch
@@ -1,6 +1,6 @@
diff -u hyphen/hyphen.c build/hyphen/hyphen.c
--- hyphen/hyphen.c 2014-05-22 00:28:13.164587974 +0200
-+++ build/hyphen/hyphen.c 2014-05-22 11:08:55.000000000 +0200
++++ build/hyphen/hyphen.c 2015-05-22 11:08:55.000000000 +0200
@@ -44,6 +44,11 @@
#include <unistd.h> /* for exit */
#endif
@@ -13,7 +13,7 @@ diff -u hyphen/hyphen.c build/hyphen/hyphen.c
#define noVERBOSE
/* calculate hyphenmin values with long ligature length (2 or 3 characters
-@@ -371,6 +376,22 @@
+@@ -371,12 +376,28 @@
}
}
@@ -36,10 +36,8 @@ diff -u hyphen/hyphen.c build/hyphen/hyphen.c
HyphenDict *
hnj_hyphen_load (const char *fn)
{
-@@ -383,7 +404,7 @@
- HashEntry *e;
- int state_num = 0;
-
+ HyphenDict *result;
+ FILE *f;
- f = fopen (fn, "r");
+ f = hnj_fopen (fn, "r");
if (f == NULL)
diff --git a/external/hyphen/hyphen-lenwaswrong.patch b/external/hyphen/hyphen-lenwaswrong.patch
deleted file mode 100644
index f42694ff1aae..000000000000
--- a/external/hyphen/hyphen-lenwaswrong.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- misc/hyphen-2.8.4/hyphen.c 29 Jun 2012 10:02:24 -0000 1.6
-+++ misc/build/hyphen-2.8.4/hyphen.c 12 Jul 2012 15:19:16 -0000
-@@ -951,7 +951,7 @@
- rep2 = hnj_malloc (word_size * sizeof(char *));
- pos2 = hnj_malloc (word_size * sizeof(int));
- cut2 = hnj_malloc (word_size * sizeof(int));
-- hyphens2 = hnj_malloc (word_size);
-+ hyphens2 = hnj_malloc (word_size + 3);
- for (i = 0; i < word_size; i++) rep2[i] = NULL;
- for (i = 0; i < word_size; i++) if
- (hyphens[i]&1 || (begin > 0 && i + 1 == word_size)) {
diff --git a/external/hyphen/hyphen-rhmin.patch b/external/hyphen/hyphen-rhmin.patch
deleted file mode 100644
index 12fff19f4466..000000000000
--- a/external/hyphen/hyphen-rhmin.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- misc//hyphen-2.8.4/hyphen.c
-+++ misc/build/hyphen-2.8.4/hyphen.c
-@@ -734,13 +734,13 @@
- int hnj_hyphen_rhmin(int utf8, const char *word, int word_size, char * hyphens,
- char *** rep, int ** pos, int ** cut, int rhmin)
- {
-- int i = 1;
-+ int i = 0;
- int j;
-
- // ignore numbers
- for (j = word_size - 1; j > 0 && word[j] <= '9' && word[j] >= '0'; j--) i--;
-
-- for (j = word_size - 2; i < rhmin && j > 0; j--) {
-+ for (j = word_size - 1; i < rhmin && j > 0; j--) {
- // check length of the non-standard part
- if (*rep && *pos && *cut && (*rep)[j]) {
- char * rh = strchr((*rep)[j], '=');
-@@ -753,7 +753,7 @@
- } else {
- hyphens[j] = '0';
- }
-- if (!utf8 || (word[j] & 0xc0) != 0xc0) i++;
-+ if (!utf8 || (word[j] & 0xc0) == 0xc0 || (word[j] & 0x80) != 0x80) i++;
- }
- return 0;
- }