Cleans up attachment attributes in
aRange, removing all attachment attributes assigned to characters other than
NSRangeException if any part of
aRange lies beyond the end of the receiver’s characters.
Fixing attributes after changes
Fixes the font attribute in
aRange, assigning default fonts to characters with illegal fonts for their scripts and otherwise correcting font attribute assignments.
Fixes the paragraph style attributes in
aRange, assigning the first paragraph style attribute value in each paragraph to all characters of the paragraph.