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

Paged vertical text book should be scrollable horizontally #96

Closed
1 of 3 tasks
kitanic opened this issue Oct 26, 2020 · 3 comments
Closed
1 of 3 tasks

Paged vertical text book should be scrollable horizontally #96

kitanic opened this issue Oct 26, 2020 · 3 comments

Comments

@kitanic
Copy link

kitanic commented Oct 26, 2020

I'm submitting a…

  • bug report
  • feature request
  • other

Hello.
I am testing readium-css to make my own EPUB viewer. There seems to be a very basic problem with the paged-mode of vertical layout.

In CJK vertical books, 'inline' text should be laid out vertically(up-to-bottom) but 'blocks' of page should be connected horizontally(right-to-left).
With paged mode of Thorium or test-app, I find the book scrolls page to page as vertically. This is a very unnatural behavior.

I can understand there is a technical difficulty on CSS multi columns but I think this is not permissible limitation.

Or is there a setting to fix it?

vertical-layout

@danielweck
Copy link
Member

danielweck commented Oct 26, 2020

Hello, there are known bugs with RTL Right To Left and VWM Vertical Writing Mode in Thorium, or more precisely in the Electron/TypeScript implementation of the Readium2 "navigator" component.
Here is for example an issue about scrolling (there are problems with pagination too, as you pointed out):
readium/r2-navigator-js#42

@JayPanoz
Copy link
Collaborator

What Daniel said.

We had a meeting about Japanese Layout back in 2017, which led to lots of research summarised in this issue so if you’re using ReadiumCSS for pagination – and not your own pagination engine in JS – you have to fake it i.e. left/right swipe/navigation while columns are laid out on top of one another.

On iOS, the pagination API built on top of columns is using non-standard properties in Webkit to achieve that, but we have to support all major platforms – these props were removed in Chrome at the time they removed CSS regions. And it’s been clear they won’t ever be added into the CSS multicol spec, such issues belong to a CSS fragmentation module.

@kitanic
Copy link
Author

kitanic commented Oct 28, 2020

CSS multi column may have difficult problem as I expected...

In my project, I think I will use customized Readium-css to suppress scroll animation and overflow: hidden. Without smooth animation, it dose not a matter if it scrolls vertically or horizontally because it looks as warp. Maybe some directional effect would help with accessibility as well.

Thank you for your response.

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

No branches or pull requests

3 participants