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 722273 - Pattern conversions on the fly (as you type) when composing email (e.g. should replace [1] with ¹)
Pattern conversions on the fly (as you type) when composing email (e.g. shoul...
Status: RESOLVED OBSOLETE
Product: geary
Classification: Other
Component: composer
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Geary Maintainers
Geary Maintainers
Depends on: 756553
Blocks:
 
 
Reported: 2014-01-15 15:41 UTC by Andrés G. Aragoneses (IRC: knocte)
Modified: 2021-07-05 13:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andrés G. Aragoneses (IRC: knocte) 2014-01-15 15:41:54 UTC
It would be great if the composer could replace all [1] patterns with ¹ and the like, as you type.
Comment 1 Jim Nelson 2014-01-15 19:21:34 UTC
I suspect we'd have to do something different than simply replacing [1] with superscript 1.  I know it's an agreed-upon standard (kind of like *bold* and _italics_) but it's not necessarily what everyone wants.

I think this could be solved in one of two ways:

* Add super- and subscript formatting controls to the composer edit tools.

* Offer a smarty-style input format where [1] (and *bold* and _italics_) are transformed by the composer.

I've thought about the second one in the past, which is why I bring it up.
Comment 2 Andrés G. Aragoneses (IRC: knocte) 2014-01-16 10:21:28 UTC
Jim,

I don't think this is the same case as things like *bold* or /italics/, because to change something *bold* to "real looking bold" you would need to use format/markup/HTML (or whatever is called) in the e-mail (as opposed to a plain text email).

However, ¹ is just a character which can be used in plain text emails AFAIU.
Comment 3 Federico Bruni 2018-01-10 06:57:33 UTC
As ¹ can be easily typed by the user, I don't see why Geary should get in the way and change what the user is writing.
If I want to write [1], I want to be free of doing it; same if I want to use ¹.

For the smarty-style input format, we have already bug 739464 (markdown support).

IMO add super and subscript formatting controls to the composer toolbar would be overkill.

I would close this as WONTFIX. But I'll leave the decision to Mike (lead developer).
Comment 4 Andrés G. Aragoneses (IRC: knocte) 2018-01-10 09:40:27 UTC
> As ¹ can be easily typed by the user,

I don't think so. If it had been easy to type it for me, I wouldn't have filed this bug :)
Comment 5 Federico Bruni 2018-01-10 10:23:43 UTC
Yes, I understand.

The point is that I'm afraid that adding it to the composer toolbar would be a waste of space, especially if you consider that super/sub-scripts are not widely used. In fact Gmail, for example, does not provide any superscript/subscript option in its rich formatting toolbar.

However, you are right that it's not that easy. I can easily type ¹, ² and ³ using "Alt right + number" on my keyboard. But what about the other numbers?
I searched and found a solution here:
https://help.gnome.org/users/gnome-help/stable/tips-specialchars.html.en

I've defined the Compose Key in my system settings and now I can enter any subscript with the key sequence: ComposeKey + ^ + number
Comment 6 Federico Bruni 2018-01-10 10:31:09 UTC
of course I meant /any superscript/
Comment 7 Andrés G. Aragoneses (IRC: knocte) 2018-01-11 03:04:41 UTC
> If I want to write [1], I want to be free of doing it;

I guess then that you disable the autocorrect in your phone right? :)

This is just a feature suggestion. Of course, if this feature is implemented there should probably be a way to disable it*, like you can disable the autocorrect in your phone.

* There could be two ways to disable:
- disable always: in the preferences
- disable as you go: you type the pattern, it gets converted, then you hit CTRL+Z to undo the conversion
Comment 8 Federico Bruni 2018-01-11 08:36:12 UTC
(In reply to Andrés G. Aragoneses (IRC: knocte) from comment #7)
> > If I want to write [1], I want to be free of doing it;
> 
> I guess then that you disable the autocorrect in your phone right? :)
> 

No :)
Indeed, autocorrect would be useful when using a device without physical keyboard.

I'll mark this as dependent on bug 756553

> This is just a feature suggestion. Of course, if this feature is implemented
> there should probably be a way to disable it*, like you can disable the
> autocorrect in your phone.
> 
> * There could be two ways to disable:
> - disable always: in the preferences
> - disable as you go: you type the pattern, it gets converted, then you hit
> CTRL+Z to undo the conversion

I like this approach. I just wonder if autocorrection should be set as a system-wide setting or per application (or both). See also the comment in #756553.
Comment 9 GNOME Infrastructure Team 2021-07-05 13:27:55 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/geary/-/issues/

Thank you for your understanding and your help.