View Single Post
Old 01-08-2012, 04:42 PM   #1
draganHR
Junior Member
draganHR began at the beginning.
 
Posts: 4
Karma: 20
Join Date: Jan 2012
Device: Kindle
Preprocess txt and txtz

Hi, i am working on plugin and i need help.

My plugin should modify markdown formatted txt files before converting to other formats. Currently i'm using `FileTypePlugin` with on_preprocess = True. Inside run method i read current txt file, process it and save as new temp file.

Is this right way to do this, or is there better/easier/correct way?

I would like to do the same with txtz files, any advices? Do i need to extract it and zip content after processing manually?

Thanks
draganHR is offline   Reply With Quote