TextEdit does not properly handle super / subscript text formatting commands

Originator:eric.trepanier
Number:rdar://16399459 Date Originated:22-Mar-2014 09:39 AM
Status:Open Resolved:
Product:OS X Product Version:10.9.2
Classification:UI / Usability Reproducible:Always
 
Summary:
The way that TextEdit (and all other applications using Cocoa's default text formatting system and menu commands) handle the Superscript and Subscript commands is incorrect, compared to the Pages application from the iWorks suite, which handles them correctly.

Steps to Reproduce:
Perform the following steps in TextEdit:

1. Launch TextEdit, create a new document
2. Type the "H" key
3. Select in Format | Font | Baseline | Subscript
4. Type the "2" key -- observe it appears below the H character's baseline (but with the same size)
5. Select in Format | Font | Baseline | Subscript (Again)
6. Type the "2" key -- observe it appears below the preview 2 character's baseline (with the same size still)

Perform the following steps in Pages:

1. Launch Pages, create a new document
2. Type the "H" key
3. Select in Format | Font | Baseline | Subscript
4. Type the "2" key -- observe it appears below the H character's baseline and with a much smaller font
5. Select in Format | Font | Baseline | Subscript -- notice it now has a checkmark, so it can't be "selected" again
6. Type the "2" key -- observe it appears on the same baseline (and with the same size) as the original "H" character


Expected Results:
The behaviour of the Superscript and Subscript commands should be the same in both TextEdit and Pages and specifically, the menu commands should operate as a toggle -- hit once to enable the super / sub script modes, hit again to turn it off (as it does in Pages).

Actual Results:
The behaviour of the Superscript and Subscript commands are not the same in both TextEdit and Pages. Specifically, the menu commands do not operate as a toggle in TextEdit and instead are cumulative with each invocations, which makes no sense as there no such thing as multi-level super and sub script commands.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!