Processing subtitle text
#1
Is there an easy way to process subtitle text (independently of where it comes from, after fetching and parsing etc)? Maybe an existing add-on that I can modify?

Or, maybe somebody has made one already that allows regex substitutions?
Reply
#2
What sort of pre-processing or modifying is needed?
Reply
#3
The specific processing I want is to detect quoted text and treat it differently from non-quoted. A common subtitle convention is for quoted text to translate on-screen text, while non-quoted refers to dialog. So you might want to suppress one or the other.
Reply
#4
(2017-11-01, 22:07)Luke M Wrote: Is there an easy way to process subtitle text (independently of where it comes from, after fetching and parsing etc)? Maybe an existing add-on that I can modify?

Or, maybe somebody has made one already that allows regex substitutions?

https://forum.kodi.tv/showthread.php?tid=283342
Reply
#5
(2017-11-01, 23:37)DaLanik Wrote: https://forum.kodi.tv/showthread.php?tid=283342

Thanks. This is helpful, but I'm disappointed that apparently Kodi doesn't have a subtitle hook. Duplicating Kodi's subtitle parsing and messing with files is...not ideal.
Reply

Logout Mark Read Team Forum Stats Members Help
Processing subtitle text0