Apache OpenOffice (AOO) Bugzilla – Issue 81167
AutoCorrect should allow automatic conversion of /text/ to italicized "text"
Last modified: 2013-02-24 20:42:31 UTC
OpenOffice.org AutoCorrect currently can (and by default does) automatically convert *text* to bolded "text", and _text_ to underlined text (this is under AutoCorrect-Options-Automatic *bold* and _underline_. These are Usenet/mailing list conventions, originally for plain text email. Along with those two, /text/ is used to indicate italicized text. It would be useful to have that conversion as well.
I'm trying to find the source for this feature. It's related to the UI strings STR_AUTOFMTREDL_UNDER and STR_AUTOFMTREDL_BOLD, but I'm not getting much farther than that, partly because the comments in this part of the code are in German.
@ sba: Please have a look.
superm401: does that mean that you would like to work on a patch? :-)
I would. But I still haven't found the code that does the current bolding and underlining.
I found what I think is the main logic, in the central switch of sw/sw/source/core/edit/autofmt.cxx . But I'm still confused in trying to find where the real formatting is being done.
Great that your are interested! I'm very busy this weekend but I will see if I can give you a hint on monday.
*** Issue 101703 has been marked as a duplicate of this issue. ***
@MBA/MOD: Today I got a duplicate to this. The implementation looks like a 2 lines fix one of you could do as a 10 mn blubber... What about superm401?
It seems that I lost track of it, it seems that I wanted to do something nearly two years ago ... @superm401: sorry, I totally forgot about this issue. If you are still interested, I will have a look. Besides that: we should confirm that issue, it looks as if it is a very natural idea and indeed it shouldn't be hard to implement.
I could not find this issue in a search but opened a new issue with: "Currently *bold* and _underline_ automatically applies these char formats to the enclosed string. Could this be enhance by implementing /italic/ as well? These are conventions common to many email clients which automatically convert them to formatted text if HTML or BBedit formatting is supported." Could these be nested so that */_bold italic underlined_/* does the appropriate thing?
Seems weird that such an apparently straightforward issue has not been tackled yet. I'll have a look at this.
*** Issue 84252 has been marked as a duplicate of this issue. ***