[XBUP] XBUP - Extensible Binary Universal Protocol

» Documentation » Format » Text

Format: Simple Text

Format for storing simple unformatted text. Text is one of the very widely used data formats. Also sequence of characters in the ASCII and the other became the foundation of many advanced formats.

Text File

As an initial example, consider a simple file with only one element in the box and through the transformation from an extended area. This will define the general head of any classical text file.

Expected structure of the document

Specification's Block

The following simplified version is used in a test version of xbteditor. It is more simple, because the proposal did not include the transformation blocks.

Text file format variant used in xbteditor-0.0.2

Specification's Block

Multiline Text

In the case that we intend to store multiple lines of text, we have to face following problem: In theory, it is an array of text items. Yet we would like to use the classic solution to tagging line breaks using CR + LF combination (depending on your operating system). This can be reasonably addressed by the transformation block, data-into-tree type, which converts the text to the required form.

The used variant encapsulates data using array-type block and also each single block of text is generated by the extraction of the data block.

Notes: