pietrop / slate-transcript-editor

A React component to make correcting automated transcriptions of audio and video easier and faster. Using the SlateJs editor.
https://pietrop.github.io/slate-transcript-editor
Other
76 stars 33 forks source link

fix: OHMS export #51

Closed jshearer closed 3 years ago

jshearer commented 3 years ago

Since alignment is running on paragraphs instead of the whole document, the code to inject timecodes inline was starting from the beginning of each paragraph, instead of continuing from where it left off in the previous paragraph.

Before: Screen Shot 2021-03-14 at 3 36 58 PM

After:

Screen Shot 2021-03-14 at 3 37 16 PM

pietrop commented 3 years ago

Nice catch, apologies for introducing that bug 🐛 . Was not 100% sure about the logic to insert the time-codes.

I just tried it locally, seems great, thanks!