script to combine Pinyin and character subtitles
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
CTHD.Pinyin.srt
CTHD.Simplified.srt
Crouching Tiger Hidden Dragon.srt
README.md
__init__.py
combine.py

README.md

Pinyin -- Chinese Characters

###subtitles combiner

####script to combine Pinyin and character subtitles

#####Download and run as example:

$ python combine.py 
  --title 'Crouching Tiger Hidden Dragon' 
  --files 'CTHD.Simplified.srt' 'CTHD.Pinyin.srt' 
===> Combined subtitles into a file named 'Crouching Tiger Hidden Dragon.srt'

You can add as many filenames as you want, these will all be combined. The title argument is used for the name of the combined file.

An example of using generators for creating data processing pipelines.

For more on this technique see:

Also make sure to check out recipe 4.13. 'Creating Data Processing Pipelines' of the excellent Python Cookbook