euporie.core.processors.Transformation
- class euporie.core.processors.Transformation(fragments: StyleAndTextTuples, source_to_display: SourceToDisplay | None = None, display_to_source: DisplayToSource | None = None)
Transformation result, as returned by
Processor.apply_transformation()
.- Important: Always make sure that the length of document.text is equal to
the length of all the text in fragments!
- Parameters:
fragments – The transformed fragments. To be displayed, or to pass to the next processor.
source_to_display – Cursor position transformation from original string to transformed string.
display_to_source – Cursor position transformed from source string to original string.