#! /usr/bin/env python
#-*- coding: utf-8-*-
# author: vivian voigt
import sys, os, re
import StringIO
def searchHyphen(str):
return (str[-2] == '-')
def replace_all(text, dic):
for i, j in dic.iteritems():
text = text.replace(i, j)
return text
# list of replacements
reps = {'$':'us', 'í':'i', 'ſ':'s', 'ů':'u', 'ů':'u', '€':'der', '⸗':'-', 'æ':'ae', 'Æ':'AE', 'œ':'oe', 'Œ':'OE', 'å':'a', 'aͤ':'ä', 'ͤa':'ä', 'äͤ':'ä', 'oͤ':'ö', 'uͤ':'ü','vͤ':'ü', 'Aͤ':'Ä', 'Oͤ':'Ö', 'Uͤ':'Ü', 'Vͤ':'Ü', '˖':':', 'ʒ':'z', 'ȝ':'z', 'v̂':'ü','ű':'ü','o̊':'o'}
def main(argv):
if len(argv) < 3:
print """usage: ./rp