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 770487 - Draw/display soft hyphens
Draw/display soft hyphens
Status: RESOLVED WONTFIX
Product: gtksourceview
Classification: Platform
Component: General
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2016-08-27 16:47 UTC by Alexandre Franke
Modified: 2018-05-27 05:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexandre Franke 2016-08-27 16:47:04 UTC
After https://bugzilla.gnome.org/show_bug.cgi?id=647087#c13 soft hyphens have been used in strings to allow them to break when necessary. Unfortunately, this is a non visible character, so they go unnoticed in gedit, meld, etc.

vim displays a space which is not ideal but better than nothing. Lokalize highlights the two surrounding characters (http://kepfeltoltes.hu/160825/lokalize-softhyphens_www.kepfeltoltes.hu_.png).

The same way display of spaces (and non breaking spaces, and tabs) can be enabled, I think this should be available too.

My personal preference would be to have something in between characters, a pipe like character perhaps, but keep the current width (i.e. a<soft hyphen>b takes the same space as ab).
Comment 1 Sébastien Wilmet 2016-08-27 17:14:38 UTC
Interesting.

A pipe could be confused with the cursor. Maybe a vertically-centered gray dot?

Anyway, I think it's entirely feasible, it should not be much harder than drawing the other symbols for the different whitespace characters.
Comment 2 Alexandre Franke 2016-08-27 17:34:51 UTC
A dot would probably be fine. The most important part is showing that "there's something in there".
Comment 3 Sébastien Wilmet 2018-05-26 13:58:07 UTC
It's unlikely that this feature is ever going to be implemented, so I close the bug.
Comment 4 Alexandre Franke 2018-05-26 14:15:51 UTC
I understand manpower is limited but not having this can have quite a negative impact so it is important.
Comment 5 Sébastien Wilmet 2018-05-27 05:17:48 UTC
I have opened this feature request instead, which is more general:
https://gitlab.gnome.org/GNOME/gtksourceview/issues/4