update hyphen 2.8.7
Change-Id: Icbe95429903dd3605acfd659c46f001d838b52c3
This commit is contained in:
@@ -62,7 +62,7 @@ export HARFBUZZ_MD5SUM := a4a9b548577e2ee22f0887937da5fd6c
|
||||
export HARFBUZZ_TARBALL := harfbuzz-0.9.23.tar.bz2
|
||||
export HSQLDB_TARBALL := 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
|
||||
export HUNSPELL_TARBALL := 3121aaf3e13e5d88dfff13fb4a5f1ab8-hunspell-1.3.2.tar.gz
|
||||
export HYPHEN_TARBALL := a2f6010987e1c601274ab5d63b72c944-hyphen-2.8.4.tar.gz
|
||||
export HYPHEN_TARBALL := ecaf645cb09bd7b6ad0497b8a91fbd22-hyphen-2.8.7.tar.gz
|
||||
export ICU_TARBALL := b73baa6fbdfef197608d1f69300919b9-icu4c-53_1-src.tgz
|
||||
export JFREEREPORT_FLOW_ENGINE_TARBALL := ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
|
||||
export JFREEREPORT_FLUTE_TARBALL := d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
|
||||
|
4
external/hyphen/UnpackedTarball_hyphen.mk
vendored
4
external/hyphen/UnpackedTarball_hyphen.mk
vendored
@@ -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 \
|
||||
))
|
||||
|
20
external/hyphen/hyphen-android.patch
vendored
20
external/hyphen/hyphen-android.patch
vendored
@@ -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* \
|
15
external/hyphen/hyphen-fdo43931.patch
vendored
15
external/hyphen/hyphen-fdo43931.patch
vendored
@@ -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 */
|
10
external/hyphen/hyphen-fdo48017-wfopen.patch
vendored
10
external/hyphen/hyphen-fdo48017-wfopen.patch
vendored
@@ -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)
|
||||
|
11
external/hyphen/hyphen-lenwaswrong.patch
vendored
11
external/hyphen/hyphen-lenwaswrong.patch
vendored
@@ -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)) {
|
27
external/hyphen/hyphen-rhmin.patch
vendored
27
external/hyphen/hyphen-rhmin.patch
vendored
@@ -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;
|
||||
}
|
Reference in New Issue
Block a user