@@ -1409,8 +1409,11 @@ public static void showProperties(
14091409 TreeSet <String > sortedProps =
14101410 Builder .with (new TreeSet <String >(col )).addAll (availableNames ).remove ("Name" ).get ();
14111411
1412- String kRSUnicode = getFactory ().getProperty ("kRSUnicode" ).getValue (cp );
1413- boolean isUnihan = kRSUnicode != null ;
1412+ boolean isUnihan =
1413+ getFactory ()
1414+ .getProperty ("Udev:Block" )
1415+ .getValue (cp )
1416+ .matches ("CJK.(Unified|Compatibility).Ideographs" );
14141417
14151418 Age_Values age = Age_Values .forName (getFactory ().getProperty ("Age" ).getValue (cp ));
14161419 VersionInfo minVersion =
@@ -1424,7 +1427,7 @@ public static void showProperties(
14241427 out .append (
14251428 "<p class='changed'>Still loading UCD versions before "
14261429 + minVersion .getVersionString (2 , 4 )
1427- + "</p>" );
1430+ + "… </p>" );
14281431 }
14291432
14301433 out .append (
@@ -1472,25 +1475,34 @@ public static void showProperties(
14721475
14731476 out .append ("</td></tr></table>\n " );
14741477 if (isUnihan ) {
1475- out .append (
1476- "<table class='propTable'>"
1477- + "<caption>"
1478- + "Unihan properties for U+"
1479- + hex
1480- + "</caption>"
1481- + "<tr><td width='50%'>\n " );
1482- out .append ("<table width='100%'>\n " );
1483- for (int i = 0 ; i < unihanProperties .size () / 2 ; ++i ) {
1484- showPropertyValue (unihanProperties .get (i ), cp , minVersion , maxVersion , false , out );
1485- }
1486- out .append ("</table>\n " );
1487- out .append ("</td><td width='50%'>\n " );
1488- out .append ("<table width='100%'>\n " );
1489- for (int i = unihanProperties .size () / 2 ; i < unihanProperties .size (); ++i ) {
1490- showPropertyValue (unihanProperties .get (i ), cp , minVersion , maxVersion , false , out );
1491- }
1492- out .append ("</table>\n " );
1493- out .append ("</td></tr></table>\n " );
1478+ if (UcdLoader .getOldestLoadedUnihan () == minVersion ) {
1479+ out .append (
1480+ "<table class='propTable'>"
1481+ + "<caption>"
1482+ + "Unihan properties for U+"
1483+ + hex
1484+ + "</caption>"
1485+ + "<tr><td width='50%'>\n " );
1486+ out .append ("<table width='100%'>\n " );
1487+ for (int i = 0 ; i < unihanProperties .size () / 2 ; ++i ) {
1488+ showPropertyValue (
1489+ unihanProperties .get (i ), cp , minVersion , maxVersion , false , out );
1490+ }
1491+ out .append ("</table>\n " );
1492+ out .append ("</td><td width='50%'>\n " );
1493+ out .append ("<table width='100%'>\n " );
1494+ for (int i = unihanProperties .size () / 2 ; i < unihanProperties .size (); ++i ) {
1495+ showPropertyValue (
1496+ unihanProperties .get (i ), cp , minVersion , maxVersion , false , out );
1497+ }
1498+ out .append ("</table>\n " );
1499+ out .append ("</td></tr></table>\n " );
1500+ } else {
1501+ out .append (
1502+ "<p class='changed'>Still loading Unihan "
1503+ + minVersion .getVersionString (2 , 4 )
1504+ + "…</p>" );
1505+ }
14941506 }
14951507 }
14961508
0 commit comments