diff --git a/wp-hyperaudio/hyperaudio-admin.php b/wp-hyperaudio/hyperaudio-admin.php index e0fae7e..3f401b6 100644 --- a/wp-hyperaudio/hyperaudio-admin.php +++ b/wp-hyperaudio/hyperaudio-admin.php @@ -259,6 +259,7 @@ function hyperaudio_options_page() + diff --git a/wp-hyperaudio/hyperaudio.php b/wp-hyperaudio/hyperaudio.php index f649ee9..da87299 100644 --- a/wp-hyperaudio/hyperaudio.php +++ b/wp-hyperaudio/hyperaudio.php @@ -3,7 +3,7 @@ * Plugin Name: Hyperaudio Interactive Transcript * Plugin URI: https://hyper.audio * Description: Hyperaudio Interactive Transcript Maker and Player – maximise your audio and video content's accessibility to humans and search engines. -* Version: 1.0.22 +* Version: 1.0.23 * Author: Mark Boas * Author URI: https://maboa.it **/ diff --git a/wp-hyperaudio/js/converter.js b/wp-hyperaudio/js/converter.js index 3ca472d..cf1cb49 100644 --- a/wp-hyperaudio/js/converter.js +++ b/wp-hyperaudio/js/converter.js @@ -373,6 +373,47 @@ $(document).ready(function() { ht = items.join(''); break; + case 'dpe': + var data = JSON.parse(input); + + var words = data.words; + var paras = data.paragraphs; + var items = ['
']; + + $.each(words, function(i, word) { + + $.each(paras, function(j, para) { + if (word.start === para.start) { + items.push("

"); + + if (para.speaker.length > 0){ + items.push('['+para.speaker+'] '); + } + } + }); + + items.push( + '' + + word.text + " " + + ' ' + ); + + $.each(paras, function(j, para) { + if (word.end === para.end) { + items.push("

"); + } + }); + }); + + items.push('

'); + + ht = items.join(''); + break; + case 'gentle': var data = JSON.parse(input);