program/python

caption_modifier

cobaltic5 2009. 3. 24. 20:18
  • repository : git@github.com:bysju/caption_modifier.git , git://github.com/bysju/caption_modifier.git
  • outline
    • 자막 파일을 프린트 해서 영어 공부 시 필요없는 태그를 없애는 기능을 구현하기 위해서 개발됨
    • Python 3.0.1
    • Pipes and Filters pattern 적용
      • 파일의 내용이 각각의 filter class를 통과하면서 변경이 되고 다른 파일로 저장됨
      • FilterImpl class를 상속받은 filter class를 추가 개발 하고 외부 설정 파일(default.ini)에 추가하면 특정 기능을 add or del 할 수 있음(AddFilters.py 참조)
    • 사용법 : python caption_modifier.py sourceFile경로 destFile경로 iniFile경로(optional)
    • python caption_modifier.py origin.smi test.txt  ( smi file 인 경우 )
    • python caption_modifier.py origin.srt test.txt srt.ini (srt file 인 경우)
.