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 673663 - search/replace destroys formatting
search/replace destroys formatting
Status: RESOLVED OBSOLETE
Product: Gnumeric
Classification: Applications
Component: General
git master
Other All
: Low normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2012-04-06 19:38 UTC by Andreas J. Guelzow
Modified: 2018-05-22 13:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas J. Guelzow 2012-04-06 19:38:02 UTC
new gnumeric
A1: 123 U+00E4 456  (this shows as "123ä456")
A2: 123a U+0308 456 (this also shows as "123ä456")

in both cases select ä and format it with an underline

search/replace: a -> x

note that the a in both cases is being replaced by x but its underlining disappears.
Comment 1 Morten Welinder 2012-04-06 19:56:49 UTC
Suffering and pain!

I imagine that if you added more digits and made "5" bold, the boldness
would move.
Comment 2 Andreas J. Guelzow 2012-04-06 20:26:26 UTC
This may not be a normalization issue, since I can't make the formatting move. It always disappears.
Comment 3 Andreas J. Guelzow 2012-04-06 20:28:35 UTC
indeed even with only ASCII characters the formatting disappears....
Comment 4 Morten Welinder 2012-04-06 20:32:15 UTC
I don't even see how we can fix this.

We have three steps right now

1: normalization
2: search-and-replace
3: re-normalization

Currently none of the steps track attributes.  Make step 2 do so is a
simple matter of enough programming.

1 and 3, however, I don't see how we can handle.  We have no glib support
for mapping normalized bytes to their source.
Comment 5 Andreas J. Guelzow 2012-04-06 21:15:45 UTC
For normalization we could possibly:

input: pango attributes + text
-- convert to  text with pango-markup
-- normalize
-- convert back to pango attributes + text

of course we would only do that after we have checked first that search/replace applies.
Comment 6 Morten Welinder 2012-04-09 14:28:17 UTC
Such a conversion would probably work although we would have to deal with
the case of normalization affecting the pango markup.

I wonder what gedit does.

--> low priority: this hasn't worked for a decade and no-one cared enough to
report it.
Comment 7 Andreas J. Guelzow 2012-04-09 16:38:11 UTC
A decade ago we did not have in cell rich text (text formatting applied only to whole cells). So the problem did not exist then. But of course it has been years since we introduced it.
Comment 8 GNOME Infrastructure Team 2018-05-22 13:50:03 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/gnumeric/issues/184.