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 736310 - RTL: problem with English phrases containing punctuation marks in Persian text
RTL: problem with English phrases containing punctuation marks in Persian text
Status: RESOLVED OBSOLETE
Product: pango
Classification: Platform
Component: general
1.36.x
Other Linux
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2014-09-09 08:27 UTC by Arham Amouei
Modified: 2018-05-22 13:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
what I see in gedit. (4.84 KB, image/png)
2014-09-09 08:27 UTC, Arham Amouei
Details
the buggy text (68 bytes, text/plain)
2014-09-11 15:49 UTC, Sébastien Wilmet
Details

Description Arham Amouei 2014-09-09 08:27:08 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.
Comment 1 Sébastien Wilmet 2014-09-09 10:52:05 UTC
Can you copy/paste the text here in bugzilla? so we can test if the bug comes from Pango or GtkTextView.
Comment 2 Arham Amouei 2014-09-09 11:14:59 UTC
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.
Comment 3 Arham Amouei 2014-09-09 11:35:24 UTC
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.
Comment 4 Sébastien Wilmet 2014-09-11 15:49:01 UTC
Created attachment 285931 [details]
the buggy text
Comment 5 Sébastien Wilmet 2014-09-11 15:50:24 UTC
The same bug happens with GtkTextView and pango-view.
Comment 6 Behdad Esfahbod 2014-10-15 05:11:09 UTC
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.
Comment 7 GNOME Infrastructure Team 2018-05-22 13:12:46 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/pango/issues/233.