texlive[69145] Build/source/texk/bibtex-x: bibtex-x: ver 4.02,

commits+takuji at tug.org commits+takuji at tug.org
Sat Dec 16 07:51:56 CET 2023


Revision: 69145
          https://tug.org/svn/texlive?view=revision&revision=69145
Author:   takuji
Date:     2023-12-16 07:51:56 +0100 (Sat, 16 Dec 2023)
Log Message:
-----------
bibtex-x: ver 4.02, support Unicode 15.1

Modified Paths:
--------------
    trunk/Build/source/texk/bibtex-x/ChangeLog
    trunk/Build/source/texk/bibtex-x/Makefile.am
    trunk/Build/source/texk/bibtex-x/Makefile.in
    trunk/Build/source/texk/bibtex-x/bibtex-4.c
    trunk/Build/source/texk/bibtex-x/configure
    trunk/Build/source/texk/bibtex-x/configure.ac
    trunk/Build/source/texk/bibtex-x/tests/bibtexu-char.test
    trunk/Build/source/texk/bibtex-x/tests/iscjku.bbl
    trunk/Build/source/texk/bibtex-x/tests/testiscjku.bib
    trunk/Build/source/texk/bibtex-x/version.h

Added Paths:
-----------
    trunk/Build/source/texk/bibtex-x/tests/bibtexu-iscjk.test

Modified: trunk/Build/source/texk/bibtex-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/bibtex-x/ChangeLog	2023-12-16 06:51:51 UTC (rev 69144)
+++ trunk/Build/source/texk/bibtex-x/ChangeLog	2023-12-16 06:51:56 UTC (rev 69145)
@@ -1,3 +1,14 @@
+2023-12-16  TANAKA Takuji  <ttk at t-lab.opal.ne.jp>
+
+	* configure.ac, version.h:
+	Bump version to 4.02 (16 dec 2023).
+	* bibtex-4.c:
+	Support characters defined by Unicode 15.1.
+	It works with ICU 74.1 or later.
+	* tests/bibtexu-{char,iscjk}.test,
+	tests/iscjku.bbl, tests/testiscjku.bib, Makefile.am:
+	Update tests.
+
 2023-08-30  TANAKA Takuji  <ttk at t-lab.opal.ne.jp>
 
 	* tests/{bibtex8u-mem,bibtexu-char}.test:

Modified: trunk/Build/source/texk/bibtex-x/Makefile.am
===================================================================
--- trunk/Build/source/texk/bibtex-x/Makefile.am	2023-12-16 06:51:51 UTC (rev 69144)
+++ trunk/Build/source/texk/bibtex-x/Makefile.am	2023-12-16 06:51:56 UTC (rev 69145)
@@ -94,7 +94,8 @@
                 tests/bibtex8-sort.test tests/bibtex8-char.test
 bibtexu_tests = tests/bibtexu.test tests/bibtexu-basic.test \
                 tests/bibtexu-range.test tests/bibtexu-yannis.test \
-                tests/bibtexu-sort.test tests/bibtexu-char.test
+                tests/bibtexu-sort.test tests/bibtexu-char.test \
+                tests/bibtexu-iscjk.test
 
 TESTS =
 if BIBTEX8
@@ -166,15 +167,17 @@
 	tests/txtprfxu.aux tests/txtprfxu.bbl \
 	tests/widthu.aux tests/widthu.bbl tests/testwidthu.bib \
 	tests/charu.aux tests/charu.bbl tests/testcharu.bib \
-	tests/nameu.aux tests/nameu.bbl tests/mlgbib.bib \
-	tests/iscjku.aux tests/iscjku.bbl tests/testiscjku.bib tests/testiscjk.bst
+	tests/nameu.aux tests/nameu.bbl tests/mlgbib.bib
 DISTCLEANFILES += tests/xperiodu.aux tests/xperiodu.bbl tests/xperiodu.blg \
 	tests/xsubstru.aux tests/xsubstru.bbl tests/xsubstru.blg \
 	tests/xtxtprfxu.aux tests/txtprfxu.bbl tests/xtxtprfxu.blg \
 	tests/xwidthu.aux tests/widthu.bbl tests/xwidthu.blg \
 	tests/xcharu.aux tests/xcharu.bbl tests/xcharu.blg \
