FolioReader / FolioReader-Android

A Java ePub reader and parser framework for Android.
BSD 3-Clause "New" or "Revised" License
2.24k stars 715 forks source link

Support RTL #418

Open MrNouri opened 4 years ago

MrNouri commented 4 years ago

Hi and thanks for this library. But why not support RTL for swipe pages? How can i it?

looknear commented 4 years ago

its a LOT of effort, but can be done...

On Tue, Dec 24, 2019 at 4:16 PM Mohammad Nouri notifications@github.com wrote:

Hi and thanks for this library. But why not support RTL for swipe pages? How can i it?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FolioReader/FolioReader-Android/issues/418?email_source=notifications&email_token=AAHXLR3KOS4WQYOCKBCVRHDQ2IKUPA5CNFSM4J66W5X2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ICQNYYA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHXLRYKO7WXFUGJHBDIY7LQ2IKUPANCNFSM4J66W5XQ .

MrNouri commented 4 years ago

@looknear how can i it? can you help?

abdoelmorap commented 4 years ago

I made a simple tweak to support the Arabic language It is the addition of "direction: rtl" to style.css and also changes the rotation of folio view pager then changes the rotation of fragment. This works perfectly in chapters that have only two pages, but when the chapter has three pages, the page in the browser is overridden middle page + a permanent error occurs in the application.

MrNouri commented 4 years ago

@abdoelmorap can you fix this issue and share your changes?

abdoelmorap commented 4 years ago

@abdoelmorap can you fix this issue and share your changes?

can you help me because I'm so busy and we stop working on this project how you can help me ?? I need a way to scroll webview by device-width how we can do that our page position before any scrollX = horizantolpages*devicewidth when scroll to right should position =scrollX -device-width when scroll to left should position= scrollX +devicewidth create a class at Folio webview scroll like this and we will use it to scroll to the right direction and same with left good luck