Next / Previous / Contents / Shipman's homepage

7.2. NAME_START_RANGES

A list of the Unicode code point ranges that define the NameStartChar character set in the XML standard. See Section 4.4, “Name validation”.

sox.py
NAME_START_RANGES = [
    (ord(':'), ord(':')),
    (ord('A'), ord('Z')),
    (ord('_'), ord('_')),
    (ord('a'), ord('z')),
    (0x00C0, 0x00D6),
    (0x00D8, 0x00F6),
    (0x00F8, 0x02FF),
    (0x0370, 0x037D),
    (0x037F, 0x1FFF),
    (0x200C, 0x200D),
    (0x2070, 0x218F),
    (0x2C00, 0x2FEF),
    (0x3001, 0xD7FF),
    (0xF900, 0xFDCF),
    (0xFDF0, 0xFFFD),
    (0x010000, 0x0EFFFF) ]