File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
UnicodeJsps/src/main/java/org/unicode/jsp Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1397,10 +1397,18 @@ public static void showProperties(
13971397 String hex = com .ibm .icu .impl .Utility .hex (cp , 4 );
13981398
13991399 out .append ("<div class='bigDiv'><table class='bigTable'>\n " );
1400+ String display = toHTML .transliterate (text );
14001401 out .append (
1401- "<tr><td class='bigChar'>\u00A0 "
1402- + toHTML .transliterate (text )
1403- + "\u00A0 </td></tr>\n " );
1402+ "<tr><td class='bigChar'>"
1403+ + (display .contains ("<" )
1404+ ? "\u00A0 " + display + "\u00A0 "
1405+ : "<svg width='1.16em' viewBox='0 0 116 116' overflow='visible'>"
1406+ + "<path d='M 8,88 l 100,0' stroke='lightgrey'/>"
1407+ + "<text y='88' x='0' textLength='116' font-size='100'>"
1408+ + "\u00A0 "
1409+ + display
1410+ + "\u00A0 </text></svg>" )
1411+ + "</td></tr>\n " );
14041412 out .append ("<tr><td class='bigCode'>" + hex + "</td></tr>\n " );
14051413 out .append ("<tr><td class='bigName'>" + name + "</td></tr>\n " );
14061414 out .append ("<tr><td class='bigName'>" + scriptCat + "</td></tr>\n " );
You can’t perform that action at this time.
0 commit comments