#! /usr/bin/env python
#-*- coding: utf-8-*-
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
reps = {'ã':'an', 'ā':'an', 'ñ':'nn', 'n̄':'nn', 'ā':'an', 'Ũ':'Um', 'õ':'on', 'Õ':'On', 'ẽ':'en','ē':'en','ē':'en', 'Ẽ':'En', 'ĩ':'in', 'Ĩ':'In', 'ſ':'s', 'ů':'u', '€':'der','ů':'u', '⸗':'-', 'æ':'ae', 'Æ':'AE', 'œ':'oe', 'Œ':'OE', 'å':'a', 'aͤ':'ä', 'oͤ':'ö', 'uͤ':'ü','vͤ':'ü', 'Aͤ':'Ä', 'Oͤ':'Ö', 'ñ':'nn', 'Uͤ':'Ü', 'Vͤ':'Ü'}
def main(argv):
if len(argv) < 3:
print """usage: ./rp