Skip to content
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

Rdh compute rectangles for svg #347

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

kimtuck
Copy link

@kimtuck kimtuck commented Nov 22, 2016

This pull request is Finalized

Related issue(s) and/or pull request(s)

See #340

Test cases, sample files

Additional information

In some cases, the book may have an image which is surrounded by a svg tag like this: <svg:svg ....><svg:image ....></svg:image></svg:svg> In this case, the containing svg must be used to find the client rectangles. Some epub books have a cover page which is structured like this; with no other content. Without this change, it appears to readium that there is no visible content on the page, because it can't find the first visible cfi.

danielweck and others added 2 commits September 20, 2016 17:51
…g tag like this: <svg:svg ....><svg:image ....></svg:image></svg:svg> In this case, the containing svg must be used to find the client rectangles. Some epub books have a cover page which is structured like this; with no other content. Without this change, it appears to readium that there is no visible content on the page, because it can't find the first visible cfi.
@danielweck
Copy link
Member

Looks good to me. Could you please update the readium-cfi-js repository (as per the latest commit in the develop branch), so that the conflict is resolved? Thanks!

@danielweck
Copy link
Member

Let's create / find an EPUB sample to reproduce the associated issue, and let's merge this PR.

@jccr
Copy link
Contributor

jccr commented Jul 10, 2017

I'm ok with merging this, not sure about the submodule ref update though.

@danielweck
Copy link
Member

danielweck commented Jul 13, 2017

The cfi_navigation_logic.js file is now in conflict, so we might need to cherry-pick the code change manually (it is quite straight-forward). If so, let's remember to cross-reference this PR and credit @kimtuck for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants