Next / Previous / Contents / Shipman's homepage

6.3. unidata: Manifest constants

unidata.py
# - - - - -   M a n i f e s t   c o n s t a n t s

First we'll need the name of the data file.

unidata.py
IN_FILE = 'unicode.xml'

To access XML element names and attributes, these names are defined. Names ending in “_N” are node names; names ending in “_A” are attribute names.

unidata.py
BLOCK_N = "block"
CHARACTER_N = "character"
CHARLIST_N = "charlist"
DESCRIPTION_N = "description"
ENTITY_N = "entity"
ENTITYGROUPS_N = "entitygroups"
GROUP_N = "group"
SET_N = "set"
UNICODEBLOCKS_N = "unicodeblocks"
UNICODEDATA_N = "unicodedata"

DEC_A = "dec"
END_A = "end"
FPI_A = "fpi"
ID_A = "id"
NAME_A = "name"
SET_A = "set"
START_A = "start"
UNICODE1_A = "unicode1"