didascalie-net/span

hardkeys and softkeys

Closed this issue · 1 comments

before opeing a project, need to empty keys that will definitely be replace with project keys. These are everything EXCEPT system, preferences and projectinfo. These are the "hardkeys" that should not be overwritten with opening a project.

Adding "hardkeys" key to system so that this info is configurable by editing span-base dict.

There should also be "softkeys" that are the keys that will be added empty to the list of hardkeys. This will enable us to easily reset or initialize span dict without completely regenerating it from the beginning.
1) delete all keys that are not "hardkeys"
2) create empty soft keys

When we read a project, the span keys are initialized as above, then the project is merged, creating any keys that don't exist in the basic span dict. In this way (with the help of "softkeys") the span key list will be cleaned up with every project reading.

ok, let's go