# Section 4.2:
Ordering Specification File

Thordering specification file specifies the weights corresponding to each token code for use in ordering text strings in a culture-defined ordering. This file, therefore, contains both a large sequence of tokens with their corresponding weights as well as one or more ranges of tokens when some common set of weights can be applied to all tokens in some range. Note that the lettered size values are unique within the entire file!

Header
Entity | Octets | Name
--- | --- | ---
code size | 1 |
script count | 1 | a
list size | 1 | c
| >a times< |

Entity
<Script Entry>

<Undefined Entry> |  |

Script Entry
Entity | Octets | Name
--- | --- | ---
<Rules> |  |
table size | 4 | b
| >b times< |

Entity
<Table Entry>

ranges size | 4 | c
| >c times< |

Entity
<Range Entry>

Rules
Entity | Octets | Name
--- | --- | ---
rule count | 1 | d
| >d times< |

Entity | Octets | Comment
--- | --- | ---
forward | 1 | class `BOOL`
positional | 1 | class `BOOL`

Table Entry
Entity
Sized(token value)
<Weightings>

Weightings
Entity | Octets
--- | ---
| >d times<

Entity | Octets | Name
--- | --- | ---
element count | 1 | e
| >e times< |

Entity
Sized(element value)

Range Entry
Entity
Sized(start code value)
Sized(start code weight)
Sized(end code value)
Sized(end code weight)
<Weightings>

Undefined Entry
Entity
<Rules>
<Weightings>

| Specification Index |  | Resources Index

Comments or enquiries should be made to Keith Hopper. Page last modified: Tuesday, 24 October 2000. |