Skip to content

Commit e9af64b

Browse files
authored
Baseline (#1061)
* Show a baseline in character.jsp * Don’t do it for the last resort stuff
1 parent 1450868 commit e9af64b

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

UnicodeJsps/src/main/java/org/unicode/jsp/UnicodeUtilities.java

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)