feat(automation): text_script tool for superscript and subscript

Format text's Superscript and Subscript had no headless path (AGENTS §3):
text_script toggles them on a paragraph, or a byte range of its editor text,
through the engine's text_script and writes the paragraph as text_edit does.
The parity entry now lists the tool and its tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
FredAppsandClaude Opus 5.5 committed 2026-11-01 12:34:56 +01:00
1 parent f01823f6fa
commit 8abd35cf67
4 files changed
+94 -2

No files matched your search

+5 -2
View File
@@ -1967,12 +1967,15 @@ tier = "P2"
milestone = "M7"
status = "partial"
commands = ["edit.edit_text"]
tools = []
tools = ["text_script"]
evidence = [
"crates/engine/src/text_script.rs::every_form_toggles_back_to_its_character",
"crates/engine/src/text_script.rs::text_with_characters_unicode_cannot_raise_toggles_back",
"crates/ui-egui/src/tools/edit_text_ui.rs::superscript_and_subscript_conversion",
"crates/ui-egui/tests/it/editing.rs::the_format_panel_toggles_superscript_and_subscript_on_selection",
"crates/automation/tests/it/automation.rs::superscript_and_subscript_through_tools",
]
notes = "Toggled in the Format text panel for the selection. Uses Unicode superscript and subscript forms (2 ↔ ²) rather than text rise (Ts) and font scaling, so the font must provide the corresponding glyphs and extracted text contains the Unicode characters."
notes = "Toggled in the Format text panel for the selection, and headlessly with text_script on a paragraph or a byte range of it; each toggle of a paragraph is one undo step. Uses Unicode superscript and subscript forms (2 ↔ ²) rather than text rise (Ts) and font scaling, so the font must provide the corresponding glyphs and extracted text contains the Unicode characters. Characters Unicode has no form for (q, most capitals in subscript) stay as they are and don't stop a toggle back; the minus sign comes back as a hyphen-minus."
[[feature]]
id = "edit.paragraph-alignment"