コード例 #1
0
ファイル: test.py プロジェクト: BackupTheBerlios/transcribo
    def test_rst(self):
        '''tests for the rST front end. Processes ../README.txt and all *.rst files in the ./rst subdir.'''

        from transcribo import Transcriber

        input_files = ['../README.txt']
        input_files.extend(['./rst/' + name for name in os.listdir('./rst') if name.endswith('.rst')])
        t = Transcriber(cmd_line = False, styles = ['test'])
        for name in input_files:
            logger.info('testrST: Processing %s...' % name)
            t.transcribe_file(infile = name,
                outfile = name[:-4] + '.out')
コード例 #2
0
from  transcribo import Transcriber

t = Transcriber()
t.transcribe_file()