#!/usr/bin/python3
# -*- coding:utf-8 -*-
"""
file : zargan.py author : emrah
usage : zargan.py word
This script is a console based Zargan interface. Zargan is a
Turkish-English dictionary web site: www.zargan.com
"""
import re
import sys
import html
import requests
# Debug mode. 0 for production, 1 for testing.
DEBUG = 0
# Color mode for print out. 0 for no color, 1 for colored print out.
COLORED = 1
# Server address and web page.
PAGE = 'http://www.zargan.com/tr/q'
# Regex pattern to find translation.
RE_WORD = re.compile('(.*?)(.*?)(
|\n|\r|$)')
# Regex pattern to find term.
RE_TERM = '