NOHYPHEN fix
This commit is contained in:
parent
f86ce87baa
commit
830eccebc3
|
@ -1,3 +1,7 @@
|
||||||
|
2010-12-01 László Németh <nemeth at OOo>:
|
||||||
|
* hyphen.c: NOHYPHEN fix for a special case (NOHYPHEN
|
||||||
|
character in starting position, eg. "-example")
|
||||||
|
|
||||||
2010-11-27 László Németh <nemeth at OOo>:
|
2010-11-27 László Németh <nemeth at OOo>:
|
||||||
* hyphen.c: add NOHYPHEN feature
|
* hyphen.c: add NOHYPHEN feature
|
||||||
to handle special hyphenation at hyphens and apostrophes,
|
to handle special hyphenation at hyphens and apostrophes,
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -1,3 +1,5 @@
|
||||||
|
2010-12-01 Hyphen 2,7,1 bug fix release
|
||||||
|
|
||||||
2010-11-27 Hyphen 2.7 release:
|
2010-11-27 Hyphen 2.7 release:
|
||||||
- The new hyphenation problem of OpenOffice.org 3.2, related to its
|
- The new hyphenation problem of OpenOffice.org 3.2, related to its
|
||||||
modified word breaking of words with hyphen characters, can be fixed
|
modified word breaking of words with hyphen characters, can be fixed
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
AC_INIT([hyphen],[2.7],[nemeth@openoffice.org])
|
AC_INIT([hyphen],[2.7.1],[nemeth@openoffice.org])
|
||||||
AM_INIT_AUTOMAKE(hyphen,2.7)
|
AM_INIT_AUTOMAKE(hyphen,2.7.1)
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
AC_PROG_LIBTOOL
|
AC_PROG_LIBTOOL
|
||||||
|
|
4
hyphen.c
4
hyphen.c
|
@ -1078,7 +1078,7 @@ int hnj_hyphen_hyphenate2 (HyphenDict *dict,
|
||||||
char * nhy = (char *) strstr(word, nh);
|
char * nhy = (char *) strstr(word, nh);
|
||||||
while (nhy) {
|
while (nhy) {
|
||||||
hyphens[nhy - word + strlen(nh) - 1] = 0;
|
hyphens[nhy - word + strlen(nh) - 1] = 0;
|
||||||
hyphens[nhy - word - 1] = 0;
|
if (nhy - word - 1 >= 0) hyphens[nhy - word - 1] = 0;
|
||||||
nhy = (char *) strstr(nhy + 1, nh);
|
nhy = (char *) strstr(nhy + 1, nh);
|
||||||
}
|
}
|
||||||
nh = nh + strlen(nh) + 1;
|
nh = nh + strlen(nh) + 1;
|
||||||
|
@ -1114,7 +1114,7 @@ int hnj_hyphen_hyphenate3 (HyphenDict *dict,
|
||||||
char * nhy = (char *) strstr(word, nh);
|
char * nhy = (char *) strstr(word, nh);
|
||||||
while (nhy) {
|
while (nhy) {
|
||||||
hyphens[nhy - word + strlen(nh) - 1] = 0;
|
hyphens[nhy - word + strlen(nh) - 1] = 0;
|
||||||
hyphens[nhy - word - 1] = 0;
|
if (nhy - word - 1 >= 0) hyphens[nhy - word - 1] = 0;
|
||||||
nhy = (char *) strstr(nhy + 1, nh);
|
nhy = (char *) strstr(nhy + 1, nh);
|
||||||
}
|
}
|
||||||
nh = nh + strlen(nh) + 1;
|
nh = nh + strlen(nh) + 1;
|
||||||
|
|
Loading…
Reference in New Issue