diff --git a/unicodetools/src/main/java/org/unicode/props/IndexUnicodeProperties.java b/unicodetools/src/main/java/org/unicode/props/IndexUnicodeProperties.java index 89a8aea0b..9acd3da42 100644 --- a/unicodetools/src/main/java/org/unicode/props/IndexUnicodeProperties.java +++ b/unicodetools/src/main/java/org/unicode/props/IndexUnicodeProperties.java @@ -232,7 +232,7 @@ public UnicodeMap loadDouble(UcdProperty prop2) { if (prop2 == UcdProperty.kPrimaryNumeric || prop2 == UcdProperty.kAccountingNumeric || prop2 == UcdProperty.kOtherNumeric) { - // Unicode 15.1: A character may have multiple numeric values. + // Unicode 15.1+: A character may have multiple Unihan numeric values. pos = v.indexOf(' '); if (pos >= 0) { v = value.substring(0, pos); diff --git a/unicodetools/src/test/java/org/unicode/propstest/CheckProperties.java b/unicodetools/src/test/java/org/unicode/propstest/CheckProperties.java index 2fc23c09f..0aa3293ba 100644 --- a/unicodetools/src/test/java/org/unicode/propstest/CheckProperties.java +++ b/unicodetools/src/test/java/org/unicode/propstest/CheckProperties.java @@ -43,8 +43,7 @@ public class CheckProperties { private static final boolean VERBOSE = true; - private static final String LAST_RELEASE = Utility.searchPath[0]; - ; + private static final String JUNK = Settings.UnicodeTools.UCD_DIR; // force load private static final int DEBUG_CODE_POINT = 0x0600; @@ -129,7 +128,7 @@ public static void main(String[] args) throws Exception { extent = Extent.ALL; } if (version == null) { - version = LAST_RELEASE; + version = Settings.lastVersion; } final Timer total = new Timer(); @@ -856,6 +855,11 @@ private static Double numericValue(String a) { return Double.parseDouble(a.substring(0, slashPos)) / Double.parseDouble(a.substring(slashPos + 1)); } + // Unicode 15.1+: A character may have multiple Unihan numeric values. + int pos = a.indexOf(' '); + if (pos >= 0) { + a = a.substring(0, pos); + } return Double.parseDouble(a); }