Adds explicit character offsets to paths that end with a TextStep
true if AST was modified, false otherwise
Check that parentPath is not missing or empty. Checks that rangeEnd is set if rangeStart is set.
true if AST was modified, false otherwise
EpubCFI spec does not allow paths ending with !, like: epubcfi(/6/4!) and epubcfi(/6/4!/4/2!,/0,/6) Fix those by converting it to: epubcfi(/6/4!/0) and epubcfi(/6/4!/4/2,!/0,!/6)
This method does not touch indirections that is immediately followed by an offset.
true if AST was modified, false otherwise
EpubCFI grammar allows for indirections before offsets but does not really specify what it should be used for. Remove indirections from those offsets
true if AST was modified, false otherwise
Removes rangeStart and rangeEnd offsets if their type is incompatible
true if AST was modified, false otherwise
Removes any initial indirection from parent path if set, like epubcfi(!/6/4....)
true if AST was modified, false otherwise
Remove local paths and offsets from rangeStart and rangeEnd if it is incompatible with parentPath offset.
true if AST was modified, false otherwise
Cut away all nodes that occur after text steps. If the parentPath is modified by this action, rangeStart and rangeEnd will be set to null.
true if AST was modified, false otherwise
Run all epubcfi validations
true if AST was modified, false otherwise
Generated using TypeDoc
Contains various validation and correction methods to repair broken EPUB CFIs.