-
Notifications
You must be signed in to change notification settings - Fork 38
RTL #97
Comments
We need _WKPaginationMode for WKWebView, but it's still private API. Here is the equivalent API for UIWebView. So, the best solution should be CSS&JS. |
First, we should check that the streamer exposes the necessary data for RTL publications. Then we'll have to handle RTL at the level of the triptych view. The order of the webviews is reversed if RTL is set at the manifest level. Are there others? Hadrien thinks that working on the triptych view. for RTL is a first step toward managing FXL with spreads (2 pages); the latter requires adding more webviews to the mix: the triptych become a multi-panel system, with à priori 6 panels (2 + 2 + 2). Therefore the developer who starts this work for RTL should be the one who will tackle the complexity of FXL with spreads: this makes sense. In this case it should be Geoffrey, who will still be with us after August. |
OK. My current code is based on My work on triptych could be treated as almost done, if the CSS for CJK could solve RTL paging flow inside one WebView. |
For the Streamer, what need to be done it's pretty straightforward. A lot small changes. It needs 4 different css sets for The Streamer server should able to serve different css for different URL. Currently, the code is not designed for it. The Streamer should modify xhtml element in case something is missing. |
https://github.com/iaomw/r2-shared-swift/commit/02dd74416025683509b6878b8197ba38e4633051 Those WIP commits has RTL partially supported. What has been done:
What is missing: Check
Problems:
|
Note that behind the scenes, they’re using those CSS multicol extensions. But we agreed to not use them as they can’t be used anywhere else (they’re non-standard) – also, those are pretty much the properties you need to solve the EPUB3’s Test Suite 130 mixed writing-modes with CSS so if we don’t have them on other platforms, it’s simply unsolvable without JS. |
No description provided.
The text was updated successfully, but these errors were encountered: