Reorganise constants, and add ISO language codes in order to drop dependency pycountry

This commit is contained in:
Veronica K. B. Olsen
2019-11-05 18:14:40 +01:00
parent 993339c96c
commit 0e84452533
44 changed files with 610 additions and 126 deletions
+10 -10
View File
@@ -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",
]
+5 -5
View File
@@ -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",
]
+1 -1
View File
@@ -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__)
+1 -1
View File
@@ -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__)
+1 -1
View File
@@ -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__)
+1 -1
View File
@@ -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__)
+1 -1
View File
@@ -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__)
+4 -4
View File
@@ -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",
]
+1 -1
View File
@@ -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__)