potentially BREAKING: removed ignoring of self closing tags in OSIS importer (check diffs) - this broke existing default OSIS imports. in case this is needed for SWORD (comments seemed to indicate this) another solution needs to be found. self closing tags are part of the OSIS spec and can't be ignored. at the beginning of both parseOpeningTag and parseClosingTag there is some handling code for self closing tags.
Features:
capacitor support
added options to skip notes, crossRefs or strongs on import (via IImporterOptions or directly through addBookWithContent)
added optional BibleEngine parameter for custom method to execute sql-sets (is used on book import, SQL is generated by TypeORM and passed to method)
Fixes:
[OSIS] added optional initial contents parameter for createParagraph
[OSIS] added missing paragraph type to sourceTextHasParagraphs
[OSIS] fixed getCurrentSection to go backwards through container stack (needed for hierarchical sections)
[OSIS] improved stackHasParagraph to go backwards through container stack (performance)
[OSIS] fixed not initialising auto-created paragraphs in case of titles or lineGroups
[OSIS] fixed ignoring self closing book and lineGroup tags
[OSIS] removed unnecessary checks for self closing end tags in parseOpeningTag (is handled already at the start of the method)
BREAKING: changed
BibleEngineClient
constructor parameterspotentially BREAKING: removed ignoring of self closing tags in OSIS importer (check diffs) - this broke existing default OSIS imports. in case this is needed for SWORD (comments seemed to indicate this) another solution needs to be found. self closing tags are part of the OSIS spec and can't be ignored. at the beginning of both
parseOpeningTag
andparseClosingTag
there is some handling code for self closing tags.Features:
IImporterOptions
or directly throughaddBookWithContent
)Fixes:
createParagraph
sourceTextHasParagraphs
getCurrentSection
to go backwards through container stack (needed for hierarchical sections)stackHasParagraph
to go backwards through container stack (performance)parseOpeningTag
(is handled already at the start of the method)