From 0c87d5ffbd4a4d0ae69c8a09acdcfa122764ead4 Mon Sep 17 00:00:00 2001 From: r12a Date: Tue, 25 Jun 2024 07:07:39 +0100 Subject: [PATCH] common29/character, Improve links --- common29/character.js | 44 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/common29/character.js b/common29/character.js index 1becd25c..6e7aae6e 100755 --- a/common29/character.js +++ b/common29/character.js @@ -132,13 +132,17 @@ function showCharDetails (ch) { charBlock.appendChild(div) + var hex = ch.codePointAt(0).toString(16).toUpperCase() + while (hex.length < 4) hex = '0'+hex div = document.createElement('div') div.className = 'orthogFilePath' out = '' out += 'Find in: ' - out += `Orthography notes` + out += `Orthography` + out += ` • Other uses` + out += ` • UniView` out += ` • Picker` out += ` • Term list` out += ` • Character usage` @@ -446,7 +450,8 @@ function expandCharMarkup () { if (img || svg) out += ' style="margin:0;" ' out += `>${ unicodeChars }${ coda }` if (noname) {} - else out += `${ unicodeNames }` + //else out += `${ unicodeNames }` + else out += `${ unicodeNames }` if (window.hideBlockName) { let re = new RegExp(window.hideBlockName, 'g') @@ -487,7 +492,8 @@ function expandCharMarkup () { if (c > 0) unicodeNames += ' + ' //unicodeNames += spreadsheetRows[charlist[c]][cols['ucsName']].replace(/:/,'') - unicodeNames += `${ spreadsheetRows[charlist[c]][cols['ucsName']].replace(/:/,'') }` + //unicodeNames += `${ spreadsheetRows[charlist[c]][cols['ucsName']].replace(/:/,'') }` + unicodeNames += `${ spreadsheetRows[charlist[c]][cols['ucsName']].replace(/:/,'') }` if (split && c > 0) unicodeChars += ` + ` @@ -982,6 +988,8 @@ function showNameDetails (chars, clang, base, target, panel, list, translit, ipa out += '

' out += ' \u00A0 ' + out += ` \u00A0 ` + out += ` \u00A0 ` out += ` \u00A0 ` @@ -1030,3 +1038,33 @@ for (i=0;i