Repository navigation
Conversation
Contributor
|
Sorry, this has sat in the queue too long and is now being closed as we couldn't decide on progressing it. |
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As I find Audacity to be a fantastic tool for synchronising text subtitles and there is apparent community interest in adding support for the most common SubRip format, I thought I will give it a shot.
This pull request enables Audacity to both import SubRip subtitles as labels and export labels as SubRip subtitles.
The gotchas I am aware of:
sindexand pass it toLabelTrack::Export()so that a valid SubRip subtitle is produced when multiple label tracks are present in a project. Audacity's own label format does not treat this case specially because labels are not assigned sequence numbers of any kind, just start and stop times.FileSelector, which only returns a filename.|being a line separator for multi-line subtitles. This should not cause a lot of trouble as|serves as a line separator in other subtitle formats, e.g. MicroDVD (in which case I am pretty sure it is not even escapable).Finally, my C++ skills are lacking, so if you see something fishy, your gut is probably right.