Work with EpubCFI for EPUB linking
masterThe EpubCFI class handles the parsing and creation of EPUB Canonical Fragment Identifiers (CFIs), which are used to link to specific locations within an EPUB document.
It supports:
- Character Offset: e.g.,
epubcfi(/6/4[chap01ref]!/4[body01]/10[para05]/2/1:3) - Simple Ranges: e.g.,
epubcfi(/6/4[chap01ref]!/4[body01]/10[para05],/2/1:1,/3:4)
Note that it does not implement Temporal Offset (~), Spatial Offset (@), Temporal-Spatial Offset (~ + @), or Text Location Assertion (\[).