-
Notifications
You must be signed in to change notification settings - Fork 102
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
RTL Hebrew books do not render properly - columns are split #282
Comments
It appears that we have a fix for this, but we are seeing a different problem (but similar, in Arabic). We are looking at the other problem now. |
Here the sample files provided by the user. Not yet tested to verify the fix. |
I can reproduce with the latest cloud reader app (built from |
@jccr there's a CFI -related message in the web console. Would you mind taking a look? |
@jccr in that same ebook ( https://github.com/readium/readium-test-files/blob/master/issue-files/shared-js/282/Hashlachot_Getbooks.epub ), there's a "severe" CFI error:
Press the left arrow (i.e. next page) and you should see an infinite loader / spinner: |
I did run my tests over several browsers and operating systems. Any updates? |
thanks @mahag, for your tests. |
Related: readium/readium-js-viewer#516 |
I am not able to reproduce this bug in the latest Chrome (Windows 10): |
I am not able to reproduce with this one either: https://readium.firebaseapp.com/?epub=https%3A%2F%2Fcdn.rawgit.com%2FIDPF%2Fepub3-samples%2Fmaster%2F30%2Fisraelsailing&epubs=epub_content%2Fepub_samples.opds& |
Helicon's dev says that this fixes the bug (which ; unfortunately ; I am not able to reproduce): https://github.com/readium/readium-shared-js/blob/develop/js/views/reflowable_view.js#L779
|
Was this solved for arabic books ? |
@mahag We believe so, but the bug is hard to reproduce. Can you reproduce with the current build? |
I am trying to get the current build. I just redo the steps for branch name master correct? |
@danielweck Looking at the code in reflowable_view.js (in develop) it does not appear that the patch from Helicon was ever merged in and/or tested? Is that a correct statement? |
I did use master branch and not develop.Do i retry with develop? |
@mahag Yes, please. Let us know what you find. |
I did retry develop and run my file in readium but still the issue occurs. And this is the error in console when running the master branch version
In both tests I am using same epub file |
Please build the cloud reader with source maps, so that you can debug into non-minified / uglified Javascript source code. |
similar thing happen on Android RTL books |
Rangy is not used for anything critical in Readium (only a prototype feature which isn't actually used by content creators). |
I see that in some cases when RTL issue is reported - you mention "helikon" version. is there an "Helicon" stream or branch were we can see their contribution to the code? |
@looknear try this small patch in the |
Sorry for stupid newbie question - where you change it? |
@looknear I strongly suggest that you build your own cloud reader app (including source maps so that you can debug into non-minified / uglified Javascript source code), in order to integrate your custom code, etc. @ -45905,9 +45919,15 @@ var ReflowableView = function(options, reader){
function showBook()
{
+ console.log("PATCHED by OZ");
+ var currOpacity = _currentOpacity;
if (_currentOpacity != -1)
{
- _$epubHtml.css('opacity', _currentOpacity);
+ _$epubHtml.hide();
+ setTimeout(function() {
+ _$epubHtml.show();
+ _$epubHtml.css('opacity', currOpacity);
+ }, 50);
}
_currentOpacity = -1;
} |
Thanks you. i managed to see the change in the app. |
by the way... the link you sent to the file - does not contain the above patch. |
@looknear correct. The link points to the latest code in the |
it solve the right margin text cut. will check the column pagination issue On Tue, Oct 4, 2016 at 7:56 PM Daniel Weck [email protected] wrote:
|
You can start a local web server by invoking the command "npm run http" (this should automatically open a web browser with the http://127.0.0.1/dev/index.html URL). This will allow you to instantly debug updated code (no need to compile the "dist" app bundles, minified / optimised by RequireJS) |
So how can i fix this display issue in readium js viewer for rtl page progressions? |
Can you please try this? |
which file do i have to open to change showbook function? I tool the folder cloud reader lite from dist folder and placed it on my server. Where do i have to check after that? |
Hello @mahag please follow the minimalist build instructions in my above comment: |
@danielweck Helicon's custom code with timeout trick makes it better but it's not a final solution. there is still some rendering problem in web kit based browsers like Chrome. Do you have any idea about this RTL books issue? |
Hello @samkeller I'm afraid none of us has had enough bandwidth to look further into RTL pagination issues. |
@danielweck I have the same issue in Arabic and Persian languages. |
This is a BUG report
Reported on the IDPF forum by hagiler: http://idpf.org/forum/topic-3020
"I design hebrew e-books for several clients, usually using their own app for books. However, one client wanted to test the book on Readium and found out that the text looks weird: http://imgur.com/I8yd4s8
Note how half of the second page moves to the right of the first page.
I've tried it myself and got the same result, even with books that used to work before. I've also tested it with several english epubs which seemed to work fine, so I'm pretty sure it's only in Hebrew.
Did anything change in the last few versions that might have caused this? I can provide a sample book if needed."
Expected:
Hebrew text will be laid out properly.
Result:
Text is sometimes broken across three columns.
Steps to reproduce.
Browser/OS:
Not known yet.
The text was updated successfully, but these errors were encountered: