#!/usr/bin/env python3

import sys as _sys

import common as _common


def main(args):
	_common.filemap(
		"concepts/json",
		_common.json_from,
		"concepts/dokuwiki",
		_common.dokuwiki_to,
		lambda name_from: ("concept_%u.txt" % (int(name_from.split(".")[0].split("_")[1])))
	)
	

main(_sys.argv[1:])