Next: Caret Ownership
Up: File Format
Previous: End of Line Ambiguity
In plain text editors, there is a simple correlation between editor
positions and characters. In a wx:media-edit% editor, this is no
longer true much of the time, but it is still sometimes useful to just
``get the text'' of an editor.
There are two kinds of text available:
- Simple text, where there is one character per
item. Items which are characters are mapped to themselves, and all
other items are mapped to '.'.
- Flattened text, where each item can map to an
arbitrary string. Items which are characters are still mapped to
themselves, but more complicated items can be represented with a
useful string. Newlines are mapped to platform-specific character
sequences (linefeed under X Windows, carriage return under MacOS, and
linefeed-carriage return under Windows). This is called ``flattened''
because the buffer's items have been reduced to a linear sequence of
characters.
PLT