1#!/usr/bin/env python3
2# SPDX-License-Identifier: LGPL-2.1-or-later
3
4import sys
5
6keywords_section = False
7
8for line in open(sys.argv[1]):
9    if line[0] == '#':
10        continue
11
12    if keywords_section:
13        print('"{}\\0"'.format(line.split(',')[0].strip()))
14    elif line.startswith('%%'):
15        keywords_section = True
16