-
Notifications
You must be signed in to change notification settings - Fork 45
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
getCurrentSelectionCfi() error with following xhtml #47
Comments
Thanks for the feedback. |
Oh, I apologize for forgetting this. We're using the latest readium-js directly. Tried master and develop. Happens across all browsers (tested latest FF, Chrome, Safari) |
I assigned Juan because he is pretty good at figuring out CFI -related bugs, but that does not mean he has the required free cycles to work on this now :) |
@iLern |
I hope this helps: https://monosnap.com/file/lPiYEa7usEwXNGzMV7vTDSDOpqEJFB |
@iLern you can add screenshots / images directly into the GitHub comment box :) |
This seems to be a difference between the range CFI and the kind of CFI The correct fix would be to change the method to accept range CFIs (which A quick fix, in the interim, would be to truncate the comma and everything For instance: var cfi = '/4,/4/1:16,/6/1:151'; console.log(truncatedCfi); // '/4' Jonah Dempcy On Fri, Feb 5, 2016 at 11:45 AM, Daniel Weck [email protected]
|
I just posted a bug in the readium-shared-js repo as I didn't realize there was a separate CFI repo, but I think it's related to this issue. It has steps to reproduce on the readium firebase app as well as screenshots. Any help appreciated! |
Thanks in advance for looking at this.
When we're using the attached xhtml file (in a zip) we're getting this error when selecting a section that starts in the first paragraph and ends in the second paragraph:
Uncaught SyntaxError: Expected "!/", "/", "[" or [0-9] but "," found.
The CFI looks like for example like this before being passed to peg$parse:
epubcfi(/4,/4/1:16,/6/1:151)
Any idea how this could be fixed? Thanks in advance!
text-1.xhtml.zip
The text was updated successfully, but these errors were encountered: