aeidon.agents.FormatAgent¶
Source: aeidon/agents/format.py
Anchestors: aeidon.delegate.Delegate, builtins.object
- class aeidon.agents.FormatAgent¶
Changing the appearance of texts.
Methods¶
- FormatAgent.add_dialogue_dashes(indices, doc, register=-1)¶
Add dialogue dashes to all lines of texts.
- FormatAgent.change_case(indices, doc, method, register=-1)¶
Change the case of texts with method.
method should be “title”, “capitalize”, “upper” or “lower”, which correspond to the built-in Python string methods.
- FormatAgent.italicize(indices, doc, register=-1)¶
Surround texts with italic markup.
- FormatAgent.remove_dialogue_dashes(indices, doc, register=-1)¶
Remove dialogue dashes from all lines of texts.
- FormatAgent.toggle_dialogue_dashes(indices, doc, register=-1)¶
Show or hide dialogue dashes on texts.
- FormatAgent.toggle_italicization(indices, doc, register=-1)¶
Add or remove italic markup surrounding texts.
- FormatAgent.unitalicize(indices, doc, register=-1)¶
Remove any italic markup surrounding texts.