Add the @focus keyword to the base constant classes

This commit is contained in:
Veronica K. B. Olsen
2021-02-10 21:46:55 +01:00
parent 3c355e2d75
commit 19b7b51eea
2 changed files with 15 additions and 10 deletions
+6 -2
View File
@@ -86,6 +86,7 @@ class nwKeyWords:
TAG_KEY = "@tag" TAG_KEY = "@tag"
POV_KEY = "@pov" POV_KEY = "@pov"
FOCUS_KEY = "@focus"
CHAR_KEY = "@char" CHAR_KEY = "@char"
PLOT_KEY = "@plot" PLOT_KEY = "@plot"
TIME_KEY = "@time" TIME_KEY = "@time"
@@ -96,14 +97,15 @@ class nwKeyWords:
# Set of Valid Keys # Set of Valid Keys
VALID_KEYS = { VALID_KEYS = {
TAG_KEY, POV_KEY, CHAR_KEY, PLOT_KEY, TIME_KEY, TAG_KEY, POV_KEY, FOCUS_KEY, CHAR_KEY, PLOT_KEY, TIME_KEY,
WORLD_KEY, OBJECT_KEY, ENTITY_KEY, CUSTOM_KEY WORLD_KEY, OBJECT_KEY, ENTITY_KEY, CUSTOM_KEY
} }
# Map from Keys to Item Class # Map from Keys to Item Class
KEY_CLASS = { KEY_CLASS = {
CHAR_KEY : nwItemClass.CHARACTER,
POV_KEY : nwItemClass.CHARACTER, POV_KEY : nwItemClass.CHARACTER,
FOCUS_KEY : nwItemClass.CHARACTER,
CHAR_KEY : nwItemClass.CHARACTER,
PLOT_KEY : nwItemClass.PLOT, PLOT_KEY : nwItemClass.PLOT,
TIME_KEY : nwItemClass.TIMELINE, TIME_KEY : nwItemClass.TIMELINE,
WORLD_KEY : nwItemClass.WORLD, WORLD_KEY : nwItemClass.WORLD,
@@ -180,6 +182,7 @@ class nwLabels():
KEY_NAME = { KEY_NAME = {
nwKeyWords.TAG_KEY : "Tag", nwKeyWords.TAG_KEY : "Tag",
nwKeyWords.POV_KEY : "Point of View", nwKeyWords.POV_KEY : "Point of View",
nwKeyWords.FOCUS_KEY : "Focus",
nwKeyWords.CHAR_KEY : "Characters", nwKeyWords.CHAR_KEY : "Characters",
nwKeyWords.PLOT_KEY : "Plot", nwKeyWords.PLOT_KEY : "Plot",
nwKeyWords.TIME_KEY : "Timeline", nwKeyWords.TIME_KEY : "Timeline",
@@ -197,6 +200,7 @@ class nwLabels():
nwOutline.WCOUNT : "Words", nwOutline.WCOUNT : "Words",
nwOutline.PCOUNT : "Pars", nwOutline.PCOUNT : "Pars",
nwOutline.POV : "POV", nwOutline.POV : "POV",
nwOutline.FOCUS : "Focus",
nwOutline.CHAR : KEY_NAME[nwKeyWords.CHAR_KEY], nwOutline.CHAR : KEY_NAME[nwKeyWords.CHAR_KEY],
nwOutline.PLOT : KEY_NAME[nwKeyWords.PLOT_KEY], nwOutline.PLOT : KEY_NAME[nwKeyWords.PLOT_KEY],
nwOutline.TIME : KEY_NAME[nwKeyWords.TIME_KEY], nwOutline.TIME : KEY_NAME[nwKeyWords.TIME_KEY],
+9 -8
View File
@@ -127,13 +127,14 @@ class nwOutline(Enum):
WCOUNT = 5 WCOUNT = 5
PCOUNT = 6 PCOUNT = 6
POV = 7 POV = 7
CHAR = 8 FOCUS = 8
PLOT = 9 CHAR = 9
TIME = 10 PLOT = 10
WORLD = 11 TIME = 11
OBJECT = 12 WORLD = 12
ENTITY = 13 OBJECT = 13
CUSTOM = 14 ENTITY = 14
SYNOP = 15 CUSTOM = 15
SYNOP = 16
# END Enum nwOutline # END Enum nwOutline