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 70473 - ellipsize task names that don't fit
ellipsize task names that don't fit
Status: RESOLVED DUPLICATE of bug 155868
Product: libwnck
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: libwnck maintainers
libwnck maintainers
: 124331 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2002-02-04 06:36 UTC by Martin Pool
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Martin Pool 2002-02-04 06:36:58 UTC
In the current tasklist version, if a task name doesn't fit into a
fixed-size button, then ellipsis are added and the full name is available
in a tooltip.  This is not bad.

It might be better if the text was abbreviated rather than truncated. 
There are a number of fairly straightfoward algorithms that can do this:
omit prefixes common to multiple tasks, then drop vowels and remove
characters from the ends of words.  The algorithm can be iterated until the
string is short enough to fit.  I think Galeon uses this approach in
abbreviating page titles.

This is somewhat language-specific -- at the very least a different
approach will be required for non-latin character sets.
Comment 1 Havoc Pennington 2002-09-23 14:57:03 UTC
As you say, this sounds like it might have serious i18n problems.
Maybe we should fix Galeon. ;-)

We are all in Unicode-world, so any string is potentially in any
language; we don't have a way to write "if (english) foo()" really.
Comment 2 Owen Taylor 2002-09-23 20:25:59 UTC
Dropping vowels seems like the step immediately before
s/you/u/ s/are/r/. Ugh.

I think decent ellipsation should be enough without 
trying to get really clever.
Comment 3 Martin Pool 2002-09-24 11:25:38 UTC
Abbreviation is discussed in Paul Heckel's "The Elements of Friendly
Software Design".

The algorithm described in the original note reduces things this way
(skipping some steps):

  "Gnome Terminal"  "Gnome Terminl"  "Gnm Trmnl"  "Gn Trm"  "GT"

I guess hopefully it would only come into play for longre window
titles, and they'd never get squished to just two characters.  But you
get the idea.

This might also be used for the title bar of windows that are too
narrow to show 

This is only one way to address the problem of the taskbar getting
full of apparently identical tasks.  Others include:

 - allowing taskbar buttons to be nonuniform in size

 - a usability rule that says windows are called "$DOCUMENT - $APP",
so that the window names are more likely to differ in the first few
characters
Comment 4 Calum Benson 2002-10-01 18:46:41 UTC
Haven't really thought throught the implications of the rest of it,
but we do at least have the HIG guideline already:

http://developer.gnome.org/projects/gup/hig/draft_hig/windows.html#primary-window-titles

Comment 5 Dave Bordoley [Not Reading Bug Mail] 2002-10-07 20:04:24 UTC
fwiw galeon is fixed last time i checked and only includes the web
page name in the title bar (galeon2 here) and also i agree with owen,
decent elipsizing seems like a better solution to long titles.
Comment 6 Luis Villa 2002-12-04 14:24:30 UTC
Changing the title, since it seems we mostly agree here.
Comment 7 Calum Benson 2002-12-04 15:07:05 UTC
See also bug #99604 which suggests using the Mozilla abbreviation
method, which does sound a little more sane (and presumably
i18n-friendly, since they've already been there and done it) than the
vowel-dropping scheme suggested here.
Comment 8 Vincent Untz 2004-09-02 08:59:48 UTC
*** Bug 124331 has been marked as a duplicate of this bug. ***
Comment 9 Elijah Newren 2004-10-19 19:42:24 UTC
Benjamin has a patch; it needs updating but at least he's part way there.   So
I'm going to mark this as a duplicate of that bug.

*** This bug has been marked as a duplicate of 155868 ***