commit 2492bf48b4e5d0afaf43d5d446f382d8685ef03f Author: Jyri Eerola Date: Sat Jun 10 20:02:08 2017 +0300 Initial diff --git a/transformer.py b/transformer.py new file mode 100644 index 0000000..2ea7e82 --- /dev/null +++ b/transformer.py @@ -0,0 +1,54 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# +# nimetön.py +# +# Copyright 2017 Jyri Eerola +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301, USA. +# +# +import sys +import re +import json + +#class bcolors: +# HEADER = '\033[95m' +# OKBLUE = '\033[94m' +# OKGREEN = '\033[92m' +# WARNING = '\033[93m' +# FAIL = '\033[91m' +# ENDC = '\033[0m' +# BOLD = '\033[1m' +# UNDERLINE = '\033[4m' + +gamejoin = r"\[(?P