mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-25 09:35:36 +00:00
CPTextView lacked the superscript:, subscript:, unscript:, raiseBaseline:, and lowerBaseline: action methods. Consequently, standard Baseline menu items targeting these actions were automatically disabled, even though CPTypesetter and _CPLineFragment already possessed full layout support for baseline offset and superscript attributes. * AppKit/CPTextView/CPTextView.j: - Implement superscript:, subscript:, unscript:, raiseBaseline:, and lowerBaseline:. - Apply attribute modifications to selected ranges or current typingAttributes. - Register baseline operations with CPUndoManager. - Implement menu validation logic to enable baseline actions only when the text view is editable and richText is true. * Tests/AppKit/CPTextViewTest.j: - Add unit tests for superscript levels and baseline offsets across text ranges and typing attributes. - Add test coverage for menu validation. * Tests/Manual/TextEditor/WORKLIST.md: - Remove resolved baseline management entry. - Expand documentation on text layout and line fragment drawing. - Document open items: Justify crash, kerning/ligature settings, and Font Panel integration. - Note optimal line breaking as a candidate feature for future improvement.