Whereas: it is hereby resolved that XML sucks. Thus is born the
Nelson Simple Data Format Specification (NSDFS):
- Character encoding is UTF-8.
- Every line holds one value.
- Every value has a name.
- Names and values are given in the form name=value.
- Certain characters must be encoded using a percent character followed by two hex digits.
- A name which contains a space, percent, newline or equals must use %-encoding.
- A value which contains a percent or newline must use %-encoding.
- Values may be grouped together using indentation. The indentation rules are identical to Python's but tabs are not allowed.
In a single line, then, the NSDFS is:
UTF-8, name=value, % encoding of [ %=\n], use Python indentation for hierarchy but no tabs.
Every file encoding can be losslessly and usefully transformed into NSDFS.
posted at: 15:38 |
path: /opensource |
permanent link to this entry