-	tests/xnameu.aux tests/xnameu.bbl tests/xnameu.blg \
-	tests/xiscjku.aux tests/xiscjku.bbl tests/xiscjku.blg
+	tests/xnameu.aux tests/xnameu.bbl tests/xnameu.blg
+##
+## tests/bibtexu-iscjk.test
+EXTRA_DIST += tests/iscjku.aux tests/iscjku.bbl tests/testiscjku.bib tests/testiscjk.bst
+DISTCLEANFILES += tests/xiscjku.aux tests/xiscjku.bbl tests/xiscjku.blg
 
 ## Not used
 ##

Modified: trunk/Build/source/texk/bibtex-x/Makefile.in
===================================================================
--- trunk/Build/source/texk/bibtex-x/Makefile.in	2023-12-16 06:51:51 UTC (rev 69144)
+++ trunk/Build/source/texk/bibtex-x/Makefile.in	2023-12-16 06:51:56 UTC (rev 69145)
@@ -676,7 +676,8 @@
 
 bibtexu_tests = tests/bibtexu.test tests/bibtexu-basic.test \
                 tests/bibtexu-range.test tests/bibtexu-yannis.test \
-                tests/bibtexu-sort.test tests/bibtexu-char.test
+                tests/bibtexu-sort.test tests/bibtexu-char.test \
+                tests/bibtexu-iscjk.test
 
 TESTS = $(am__append_3) $(am__append_4)
 EXTRA_DIST = $(bibtex8_tests) $(bibtexu_tests) tests/exampl.bbl \

Modified: trunk/Build/source/texk/bibtex-x/bibtex-4.c
===================================================================
--- trunk/Build/source/texk/bibtex-x/bibtex-4.c	2023-12-16 06:51:51 UTC (rev 69144)
+++ trunk/Build/source/texk/bibtex-x/bibtex-4.c	2023-12-16 06:51:56 UTC (rev 69145)
@@ -2818,12 +2818,17 @@
           case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D:
           case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E:
           case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F:
-#if defined(U_ICU_VERSION_MAJOR_NUM) && (U_ICU_VERSION_MAJOR_NUM > 65)
+#if defined(U_ICU_VERSION_MAJOR_NUM)
+#if U_ICU_VERSION_MAJOR_NUM > 65
           case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G:
 #endif
-#if defined(U_ICU_VERSION_MAJOR_NUM) && (U_ICU_VERSION_MAJOR_NUM > 71)
+#if U_ICU_VERSION_MAJOR_NUM > 71
           case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_H:
 #endif
+#if U_ICU_VERSION_MAJOR_NUM > 73
+          case UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_I:
+#endif
+#endif
             string_width |= 0x001;
             break;
       /* kana */
@@ -2831,12 +2836,14 @@
           case UBLOCK_KATAKANA:
           case UBLOCK_KATAKANA_PHONETIC_EXTENSIONS:
           case UBLOCK_KANA_EXTENDED_A:
-#if defined(U_ICU_VERSION_MAJOR_NUM) && (U_ICU_VERSION_MAJOR_NUM > 69)
+#if defined(U_ICU_VERSION_MAJOR_NUM)
+#if U_ICU_VERSION_MAJOR_NUM > 69
           case UBLOCK_KANA_EXTENDED_B:
 #endif
-#if defined(U_ICU_VERSION_MAJOR_NUM) && (U_ICU_VERSION_MAJOR_NUM > 63)
+#if U_ICU_VERSION_MAJOR_NUM > 63
           case UBLOCK_SMALL_KANA_EXTENSION:
 #endif
+#endif
             string_width |= 0x002;
             break;
       /* hangul */

