diff --git a/dist/index.html b/dist/index.html index aabc33e..2a30556 100644 --- a/dist/index.html +++ b/dist/index.html @@ -112,6 +112,22 @@ async function renderRecHistory() { recs.map(r => { const d = new Date(r.ts); const time = d.toLocaleTimeString('ru-RU', {hour:'2-digit',minute:'2-digit'}); + let trHTML = ''; + if (r.transcription) { + trHTML = '' + + r.transcription.split(/\s+/).map(w => { + const sy = syllabifyIT(w); + if (sy.includes('-')) { + return sy.split('-').map(s => + '' + s + '' + ).join('·'); + } + return w; + }).join(' ') + + ''; + } return '
' + '' + r.word + '' + @@ -119,7 +135,7 @@ async function renderRecHistory() { '' + '' + '' + - (r.transcription ? '' + syllabifyPhrase(r.transcription) + '' : '') + + trHTML + '' + '
'; }).join(''); @@ -666,7 +682,7 @@ async function doCompare(blob, originalText, duration) {