After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 724704 - Incorrect page layout in dual view with RTL languages (Arabic, Hebrew, ..)
Incorrect page layout in dual view with RTL languages (Arabic, Hebrew, ..)
Status: RESOLVED OBSOLETE
Product: evince
Classification: Core
Component: general
git master
Other All
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-02-19 02:09 UTC by Abdellah Chelli
Modified: 2018-05-22 15:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PDF file with RTL page layout pre-defined (Test Case) (110.50 KB, application/pdf)
2014-02-27 10:25 UTC, Abdellah Chelli
  Details
Patch to add right-to-left option to dual page view (19.52 KB, patch)
2014-03-23 15:35 UTC, Abdellah Chelli
none Details | Review

Description Abdellah Chelli 2014-02-19 02:09:13 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
Comment 1 Abdellah Chelli 2014-02-27 10:25:05 UTC
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)
Comment 2 Abdellah Chelli 2014-02-27 10:44:52 UTC
- 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/)
Comment 3 Abdellah Chelli 2014-03-21 10:48:29 UTC
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.
Comment 4 Abdellah Chelli 2014-03-23 15:35:28 UTC
Created attachment 272695 [details] [review]
Patch to add right-to-left option to dual page view
Comment 5 Carlos Garcia Campos 2014-03-30 11:17:40 UTC
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?
Comment 6 Abdellah Chelli 2014-03-30 12:10:52 UTC
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.
Comment 7 GNOME Infrastructure Team 2018-05-22 15:31:08 UTC
-- 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.