﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
3630	Superscripting attribute in the Rich Edit control doesn't work	davidjudysmith@…		"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."""	Feature Request	closed		AutoIt		None	Rejected	Rich Edit control, rich text, superscript	
