GNOME Bugzilla – Bug 724704
Incorrect page layout in dual view with RTL languages (Arabic, Hebrew, ..)
Last modified: 2018-05-22 15:31:08 UTC
The current status, pages are showed as: 1 2 3 4 - 1 2 3 - 1 2 3 Where for RTL documents or interface, it should be: 2 1 4 3 - 1 3 2 - 1 3 2 Acroread provide options under " Preferences > International": - Enable RTL language switch, so you check it in the menu/toolbar to flip pages order/alignment. - Default direction: Document, LTR, RTL
Created attachment 270454 [details] PDF file with RTL page layout pre-defined (Test Case) To test: Default: Page layout from Document (This attachment is test with Acroread9, for same option)
- Okular and qpdfview have similar bugs, thought it may be helpful to mention here: Okular: kde bug#325650 https://bugs.kde.org/show_bug.cgi?id=325650 qpdfview lp bug#1281870 (Already made some advance) https://bugs.launchpad.net/qpdfview/+bug/1281870 (Ref: https://askubuntu.com/questions/421083/how-to-open-a-pdf-view-2-pages-at-a-time-but-for-arabic-pdfs-where-left-page-i/)
Poppler commit "Qt: Expose document-supplied text direction" (http://cgit.freedesktop.org/poppler/poppler/commit/?id=b346df59ef0775f5bd74a9f7379b5f430ccd7b79) , may be released with next Poppler 0.26 . Property to be used for "Direction from document" option.
Created attachment 272695 [details] [review] Patch to add right-to-left option to dual page view
Thanks for the patch. Shouldn't we do this automatically depending on the system locales or the document properties instead of adding another option to the UI?
Yeah, I admit that as it should be selectable too, user can force a setting: - 1st time default would be from document properties (Auto): this will be available with Poppler 0.26. - If not defined by document, drop to locale settings. - User should be able to force either way RTL or LTR (much better with per document settings) The worst case is an RTL language document without direction pre-defined property in LTR environment. This is a very common case in countries with two official languages (Ex: Arabic/French). Need to force as RTL. Another rare case, like Chinese (multi-direction language),few user would like flip direction instantaneously. Only if it relays on document language too: document direction property then document language property or an language script detection then application locale. BTW I'm not an advanced programmer, this is my first patch: For locale, I gave it a thought before, I just didn't want to make much changes till Poppler 0.26 updated. As I need much time, to learn related code. I have changed is_dual_page() to accept new parameter, this will compatibility to other tools that use libview I didn't find away to flip only document view widget as RTL (keeping remaining GUI as LTR). So horizontal scroll will reset to right edge.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/evince/issues/437.