Opened 7 years ago
Closed 5 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: |
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)
Change History (5)
Changed 7 years ago by davidjudysmith@…
comment:1 Changed 7 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.
M23
comment:2 Changed 7 years ago by Melba23
- Type changed from Bug to Feature Request
comment:4 Changed 5 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.
Demonstrates that superscripting in the Rich Edit control doesn't work