mirror of
https://github.com/rsms/inter.git
synced 2024-11-27 09:49:07 +03:00
web: adjust to new glyphinfo.json format
This commit is contained in:
parent
52b14159b7
commit
fabb2241da
@ -477,7 +477,8 @@ samples.set('Repertoire', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const g of glyphs) {
|
for (const g of glyphs) {
|
||||||
let [name, uc, ucName, color] = g
|
// let [name, uc, ucName, mtime, color] = g
|
||||||
|
let name = g[0], uc = g[1], ucName = g[2], mtime = g[3] color = g[4]
|
||||||
const ucHex = hexstr(uc, 4)
|
const ucHex = hexstr(uc, 4)
|
||||||
|
|
||||||
const style = color && color != '<derived>' ?
|
const style = color && color != '<derived>' ?
|
||||||
@ -487,10 +488,10 @@ samples.set('Repertoire', {
|
|||||||
ucName = '[unknown]'
|
ucName = '[unknown]'
|
||||||
}
|
}
|
||||||
|
|
||||||
const title = 'U+' + ucHex + ' ' + ucName + ' ("' + g[0] + '")'
|
const title = 'U+' + ucHex + ' ' + ucName + ' ("' + name + '")'
|
||||||
html += `<g ${style} title=\'${title}\'>
|
html += `<g ${style} title=\'${title}\'>
|
||||||
<span class="glyph">&#x${ucHex};</span>
|
<span class="glyph">&#x${ucHex};</span>
|
||||||
<span class="name">${g[0]}</span>
|
<span class="name">${name}</span>
|
||||||
</g>`
|
</g>`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user