Skip to content

Conversation

@SimBe195
Copy link
Collaborator

@SimBe195 SimBe195 commented Jan 26, 2026

PR #105 introduced different formats for the Bliss::Lexicon. Before this change, the xml lexicon parser was initialized in Bliss::Lexicon::load via LexiconParser parser(config, this);, so the config member of the lexicon itself was passed in the constructor. After the PR, the parser was initialized via XmlLexiconParser parser(Core::Application::us()->getConfiguration(), &lexicon), so the global application config gets passed instead. This means that when the lexicon is configured as usual in our setups, parameters such as normalize-pronunciation don't work properly and always resort to their default value.

@curufinwe curufinwe changed the title Bugfix: Lexicon config was not used for XML Lexicon parser Fix XmlLexiconFormat: initialize XmlLexiconParser with config from the lexicon Jan 27, 2026
@curufinwe curufinwe merged commit 993200d into master Jan 27, 2026
2 checks passed
@curufinwe curufinwe deleted the fix_lexicon_config branch January 27, 2026 14:07
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

Successfully merging this pull request may close these issues.

4 participants