Modify

#3630 closed Feature Request (Rejected)

Superscripting attribute in the Rich Edit control doesn't work

Reported by: davidjudysmith@… Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Rich Edit control, rich text, superscript Cc:

Description

The documentation for _GUICtrlRichEdit_SetCharAttributes lists many states and attributes that can be set for selected text. Some of them have the notation "[nd]" for "not displayed." I assumed that the corresponding attributes would still be set in the underlying rich text, which would be available for streaming, but that is not the case.
The attached script SuperBug.au3 attempts to set each digit found in the text of the Rich Edit control as a superscript. When finished, it copies the RTF version of the text to an Edit control. Clearly, there are no superscripting control words (\super and \nosupersub) surrounding the digits. This is also true if line 27 is edited to change "+sp" to "+sb" (subscript), "+sm" (small caps), or any other non-displayed attributes.
If "+sp" in line 27 is changed to "+bo", each digit appears in boldface, and the boldface command words appear in the RTF. That's also true for "+un" (underline), "+it" (italicize) and other visible attributes.
(Why is this bug important to me? Because I hoped to use AutoIt to pre-process a text file, adding some superscripts and some small-caps, before shipping it off to LibreOffice Writer. I could have written the program in LibreOffice's macro language, but AutoIt is easier.)
Until this bug is fixed, please change the help file for _GUICtrlRichEdit_SetCharAttributes so that the superscript (and other) attributes are indicated as "not implemented yet."

Attachments (1)

SuperBug.au3 (1.6 KB ) - added by davidjudysmith@… on May 19, 2018 at 9:22:23 PM.
Demonstrates that superscripting in the Rich Edit control doesn't work

Download all attachments as: .zip

Change History (5)

by davidjudysmith@…, on May 19, 2018 at 9:22:23 PM

Attachment: SuperBug.au3 added

Demonstrates that superscripting in the Rich Edit control doesn't work

comment:1 by Melba23, on May 20, 2018 at 5:08:51 PM

I do not see this as a bug, so I have changed it to a "Feature request".

Why? Because the Help file quite correctly says that certain attributes do not display in an AutoIt RichEdit control - and indeed they do not. The fact you assumed them to be present but not active is an error on your part as such behaviour is not specified. Personally I would expect the streamed data to match what was shown in the RichEdit - which it does.

M23

comment:2 by Melba23, on May 20, 2018 at 5:09:01 PM

Type: BugFeature Request

comment:3 by TicketCleanup, on May 20, 2018 at 6:00:01 PM

Version: 3.3.14.5

Automatic ticket cleanup.

comment:4 by Melba23, on May 15, 2020 at 9:28:34 PM

Resolution: Rejected
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.