-
Notifications
You must be signed in to change notification settings - Fork 101
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
Visibility computations by client rectangles, vertical writing mode (column layout) #87
Comments
Hi Daniel, sorry for being silent - just got back from a vacation. -- iD From: danielweck [mailto:notifications@github.com] @yuriyphttps://github.com/yuriyp Yuri, Igor? Given your past contributions to the "rectangle" algorithms in CfiNavigationLogic, any chance you could help me figure-out how to implement support for vertical writing mode + right-to-left text/page progression? I would really appreciate your help, as this is a blocking issue that prevents supports for Japanese EPUBs: I started a feature branch: https://github.com/readium/readium-shared-js/tree/feature/verticalColumns ...and as you can see I did not get very far: c6a52behttps://github.com/readium/readium-shared-js/commit/c6a52be291b871eeac12738175c530eb8d35139b Test EPUB (chapter 1,2,3 with Media Overlays): kusamakura-japanese-vertical-writing-20121124 In a nutshell: the CSS columns width is actually their height, because of the vertical flow (they are visually stacked from top to bottom). The text goes from right to left, and flows in thin top-to-bottom columns. There is no two-page spread, only a single column per visible viewport. Many thanks! — |
Many thanks @idov-isd |
Related issue (closed as duplicate): |
I've tested vertical writing with RTL and LTR progression (used this hacked up version for LTR tests: https://drive.google.com/file/d/0BwtT87vbGnJuZFdoZVFWSnNaelU/edit?usp=sharing) With my latest commit on the feature/vertical-writing-client-rects I believe this takes care of the media overlay issues, can you confirm @danielweck? I'm now going to test bookmarking, and TOC linking but I am expecting those to work too. There is something I left out for now though: Vertical writing mode + "trimming rectangles by a vertical offset", this is only needed when the getPageForPointOnElement call is used (which doesn't seem to be used in readium for now). |
…rects Visibility computations by client rectangles, vertical writing mode (column layout) #87
Closed by Pull Request: |
@yuriyp
@idov-isd
Yuri, Igor?
Given your past contributions to the "rectangle" algorithms in CfiNavigationLogic, any chance you could help me figure-out how to implement support for vertical writing mode + right-to-left text/page progression?
#16
I would really appreciate your help, as this is a blocking issue that prevents supports for Japanese EPUBs:
not just Media Overlays, but also linking (TOC), bookmarks, etc. (anything that requires mapping an element to a page/column number)
I started a feature branch:
https://github.com/readium/readium-shared-js/tree/feature/verticalColumns
...and as you can see I did not get very far:
c6a52be
Test EPUB (chapter 1,2,3 with Media Overlays):
kusamakura-japanese-vertical-writing-20121124
https://code.google.com/p/epub-samples/downloads/detail?name=kusamakura-japanese-vertical-writing-20121124.epub
In a nutshell: the CSS columns width is actually their height, because of the vertical flow (they are visually stacked from top to bottom). The text goes from right to left, and flows in thin top-to-bottom columns. There is no two-page spread, only a single column per visible viewport.
Many thanks!
Regards, Daniel
The text was updated successfully, but these errors were encountered: