Reorganise constants, and add ISO language codes in order to drop dependency pycountry
This commit is contained in:
+10
-10
@@ -14,14 +14,14 @@ 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,
|
||||
"Tokenizer",
|
||||
"ConcatFile",
|
||||
"HtmlFile",
|
||||
"LaTeXFile",
|
||||
"MarkdownFile",
|
||||
"TextFile",
|
||||
"ToHtml",
|
||||
"ToLaTeX",
|
||||
"ToMarkdown",
|
||||
"ToText",
|
||||
]
|
||||
|
||||
@@ -7,9 +7,9 @@ from nw.convert.file.markdown import MarkdownFile
|
||||
from nw.convert.file.text import TextFile
|
||||
|
||||
__all__ = [
|
||||
ConcatFile,
|
||||
HtmlFile,
|
||||
LaTeXFile,
|
||||
MarkdownFile,
|
||||
TextFile,
|
||||
"ConcatFile",
|
||||
"HtmlFile",
|
||||
"LaTeXFile",
|
||||
"MarkdownFile",
|
||||
"TextFile",
|
||||
]
|
||||
|
||||
@@ -19,7 +19,7 @@ from PyQt5.QtWidgets import QMessageBox
|
||||
|
||||
from nw.convert.file.text import TextFile
|
||||
from nw.convert.tokenizer import Tokenizer
|
||||
from nw.enum import nwAlert, nwItemLayout
|
||||
from nw.constants import nwAlert, nwItemLayout
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import nw
|
||||
|
||||
from nw.convert.file.text import TextFile
|
||||
from nw.convert.text.tohtml import ToHtml
|
||||
from nw.enum import nwAlert
|
||||
from nw.constants import nwAlert
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import nw
|
||||
|
||||
from nw.convert.file.text import TextFile
|
||||
from nw.convert.text.tolatex import ToLaTeX
|
||||
from nw.enum import nwAlert
|
||||
from nw.constants import nwAlert
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import nw
|
||||
|
||||
from nw.convert.file.text import TextFile
|
||||
from nw.convert.text.tomarkdown import ToMarkdown
|
||||
from nw.enum import nwAlert
|
||||
from nw.constants import nwAlert
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ from os import path
|
||||
from PyQt5.QtWidgets import QMessageBox
|
||||
|
||||
from nw.convert.text.totext import ToText
|
||||
from nw.enum import nwAlert, nwItemType, nwItemLayout, nwItemClass
|
||||
from nw.constants import nwAlert, nwItemType, nwItemLayout, nwItemClass
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ from nw.convert.text.tomarkdown import ToMarkdown
|
||||
from nw.convert.text.totext import ToText
|
||||
|
||||
__all__ = [
|
||||
ToHtml,
|
||||
ToLaTeX,
|
||||
ToMarkdown,
|
||||
ToText,
|
||||
"ToHtml",
|
||||
"ToLaTeX",
|
||||
"ToMarkdown",
|
||||
"ToText",
|
||||
]
|
||||
|
||||
@@ -20,7 +20,7 @@ from PyQt5.QtCore import QRegularExpression
|
||||
|
||||
from nw.project.document import NWDoc
|
||||
from nw.tools.translate import numberToWord
|
||||
from nw.enum import nwItemLayout
|
||||
from nw.constants import nwItemLayout
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user