Regression - software center some texts messed up (RTL)

Bug #851616 reported by דוביקס
42
This bug affects 9 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Expired
Medium
Unassigned

Bug Description

This is likely a regression of Bug #733087 fixed in Natty.

Here are a couple of screenshots from the software center, Hebrew (RTL) environment:

https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/733087/+attachment/2410719/+files/stars-overlapping-in-hebrew.png

http://www.imagebanana.com/view/p9e8ehcm/usc.png

As you can see, some texts are not properly right aligned - they seem to be a little shifted to the left. When this happens on lines that display the stars (ratings), the texts overlap.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: software-center 4.1.23.1
ProcVersionSignature: Ubuntu 3.0.0-9.15-generic 3.0.3
Uname: Linux 3.0.0-9-generic i686
ApportVersion: 1.23-0ubuntu1
Architecture: i386
Date: Fri Sep 16 09:24:48 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta i386 (20110901)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=he_IL.UTF-8
 SHELL=/bin/bash
SoftwareCenterLog:
 2011-09-16 09:13:58,693 - softwarecenter.ui.gtk3.em - INFO - EM's: 17 15 21
 2011-09-16 09:14:09,263 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file
 2011-09-16 09:14:10,651 - softwarecenter.ui.gtk3.utils - INFO - Softwarecenter style provider for ambiance Gtk theme: /usr/share/software-center/ui/gtk3/css/softwarecenter.css
 2011-09-16 09:14:27,566 - softwarecenter.backend - WARNING - could not update axi
 2011-09-16 09:14:30,498 - softwarecenter.ui.gtk3.app - INFO - software-center-agent finished with status 1
SourcePackage: software-center
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
דוביקס (dovix2003-gmail) wrote :
Michael Vogt (mvo)
Changed in software-center (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Michael Vogt (mvo) wrote :

Interessting, when I run "software-center --force-rtl" with a ltr locale the output looks ok. Running with
LANGUAGE=he software-center seems to be ok as well.

But if I generate a "he" language cache with
$ sudo LANGUAGE=he update-software-center
and then run
$ LANGUAGE=he software-center

I can indeed reproduce the bug for some apps (like vlc).

Changed in software-center (Ubuntu):
importance: High → Medium
summary: - Regression - software center texts messed up (RTL)
+ Regression - software center some texts messed up (RTL)
Revision history for this message
Michael Vogt (mvo) wrote :

I suspect that something in pango tells us the wrong extents. Is there anything special in the chars for the lines that are wrong? (sorry, I'm totally ignorant about Hebrew).

Revision history for this message
Shlomil (shlomister) wrote :

Seems to me like the placement of the stars is prefect -
for example, if you look at the highlighted selection in the above screenshot you will see that there's a big space from the right to the beginning of the label. If you would align the string to the right then is looks like there's enough room and the stars would not overlap the label.

One more thing I noticed which might be very helpful:
Each cell of a program summary has two lines - The First is the program name and the second is a short description (in smaller font). If the description line (2nd line) is longer than the name line (1st line) then this bug occurs (otherwise it doesn't - the stars don't overlap text).
Note that when it happens, the 1st line is aligned to the end of the 2nd line.
That's probably the cause of this bug - the 1st and 2nd lines are somehow connected and both are aligned to the left of the longest label. Or, maybe you implemented this by using a single multi-line label and for some reason the text is aligned to the left in this single label.

in other cases where the 1st line is the longer one you can see the stars don't overlap the program name but note that the 2nd line is aligned to the end of the 1st line which is also looks kind of buggy for RTL users. You can see example for that in the above screenshot in the 3rd program with the "mms,wavpack, quicktine..." name.

I hope the above observation I made is clear enough. I'm pretty sure it's what caused this bug.

Revision history for this message
dino99 (9d9) wrote :

That version is no more maintained

Changed in software-center (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Sorry that nobody could resolve this bug report before Ubuntu 11.10 expired. There have been many changes to Ubuntu Software Center since then, so the bug may have been fixed. If you still experience it in a current version (14.04 or 15.04), please reopen the report.

Changed in software-center (Ubuntu):
status: Invalid → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for software-center (Ubuntu) because there has been no activity for 60 days.]

Changed in software-center (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.