Modified: trunk/Build/source/texk/bibtex-x/configure
===================================================================
--- trunk/Build/source/texk/bibtex-x/configure	2023-12-16 06:51:51 UTC (rev 69144)
+++ trunk/Build/source/texk/bibtex-x/configure	2023-12-16 06:51:56 UTC (rev 69145)
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.71 for extended BibTeX (TeX Live) 4.01.
+# Generated by GNU Autoconf 2.71 for extended BibTeX (TeX Live) 4.02.
 #
 # Report bugs to <tex-k at tug.org>.
 #
@@ -629,8 +629,8 @@
 # Identity of this package.
 PACKAGE_NAME='extended BibTeX (TeX Live)'
 PACKAGE_TARNAME='extended-bibtex--tex-live-'
-PACKAGE_VERSION='4.01'
-PACKAGE_STRING='extended BibTeX (TeX Live) 4.01'
+PACKAGE_VERSION='4.02'
+PACKAGE_STRING='extended BibTeX (TeX Live) 4.02'
 PACKAGE_BUGREPORT='tex-k at tug.org'
 PACKAGE_URL=''
 
@@ -1400,7 +1400,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures extended BibTeX (TeX Live) 4.01 to adapt to many kinds of systems.
+\`configure' configures extended BibTeX (TeX Live) 4.02 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1472,7 +1472,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of extended BibTeX (TeX Live) 4.01:";;
+     short | recursive ) echo "Configuration of extended BibTeX (TeX Live) 4.02:";;
    esac
   cat <<\_ACEOF
 
@@ -1599,7 +1599,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-extended BibTeX (TeX Live) configure 4.01
+extended BibTeX (TeX Live) configure 4.02
 generated by GNU Autoconf 2.71
 
 Copyright (C) 2021 Free Software Foundation, Inc.
@@ -2280,7 +2280,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by extended BibTeX (TeX Live) $as_me 4.01, which was
+It was created by extended BibTeX (TeX Live) $as_me 4.02, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   $ $0$ac_configure_args_raw
@@ -8937,7 +8937,7 @@
 
 # Define the identity of the package.
  PACKAGE='extended-bibtex--tex-live-'
- VERSION='4.01'
+ VERSION='4.02'
 
 
 # Some tools Automake needs.
@@ -19329,7 +19329,7 @@
 Report bugs to <bug-libtool at gnu.org>."
 
 lt_cl_version="\
-extended BibTeX (TeX Live) config.lt 4.01
+extended BibTeX (TeX Live) config.lt 4.02
 configured by $0, generated by GNU Autoconf 2.71.
 
 Copyright (C) 2011 Free Software Foundation, Inc.
@@ -21537,7 +21537,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by extended BibTeX (TeX Live) $as_me 4.01, which was
+This file was extended by extended BibTeX (TeX Live) $as_me 4.02, which was
 generated by GNU Autoconf 2.71.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -21605,7 +21605,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config='$ac_cs_config_escaped'
 ac_cs_version="\\
-extended BibTeX (TeX Live) config.status 4.01
+extended BibTeX (TeX Live) config.status 4.02
 configured by $0, generated by GNU Autoconf 2.71,
   with options \\"\$ac_cs_config\\"
 

Modified: trunk/Build/source/texk/bibtex-x/configure.ac
===================================================================
--- trunk/Build/source/texk/bibtex-x/configure.ac	2023-12-16 06:51:51 UTC (rev 69144)
+++ trunk/Build/source/texk/bibtex-x/configure.ac	2023-12-16 06:51:56 UTC (rev 69145)
@@ -8,7 +8,7 @@
 dnl   gives unlimited permission to copy and/or distribute it,
 dnl   with or without modifications, as long as this notice is preserved.
 dnl
-AC_INIT([extended BibTeX (TeX Live)], [4.01], [tex-k at tug.org])
+AC_INIT([extended BibTeX (TeX Live)], [4.02], [tex-k at tug.org])
 AC_PREREQ([2.65])
 AC_CONFIG_SRCDIR([bibtex-1.c])
 AC_CONFIG_AUX_DIR([../../build-aux])

Modified: trunk/Build/source/texk/bibtex-x/tests/bibtexu-char.test
===================================================================
--- trunk/Build/source/texk/bibtex-x/tests/bibtexu-char.test	2023-12-16 06:51:51 UTC (rev 69144)
+++ trunk/Build/source/texk/bibtex-x/tests/bibtexu-char.test	2023-12-16 06:51:56 UTC (rev 69145)
@@ -7,8 +7,7 @@
 ExeExt=${ExeExt:-}
 _bibtexu=$BinDir/bibtexu$ExeExt
 
-test -d tests || mkdir tests
-test -d tests || exit 1
+test -d tests || mkdir -p tests
 
 LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
 #
@@ -55,19 +54,4 @@
 max_print_line=119 $_bibtexu tests/xnameu || rc=13
 diff $srcdir/tests/nameu.bbl tests/xnameu.bbl || rc=14
 
-## test for is.knj.str$
-
-DIFF="diff"; icuver=0
-$_bibtexu --version | grep "ICU version 70" && icuver=70
-if [ $icuver -eq 70 ]; then
-  # skip CJK Ideograph Extension H
-  # U+31350 -> \360\261\215\220
-  uchr='\360\261\215\220'
-  DIFF="diff --ignore-matching-lines="`printf "${uchr}"`
-  echo "*** skip checking CJK Ideograph Extension H"
-fi
-cp $srcdir/tests/iscjku.aux tests/xiscjku.aux
-$_bibtexu tests/xiscjku || rc=15
-$DIFF $srcdir/tests/iscjku.bbl tests/xiscjku.bbl || rc=16
-
 exit $rc

Added: trunk/Build/source/texk/bibtex-x/tests/bibtexu-iscjk.test
===================================================================
--- trunk/Build/source/texk/bibtex-x/tests/bibtexu-iscjk.test	                        (rev 0)
+++ trunk/Build/source/texk/bibtex-x/tests/bibtexu-iscjk.test	2023-12-16 06:51:56 UTC (rev 69145)
@@ -0,0 +1,57 @@
+#! /bin/sh -vx
+# $Id$
+# Copyright 2022-2023 TANAKA Takuji <ttk at t-lab.opal.ne.jp>
+# You may freely use, modify and/or distribute this file.
+
+BinDir=${BinDir:-.}
+ExeExt=${ExeExt:-}
+_bibtexu=$BinDir/bibtexu$ExeExt
+
+test -d tests || mkdir -p tests
+
+LC_ALL=C; export LC_ALL; LANGUAGE=C; export LANGUAGE
+#
+TEXMFCNF=$srcdir/../kpathsea; export TEXMFCNF
+BSTINPUTS=$srcdir/tests; export BSTINPUTS
+BIBINPUTS=$srcdir/tests; export BIBINPUTS
+
+
+rc=0
+
+## test for is.knj.str$
+
+icuver=1000
+$_bibtexu --version | grep 'ICU version' | sed -E 's/.*ICU version ([1-9][0-9])\..*/\1/' > tests/icuver.txt
+icuver=`cat tests/icuver.txt`
+echo "*** icuver="$icuver
+if [ $icuver -lt 74 ]; then
+  # skip CJK Ideograph Extension I
+  # ex. U+2EBF0
+  uchr='\x{2EBF0}'
+fi
+if [ $icuver -lt 72 ]; then
+  # skip CJK Ideograph Extension H
+  # ex. U+31350
+  uchr=${uchr}'|\x{31350}'
+fi
+if [ $icuver -lt 70 ]; then
+  # skip Kana Extended B
+  # ex. U+1AFF0
+  uchr=${uchr}'|\x{1AFF0}'
+fi
+if [ $icuver -lt 66 ]; then
+  # skip CJK Ideograph Extension G, Small Kana Extension
+  # ex. U+30000, U+1B150
+  uchr=${uchr}'|\x{30000}|\x{1B150}'
+fi
+cp $srcdir/tests/iscjku.aux tests/xiscjku.aux
+$_bibtexu tests/xiscjku || rc=1
+cp $srcdir/tests/iscjku.bbl tests/oiscjku.bbl
+if [ $icuver -le 73 ]; then
+  echo "*** skip checking CJK Ideograph Extension G, H or I"
+  perl -i".bak" -CD -ne "print unless /${uchr}/" tests/oiscjku.bbl
+  perl -i".bak" -CD -ne "print unless /${uchr}/" tests/xiscjku.bbl
+fi
+diff tests/oiscjku.bbl tests/xiscjku.bbl || rc=2
+
+exit $rc


Property changes on: trunk/Build/source/texk/bibtex-x/tests/bibtexu-iscjk.test
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Modified: trunk/Build/source/texk/bibtex-x/tests/iscjku.bbl
===================================================================
--- trunk/Build/source/texk/bibtex-x/tests/iscjku.bbl	2023-12-16 06:51:51 UTC (rev 69144)
+++ trunk/Build/source/texk/bibtex-x/tests/iscjku.bbl	2023-12-16 06:51:56 UTC (rev 69145)
@@ -54,6 +54,7 @@
 \item 一二三四漆捌玖拾: 1 1 hz:1 kn:0 hg:0 bp:0 misc:0
 \item 𰀀𰀁𰀂𰀃𰀄𰀅𰀆𰀇: 1 1 hz:1 kn:0 hg:0 bp:0 misc:0
 \item 𪜀𪜁𪜂𪜃𪜄𪜅𪜆𪜇: 1 1 hz:1 kn:0 hg:0 bp:0 misc:0
+\item 𮯰𮯱𮯲𮯳𮯴𮯵𮯶𮯷: 1 1 hz:1 kn:0 hg:0 bp:0 misc:0
 \item 𱍐𱍑𱍒𱍓𱍔𱍕𱍖𱍗: 1 1 hz:1 kn:0 hg:0 bp:0 misc:0
 \item 㐂㒵㓛㞍㟢㐆㐬㐮㔫㚑㐧: 1 1 hz:1 kn:0 hg:0 bp:0 misc:0
 \item ⺐⺒⺓⺔⺖⺗⺘⺙⻭⻯⻲: 2048 2048 hz:0 kn:0 hg:0 bp:0

Modified: trunk/Build/source/texk/bibtex-x/tests/testiscjku.bib
===================================================================
--- trunk/Build/source/texk/bibtex-x/tests/testiscjku.bib	2023-12-16 06:51:51 UTC (rev 69144)
+++ trunk/Build/source/texk/bibtex-x/tests/testiscjku.bib	2023-12-16 06:51:56 UTC (rev 69145)
@@ -23,6 +23,7 @@
 @Type{cjk-ideograph-ExtC-1000, field = {𪜀𪜁𪜂𪜃𪜄𪜅𪜆𪜇}, }
 @Type{cjk-ideograph-ExtG-1000, field = {𰀀𰀁𰀂𰀃𰀄𰀅𰀆𰀇}, }
 @Type{cjk-ideograph-ExtH-1000, field = {𱍐𱍑𱍒𱍓𱍔𱍕𱍖𱍗}, }
+ at Type{cjk-ideograph-ExtI-1000, field = {𮯰𮯱𮯲𮯳𮯴𮯵𮯶𮯷}, }
 
 @Type{hangul-1000, field = {가나다라마한글텍}, }
 

Modified: trunk/Build/source/texk/bibtex-x/version.h
===================================================================
--- trunk/Build/source/texk/bibtex-x/version.h	2023-12-16 06:51:51 UTC (rev 69144)
+++ trunk/Build/source/texk/bibtex-x/version.h	2023-12-16 06:51:56 UTC (rev 69145)
@@ -89,7 +89,7 @@
 */
 #ifndef __VERSION_H__
 # define __VERSION_H__              1
-# define PACKAGE_DATE               "(15 jul 2023)"
+# define PACKAGE_DATE               "(16 dec 2023)"
 # define EXT_VERSION                PACKAGE_VERSION
 # define VERSION                    PACKAGE_VERSION " " PACKAGE_DATE
 #endif                          /* __VERSION_H__ */



More information about the tex-live-commits mailing list.