novident_editor_spell_check_interface 1.0.0
novident_editor_spell_check_interface: ^1.0.0 copied to clipboard
Pure-Dart contract for spell-check integration in the Novident suite. Defines NovidentSpellChecker, SpellCheckIssue and proof-segment helpers. Independent of Flutter and of the editor.
Changelog #
1.0.0 #
- Initial release: the spell-check engine contract for Novident Editor.
NovidentSpellChecker—isValid(synchronous hot path, expected O(1)),check(misspelled ranges of a text),suggest(lazy),suggestAsync(defaults tosuggest; heavy engines override it to answer from a worker isolate),addWord/forgetWord(runtime personal dictionary, no-op by default), andlanguage.SpellCheckIssue—startOffset/endOffset(UTF-16, relative to the checked text) plus the offendingword.proofStateError/proofStateGrammarError— the attribute values stored underRichTextKeys.proofStatein a delta to mark misspelled ranges. Only the error value is ever written, and only by the spell-check engine; the base editor ignores the key entirely.