Esempio n. 1
0
def run(sourcePath, suffix=''):
    ui = UiTk('yWriter import/export')
    converter = Yw7Converter()
    converter.ui = ui
    kwargs = {'suffix': suffix}
    converter.run(sourcePath, **kwargs)
    ui.start()
Esempio n. 2
0
def run(sourcePath, suffix=None, markdownMode=False, noTitles=False):
    ui = UiTk('yWriter import/export')
    converter = MdConverter()
    converter.ui = ui
    kwargs = {
        'suffix': suffix,
        'markdown_mode': markdownMode,
        'scene_titles': not noTitles
    }
    converter.run(sourcePath, **kwargs)
    ui.start()