code: def keysym_definitions():
      
      for keysym_line in keysym_lines():
          # As described in the input text, the format of a line is:
          # 0x20 U0020 . # space /* optional comment */
          keysym_number, codepoint, status, _, name_part = [
              p.strip() for p in keysym_line.split(None, 4)]
          name = name_part.split()[0]
  
          yield (int(keysym_number, 16), codepoint[1:], status, name)
docs: Yields all keysym definitions parsed as tuples.