pub fn parse(raw: &str) -> StringExpand description
Returns a simplified location string from a epubcfi.
This is a super simple EPUB CFI parser with a focus on extracting location information for
sorting Annotations.
Examples:
input: epubcfi(/6/4[chap01ref]!/4[body01]/10[para05]/1:3[xx,y])
output: 6.4.4.10.1:3https://w3c.github.io/epub-specs/epub33/epubcfi/#example-8
input: epubcfi(/6/4[chap01ref]!/4[body01]/10[para05],/2/1:1,/3:4)
output: 6.4.4.10.2.1:1https://w3c.github.io/epub-specs/epub33/epubcfi/#example-23
See https://w3c.github.io/epub-specs/epub33/epubcfi/ for more information.