Bless features an advanced and customizable export system. It can currently export data to text or html files.
The exporting is based on an export pattern. The pattern consists of string literals and special command strings. The literals are printed in the output file as they are whereas the command strings tell the exporter to do something. Commands strings are enclosed in '%'s and specify the command and its parameters. The command is specified by an uppercase letter and the parameters by lowercase letters. Each letter (whether it corresponds to a command or a parameter) may be followed by an argument enclosed in double quotes '"'.
Command | Description | Parameters [default] | ||||||
---|---|---|---|---|---|---|---|---|
Export (E) | Writes actual data. |
| ||||||
Ignore (I) | Ignores data. |
| ||||||
Offset (O) | Writes the current offset. |
|
Export Type | Description |
---|---|
H | Hexadecimal with uppercase characters |
h | Hexadecimal with lowercase characters |
D | Decimal |
O | Octal |
B | Binary |
A | Ascii |
Command strings can be grouped together with square brackets '[',']'. After such a group of commands is executed the pointer which keeps track of the next byte to export is reset to the position it had just before the group was executed.
Some sample patterns and their output will make things much clearer:
0000: 0x00 0x01 0x02 0x03 - 0x04 0x05 0x06 0x07 0008: 0x08 0x09 0x0a 0x0b - 0x0c 0x0d 0x0e 0x0f 0010: 0x10 0x11 0x12 0x13 - 0x14 0x15 0x16 0x17 0018: 0x18 0x19 0x10 0x1a - 0x1b 0x1c 0x1d 0x1e 0020: 0x1f -
0001 0405 0203 0607 0809 0c0d 0a0b 0e0f 1011 1415 1213 1617 1819 1b1c 101a 1d1e 1f
Export Dialog
The name of the file to export the data to.
The type of file to export to. New types can be added with plugins.
The pattern to use when exporting the file (see the section called “Export Patterns”). Use the save and delete buttons next to the pattern entry to manage the saved patterns.
The range of data to export.