def hex_range_iterator(start_hex, end_hex):
    """ Iterator that takes a first and last hex number, and returns each one
        in succession.
        Used to generate character sets from unicode-provided ranges
        # Example usage:
        start_hex = "1FB00"
        end_hex = "1FBFF"
        for hex_value in hex_range_iterator(start_hex, end_hex):
            print(hex_value)
    """
    start_int = int(start_hex, 16)  # Convert start_hex to an integer
    end_int = int(end_hex, 16)      # Convert end_hex to an integer
    current_int = start_int
    while current_int <= end_int:
        #yield format(current_int, 'X')  # Convert the integer back to hexadecimal
        #yield hex(current_int)
        yield current_int
        current_int += 1
 Iterator that takes a first and last hex number, and returns each one
        in succession.
        Used to generate character sets from unicode-provided ranges
        # Example usage:
        start_hex = "1FB00"
        end_hex = "1FBFF"
        for hex_value in hex_range_iterator(start_hex, end_hex):
            print(hex_value)
    
durdraw/durdraw_charsets.py