Moved the convert classes we want to keep to the core folder. The rest will be deleted.
This commit is contained in:
@@ -1,27 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
from nw.convert.tokenizer import Tokenizer
|
|
||||||
|
|
||||||
from nw.convert.file.concat import ConcatFile
|
|
||||||
from nw.convert.file.html import HtmlFile
|
|
||||||
from nw.convert.file.latex import LaTeXFile
|
|
||||||
from nw.convert.file.markdown import MarkdownFile
|
|
||||||
from nw.convert.file.text import TextFile
|
|
||||||
|
|
||||||
from nw.convert.text.tohtml import ToHtml
|
|
||||||
from nw.convert.text.tolatex import ToLaTeX
|
|
||||||
from nw.convert.text.tomarkdown import ToMarkdown
|
|
||||||
from nw.convert.text.totext import ToText
|
|
||||||
|
|
||||||
__all__ = [
|
|
||||||
"Tokenizer",
|
|
||||||
"ConcatFile",
|
|
||||||
"HtmlFile",
|
|
||||||
"LaTeXFile",
|
|
||||||
"MarkdownFile",
|
|
||||||
"TextFile",
|
|
||||||
"ToHtml",
|
|
||||||
"ToLaTeX",
|
|
||||||
"ToMarkdown",
|
|
||||||
"ToText",
|
|
||||||
]
|
|
||||||
@@ -6,6 +6,8 @@ from nw.core.project import NWProject
|
|||||||
from nw.core.spellcheck import NWSpellCheck
|
from nw.core.spellcheck import NWSpellCheck
|
||||||
from nw.core.spellcheck import NWSpellEnchant
|
from nw.core.spellcheck import NWSpellEnchant
|
||||||
from nw.core.spellcheck import NWSpellSimple
|
from nw.core.spellcheck import NWSpellSimple
|
||||||
|
from nw.core.tokenizer import Tokenizer
|
||||||
|
from nw.core.tohtml import ToHtml
|
||||||
from nw.core.tools import countWords
|
from nw.core.tools import countWords
|
||||||
from nw.core.tools import projectMaintenance
|
from nw.core.tools import projectMaintenance
|
||||||
from nw.core.tools import numberToWord
|
from nw.core.tools import numberToWord
|
||||||
@@ -17,6 +19,8 @@ __all__ = [
|
|||||||
"NWSpellCheck",
|
"NWSpellCheck",
|
||||||
"NWSpellEnchant",
|
"NWSpellEnchant",
|
||||||
"NWSpellSimple",
|
"NWSpellSimple",
|
||||||
|
"Tokenizer",
|
||||||
|
"ToHtml",
|
||||||
"countWords",
|
"countWords",
|
||||||
"projectMaintenance",
|
"projectMaintenance",
|
||||||
"numberToWord",
|
"numberToWord",
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import logging
|
|||||||
import re
|
import re
|
||||||
import nw
|
import nw
|
||||||
|
|
||||||
from nw.convert.tokenizer import Tokenizer
|
from nw.core.tokenizer import Tokenizer
|
||||||
from nw.constants import nwUnicode, nwLabels
|
from nw.constants import nwUnicode, nwLabels
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
@@ -15,7 +15,6 @@ from nw.gui.additions.qswitch import QSwitch
|
|||||||
from nw.gui.dialogs.configeditor import GuiConfigEditor
|
from nw.gui.dialogs.configeditor import GuiConfigEditor
|
||||||
from nw.gui.dialogs.docmerge import GuiDocMerge
|
from nw.gui.dialogs.docmerge import GuiDocMerge
|
||||||
from nw.gui.dialogs.docsplit import GuiDocSplit
|
from nw.gui.dialogs.docsplit import GuiDocSplit
|
||||||
from nw.gui.dialogs.export import GuiExport
|
|
||||||
from nw.gui.dialogs.itemeditor import GuiItemEditor
|
from nw.gui.dialogs.itemeditor import GuiItemEditor
|
||||||
from nw.gui.dialogs.projecteditor import GuiProjectEditor
|
from nw.gui.dialogs.projecteditor import GuiProjectEditor
|
||||||
from nw.gui.dialogs.projectload import GuiProjectLoad
|
from nw.gui.dialogs.projectload import GuiProjectLoad
|
||||||
@@ -48,7 +47,6 @@ __all__ = [
|
|||||||
"GuiConfigEditor",
|
"GuiConfigEditor",
|
||||||
"GuiDocMerge",
|
"GuiDocMerge",
|
||||||
"GuiDocSplit",
|
"GuiDocSplit",
|
||||||
"GuiExport",
|
|
||||||
"GuiItemEditor",
|
"GuiItemEditor",
|
||||||
"GuiProjectEditor",
|
"GuiProjectEditor",
|
||||||
"GuiProjectLoad",
|
"GuiProjectLoad",
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
from nw.gui.dialogs.configeditor import GuiConfigEditor
|
from nw.gui.dialogs.configeditor import GuiConfigEditor
|
||||||
from nw.gui.dialogs.docmerge import GuiDocMerge
|
from nw.gui.dialogs.docmerge import GuiDocMerge
|
||||||
from nw.gui.dialogs.docsplit import GuiDocSplit
|
from nw.gui.dialogs.docsplit import GuiDocSplit
|
||||||
from nw.gui.dialogs.export import GuiExport
|
|
||||||
from nw.gui.dialogs.itemeditor import GuiItemEditor
|
from nw.gui.dialogs.itemeditor import GuiItemEditor
|
||||||
from nw.gui.dialogs.projecteditor import GuiProjectEditor
|
from nw.gui.dialogs.projecteditor import GuiProjectEditor
|
||||||
from nw.gui.dialogs.projectload import GuiProjectLoad
|
from nw.gui.dialogs.projectload import GuiProjectLoad
|
||||||
@@ -13,7 +12,6 @@ __all__ = [
|
|||||||
"GuiConfigEditor",
|
"GuiConfigEditor",
|
||||||
"GuiDocMerge",
|
"GuiDocMerge",
|
||||||
"GuiDocSplit",
|
"GuiDocSplit",
|
||||||
"GuiExport",
|
|
||||||
"GuiItemEditor",
|
"GuiItemEditor",
|
||||||
"GuiProjectEditor",
|
"GuiProjectEditor",
|
||||||
"GuiProjectLoad",
|
"GuiProjectLoad",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ from PyQt5.QtCore import Qt
|
|||||||
from PyQt5.QtWidgets import QTextBrowser
|
from PyQt5.QtWidgets import QTextBrowser
|
||||||
from PyQt5.QtGui import QTextOption, QFont, QPalette, QColor, QTextCursor
|
from PyQt5.QtGui import QTextOption, QFont, QPalette, QColor, QTextCursor
|
||||||
|
|
||||||
from nw.convert import ToHtml
|
from nw.core import ToHtml
|
||||||
from nw.constants import nwAlert, nwItemType, nwDocAction
|
from nw.constants import nwAlert, nwItemType, nwDocAction
|
||||||
from nw.gui.elements.doctitlebar import GuiDocTitleBar
|
from nw.gui.elements.doctitlebar import GuiDocTitleBar
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user