diff --git a/nw/constants/constants.py b/nw/constants/constants.py index 0909b1f2..94c66244 100644 --- a/nw/constants/constants.py +++ b/nw/constants/constants.py @@ -86,6 +86,7 @@ class nwKeyWords: TAG_KEY = "@tag" POV_KEY = "@pov" + FOCUS_KEY = "@focus" CHAR_KEY = "@char" PLOT_KEY = "@plot" TIME_KEY = "@time" @@ -96,14 +97,15 @@ class nwKeyWords: # Set of 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 } # Map from Keys to Item Class KEY_CLASS = { - CHAR_KEY : nwItemClass.CHARACTER, POV_KEY : nwItemClass.CHARACTER, + FOCUS_KEY : nwItemClass.CHARACTER, + CHAR_KEY : nwItemClass.CHARACTER, PLOT_KEY : nwItemClass.PLOT, TIME_KEY : nwItemClass.TIMELINE, WORLD_KEY : nwItemClass.WORLD, @@ -180,6 +182,7 @@ class nwLabels(): KEY_NAME = { nwKeyWords.TAG_KEY : "Tag", nwKeyWords.POV_KEY : "Point of View", + nwKeyWords.FOCUS_KEY : "Focus", nwKeyWords.CHAR_KEY : "Characters", nwKeyWords.PLOT_KEY : "Plot", nwKeyWords.TIME_KEY : "Timeline", @@ -197,6 +200,7 @@ class nwLabels(): nwOutline.WCOUNT : "Words", nwOutline.PCOUNT : "Pars", nwOutline.POV : "POV", + nwOutline.FOCUS : "Focus", nwOutline.CHAR : KEY_NAME[nwKeyWords.CHAR_KEY], nwOutline.PLOT : KEY_NAME[nwKeyWords.PLOT_KEY], nwOutline.TIME : KEY_NAME[nwKeyWords.TIME_KEY], diff --git a/nw/constants/enum.py b/nw/constants/enum.py index 3e343f14..539c0ae0 100644 --- a/nw/constants/enum.py +++ b/nw/constants/enum.py @@ -127,13 +127,14 @@ class nwOutline(Enum): WCOUNT = 5 PCOUNT = 6 POV = 7 - CHAR = 8 - PLOT = 9 - TIME = 10 - WORLD = 11 - OBJECT = 12 - ENTITY = 13 - CUSTOM = 14 - SYNOP = 15 + FOCUS = 8 + CHAR = 9 + PLOT = 10 + TIME = 11 + WORLD = 12 + OBJECT = 13 + ENTITY = 14 + CUSTOM = 15 + SYNOP = 16 # END Enum nwOutline