Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Term to Code dictionary includes only applied scoped contexts #64

Open
filip26 opened this issue Jul 30, 2022 · 1 comment
Open

Term to Code dictionary includes only applied scoped contexts #64

filip26 opened this issue Jul 30, 2022 · 1 comment

Comments

@filip26
Copy link

filip26 commented Jul 30, 2022

Hi,
the current term to code dictionary implementation includes only applied scoped contexts indexed in the application order?! This solution prevents generating static dictionaries for well-known context (sets) - the dictionary is tightly coupled with a document. Is very hard to implement.

The goal is to create a dictionary mapping strings to codes.

Easy solution to implement is to collect a set of all property names (and perhaps string values as well) found in all included contexts, no matter on (contexts) order, occurrence, nor usage, then sort it alphabetically, and that's it.

@filip26
Copy link
Author

filip26 commented Jul 30, 2022

It seems that to create the dictionary a property value must be "expanded" in order to determine if scoped context must be included. This step is unnecessary. if the dictionary creation process is decoupled from document processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant