GNOME Bugzilla – Bug 736310
RTL: problem with English phrases containing punctuation marks in Persian text
Last modified: 2018-05-22 13:12:46 UTC
Created attachment 285716 [details] what I see in gedit. As you may know, Persian is a right-to-left language. When I type an English phrase containing punctuation marks in a Persian text in gedit, what I see on the screen isn't what I expect. For example when I type \commandname{new} within a Persian (right-to-left) text, it is shown as {commandname{new\ This makes reading and editing such texts difficult.
Can you copy/paste the text here in bugzilla? so we can test if the bug comes from Pango or GtkTextView.
For instance, the sentence این یک مثال ساده دربارهی \cmd{param} است. begins with the Persian word این . gedit, automatically starts this sentence from the right side of the window, which is very good. But, the phrase '\cmd{param}' is displayed as '{cmd{param\'. The same problem occurs in LibreOffice under Linux, and notepad under Windows, but Microsoft Office works properly.
Actually, Microsoft Word shows such texts correctly only when you directly type it in Microsoft Word. But If you copy/paste from elsewhere, the same problem occurs.
Created attachment 285931 [details] the buggy text
The same bug happens with GtkTextView and pango-view.
This will eventually be fixed when we implement Unicode 6.3 bidi bracket-pairing: http://www.unicode.org/reports/tr9/#N0 Will take a while.
-- 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/pango/issues/233.