mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-27 18:50:39 +12:00
39 lines
1.2 KiB
Python
39 lines
1.2 KiB
Python
|
#!/usr/bin/env python
|
||
|
# --!-- coding: utf8 --!--
|
||
|
from PyQt5.QtWidgets import qApp
|
||
|
|
||
|
from manuskript.exporter.pandoc.abstractPlainText import abstractPlainText
|
||
|
|
||
|
|
||
|
class markdown(abstractPlainText):
|
||
|
name = "Markdown"
|
||
|
description = qApp.translate("Export", """Export to markdown, using pandoc. Allows more formatting options
|
||
|
than the basic manuskript exporter.""")
|
||
|
icon = "text-x-markdown"
|
||
|
|
||
|
exportVarName = "lastPandocMarkdown"
|
||
|
toFormat = "markdown"
|
||
|
exportFilter = "Markdown files (*.md);; Any files (*)"
|
||
|
|
||
|
|
||
|
class reST(abstractPlainText):
|
||
|
name = "reST"
|
||
|
description = qApp.translate("Export", """reStructuredText is a lightweight markup language...""")
|
||
|
|
||
|
exportVarName = "lastPandocreST"
|
||
|
toFormat = "rst"
|
||
|
icon = "text-plain"
|
||
|
exportFilter = "reST files (*.rst);; Any files (*)"
|
||
|
|
||
|
|
||
|
class latex(abstractPlainText):
|
||
|
name = "LaTeX"
|
||
|
description = qApp.translate("Export", """LaTeX is a word processor and document markup language used to create
|
||
|
beautiful documents.""")
|
||
|
|
||
|
exportVarName = "lastPandocLatex"
|
||
|
toFormat = "latex"
|
||
|
icon = "text-x-tex"
|
||
|
exportFilter = "Tex files (*.tex);; Any files (*)"
|
||
|
|