-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CFI range generation with start and end at different nodes level #28
Comments
Thank you for spotting this bug. Would you mind contributing a unit test? By the way @Twibit , I assume you are @chardouin as well? :) |
Here it is ! |
dmitrym0
pushed a commit
to dmitrym0/readium-cfi-js
that referenced
this issue
Feb 19, 2015
… CFI if a node is a direct child.
dmitrym0
pushed a commit
to dmitrym0/readium-cfi-js
that referenced
this issue
Feb 19, 2015
Merged
A fix has been merged in. |
matwood
pushed a commit
to bibliolabs/readium-cfi-js
that referenced
this issue
Aug 12, 2015
… don't have the same level Related to readium#28
matwood
pushed a commit
to bibliolabs/readium-cfi-js
that referenced
this issue
Aug 12, 2015
… CFI if a node is a direct child.
matwood
pushed a commit
to bibliolabs/readium-cfi-js
that referenced
this issue
Aug 12, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The CFI generated for a selection starting and ending at different node level are incorrect.
For the following document :
The CFI for "important text" should be : /2/4, /2/1:5, /3:5
But the actual CFI generated is : /2/4, /2/1:5, /4/3:5
The CFI for "Some very" should be : /2/4, /1:0, /2/1:4
But the actual CFI generated is : /2/4, /4/1:0, /2/1:4
The extra step come from the parent path.
Spec : http://www.idpf.org/epub/linking/cfi/epub-cfi.html#sec-ranges
The text was updated successfully, but these errors were encountered: