Added Outline enums and column labels to constants submodule

This commit is contained in:
Veronica K. B. Olsen
2020-04-09 19:46:10 +02:00
parent 32c6d80efb
commit 61ed3ee721
3 changed files with 42 additions and 2 deletions
+2 -1
View File
@@ -4,7 +4,7 @@ from nw.constants.constants import (
nwConst, nwFiles, nwKeyWords, nwLabels, nwDependencies, nwQuotes, nwUnicode
)
from nw.constants.enum import (
nwAlert, nwDocAction, nwItemClass, nwItemLayout, nwItemType
nwAlert, nwDocAction, nwItemClass, nwItemLayout, nwItemType, nwOutline
)
__all__ = [
@@ -22,4 +22,5 @@ __all__ = [
"nwItemClass",
"nwItemLayout",
"nwItemType",
"nwOutline",
]
+19 -1
View File
@@ -10,7 +10,7 @@
"""
from nw.constants.enum import nwItemClass, nwItemLayout
from nw.constants.enum import nwItemClass, nwItemLayout, nwOutline
class nwConst():
@@ -104,6 +104,24 @@ class nwLabels():
nwKeyWords.ENTITY_KEY : "Entities",
nwKeyWords.CUSTOM_KEY : "Custom",
}
OUTLINE_COLS = {
nwOutline.TITLE : "Title",
nwOutline.LEVEL : "Level",
nwOutline.LABEL : "Document",
nwOutline.LINE : "Line",
nwOutline.CCOUNT : "Chars",
nwOutline.WCOUNT : "Words",
nwOutline.PCOUNT : "Pars",
nwOutline.POV : "POV",
nwOutline.CHAR : KEY_NAME[nwKeyWords.CHAR_KEY],
nwOutline.PLOT : KEY_NAME[nwKeyWords.PLOT_KEY],
nwOutline.TIME : KEY_NAME[nwKeyWords.TIME_KEY],
nwOutline.WORLD : KEY_NAME[nwKeyWords.WORLD_KEY],
nwOutline.OBJECT : KEY_NAME[nwKeyWords.OBJECT_KEY],
nwOutline.ENTITY : KEY_NAME[nwKeyWords.ENTITY_KEY],
nwOutline.CUSTOM : KEY_NAME[nwKeyWords.CUSTOM_KEY],
nwOutline.SYNOP : "Synopsis",
}
# END Class nwLabels
+21
View File
@@ -88,3 +88,24 @@ class nwAlert(Enum):
BUG = 3
# END Enum nwAlert
class nwOutline(Enum):
TITLE = 0
LEVEL = 1
LABEL = 2
LINE = 3
CCOUNT = 4
WCOUNT = 5
PCOUNT = 6
POV = 7
CHAR = 8
PLOT = 9
TIME = 10
WORLD = 11
OBJECT = 12
ENTITY = 13
CUSTOM = 14
SYNOP = 15
# END Enum nwOutline