manuskript/manuskript/exporter/pandoc/plainText.py

56 lines
1.9 KiB
Python
Raw Normal View History

2016-04-15 21:58:09 +12:00
#!/usr/bin/env python
# --!-- coding: utf8 --!--
from PyQt5.QtWidgets import qApp
from manuskript.exporter.pandoc.abstractPlainText import abstractPlainText
from manuskript.functions import safeTranslate
2016-04-15 21:58:09 +12:00
class markdown(abstractPlainText):
name = "Markdown"
description = safeTranslate(qApp, "Export", """Export to markdown, using pandoc. Allows more formatting options
2016-04-15 21:58:09 +12:00
than the basic manuskript exporter.""")
icon = "text-x-markdown"
exportVarName = "lastPandocMarkdown"
toFormat = "markdown"
exportFilter = "Markdown files (*.md);; Any files (*)"
exportDefaultSuffix = ".md"
2016-04-15 21:58:09 +12:00
class reST(abstractPlainText):
name = "reST"
description = safeTranslate(qApp, "Export", """reStructuredText is a lightweight markup language.""")
2016-04-15 21:58:09 +12:00
exportVarName = "lastPandocreST"
toFormat = "rst"
icon = "text-plain"
exportFilter = "reST files (*.rst);; Any files (*)"
exportDefaultSuffix = ".rst"
2016-04-15 21:58:09 +12:00
class latex(abstractPlainText):
name = "LaTeX"
description = safeTranslate(qApp, "Export", """LaTeX is a word processor and document markup language used to create
2016-04-15 21:58:09 +12:00
beautiful documents.""")
exportVarName = "lastPandocLatex"
toFormat = "latex"
icon = "text-x-tex"
exportFilter = "Tex files (*.tex);; Any files (*)"
exportDefaultSuffix = ".tex"
2016-04-15 21:58:09 +12:00
2017-10-12 19:36:10 +13:00
class OPML(abstractPlainText):
name = "OPML"
description = safeTranslate(qApp, "Export", """The purpose of this format is to provide a way to exchange information
2017-10-12 19:36:10 +13:00
between outliners and Internet services that can be browsed or controlled
through an outliner.""")
exportVarName = "lastPandocOPML"
toFormat = "opml"
icon = "text-x-opml+xml"
exportFilter = "OPML files (*.opml);; Any files (*)"
exportDefaultSuffix = ".opml"
2017-10-12 19:36:10 +13:00