• Robert Knight's avatar
    Support testing whether user is outside page range for assignment · c81a7191
    Robert Knight authored
    Extend the matching between focus filters and document segments to support
    matching page range focus filters against VitalSource chapter page ranges.
    
    In the case of VitalSource PDF books, each page is a separate segment, so this
    matching is simple. For EPUB-based books a segment can span a range of pages,
    and the `<mosaic-book>` element doesn't provide an API rather returns the page
    range directly as far as I can see. Instead we can use
    `MosaicBookElement.getPageBreaks` to get a list of the CFIs and corresponding
    labels of pages, which can then be matched against the current segment's CFI.
    
     - Add `SegmentInfo.pages` field which contains a page range for a
       segment
    
     - Support matching `SegmentInfo.pages` against focus filters in
       `segmentMatchesFocusFilters`.
    
     - Display data from `SegmentInfo.pages` in "Version" tab in sidebar
    
     - Add `getPageBreaks` API to VitalSource interfaces and use the data
       from this API to populate the `SegmentInfo.pages` field in the VS
       integration.
    
     - Extend the fake VitalSource books in the dev server to return fake page break
       information.
    c81a7191
Name
Last commit
Last update
.github Loading commit data...
.yarn Loading commit data...
bin Loading commit data...
dev-server Loading commit data...
docs Loading commit data...
embedding-examples Loading commit data...
images Loading commit data...
requirements Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.prettierignore Loading commit data...
.python-version Loading commit data...
.readthedocs.yaml Loading commit data...
.yarnrc.yml Loading commit data...
HACKING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
codecov.yml Loading commit data...
gulpfile.mjs Loading commit data...
package.json Loading commit data...
pyproject.toml Loading commit data...
rollup-boot.config.mjs Loading commit data...
rollup-tests.config.mjs Loading commit data...
rollup.config.mjs Loading commit data...
tailwind-annotator.config.mjs Loading commit data...
tailwind-sidebar.config.mjs Loading commit data...
tailwind.config.mjs Loading commit data...
tox.ini Loading commit data...
tsconfig.json Loading commit data...
yarn.lock Loading commit data...