Opened 6 years ago

Closed 4 years ago

#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:


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@… 6 years ago.
Demonstrates that superscripting in the Rich Edit control doesn't work

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by davidjudysmith@…

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

comment:1 Changed 6 years ago by Melba23

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.


comment:2 Changed 6 years ago by Melba23

  • Type changed from Bug to Feature Request

comment:3 Changed 6 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

comment:4 Changed 4 years ago by Melba23

  • Resolution set to Rejected
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.