Posts: 171
Joined: Sep 2014
Reputation:
7
Luke M
Senior Member
Posts: 171
2017-11-01, 22:07
(This post was last modified: 2017-11-01, 22:14 by Luke M.)
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?
Posts: 14,213
Joined: Nov 2009
Reputation:
707
Klojum
Lost connection
Posts: 14,213
What sort of pre-processing or modifying is needed?
Posts: 171
Joined: Sep 2014
Reputation:
7
Luke M
Senior Member
Posts: 171
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.
Posts: 1,607
Joined: Apr 2016
(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