diff options
Diffstat (limited to 'Build/source/texk/bibtex-x/bibtex-1.c')
-rw-r--r-- | Build/source/texk/bibtex-x/bibtex-1.c | 36 |
1 files changed, 33 insertions, 3 deletions
diff --git a/Build/source/texk/bibtex-x/bibtex-1.c b/Build/source/texk/bibtex-x/bibtex-1.c index 3c4fde5119c..29ca1c46547 100644 --- a/Build/source/texk/bibtex-x/bibtex-1.c +++ b/Build/source/texk/bibtex-x/bibtex-1.c @@ -4,9 +4,7 @@ ** ** MODULE ** -** $RCSfile: bibtex-1.c,v $ -** $Revision: 3.71 $ -** $Date: 1996/08/18 20:47:30 $ +** file: bibtex-1.c ** ** DESCRIPTION ** @@ -318,6 +316,37 @@ BEGIN out_buf_ptr = MAX_PRINT_LINE + 1; while (out_buf_ptr < end_ptr) BEGIN +#ifdef UTF_8 + if (lex_class[out_buf[out_buf_ptr]] == WHITE_SPACE) + BEGIN + UChar32 ch; + U8_GET_OR_FFFD(out_buf, out_buf_ptr-4, out_buf_ptr-1, -1, ch); + switch ( ublock_getCode(ch) ) + BEGIN + case UBLOCK_BASIC_LATIN: + case UBLOCK_LATIN_1_SUPPLEMENT: + case UBLOCK_LATIN_EXTENDED_A: + case UBLOCK_LATIN_EXTENDED_B: + case UBLOCK_LATIN_EXTENDED_C: + case UBLOCK_LATIN_EXTENDED_D: + case UBLOCK_LATIN_EXTENDED_E: + case UBLOCK_LATIN_EXTENDED_F: + case UBLOCK_LATIN_EXTENDED_G: + case UBLOCK_LATIN_EXTENDED_ADDITIONAL: + case UBLOCK_GREEK: + case UBLOCK_GREEK_EXTENDED: + case UBLOCK_CYRILLIC: + case UBLOCK_CYRILLIC_SUPPLEMENT: + case UBLOCK_CYRILLIC_EXTENDED_A: + case UBLOCK_CYRILLIC_EXTENDED_B: + case UBLOCK_CYRILLIC_EXTENDED_C: + case UBLOCK_HANGUL_SYLLABLES: + goto Loop1_Exit; /* break line */ + break; + END + END + INCR (out_buf_ptr); /* do not break line */ +#else if (lex_class[out_buf[out_buf_ptr]] != WHITE_SPACE) BEGIN INCR (out_buf_ptr); @@ -326,6 +355,7 @@ BEGIN BEGIN goto Loop1_Exit; END +#endif END Loop1_Exit: if (out_buf_ptr == end_ptr) |