def get_value_dict(f):
    """ Return dictionary of values and encoding or uuids from a
    .belns or .beleq file. """
    value_dict = {}
    value_block = False
    for line in iter(f):
        if line.strip() == '[Values]':
            value_block = True
        elif value_block is True:
            (value, other) = line.split('|')
            value_dict[value] = other
    return value_dict