bibtex2html/bibtex2html.py
def cleanup_author(s):
    """Clean up and format author names.

    cleanup_author(str) -> str
    """

    dictionary = {'\\"a': '&auml;', '\\"A': '&Auml;', '\\"e': '&euml;', 
    '\\"E': '&Euml;', '\\"i': '&iuml;', '\\"I': '&Iuml;', '\\"o': '&ouml;', 
    '\\"O': '&Ouml;', '\\"u': '&uuml;', '\\"U': '&Uuml;', "\\'a": '&aacute;',
    "\\'A": '&Aacute;', "\\'e": '&eacute;', "\\'i": '&iacute;', 
    "\\'I": '&Iacute;', "\\'E": '&Eacute;', "\\'o": '&oacute;', 
    "\\'O": '&Oacute;', "\\'u": '&uacute;', "\\'U": '&Uacute;', 
    '\\~n': '&ntilde;', '\\~N': '&Ntilde;', '\\~a': '&atilde;', 
    '\\~A': '&Atilde;', '\\~o': '&otilde;', '\\~O': '&Otilde;', 
    '.': ' ', "\\'\\": '', '{': '', '}': '', ' And ': ' and '}

    for k, v in dictionary.iteritems():
        s = s.replace(k, v)

    s = s.strip()

    before, sep, after = s.rpartition(' and ')
    before = before.replace(' and ', ', ')
    s = before + sep + after

    return s
Clean up and format author names.

    cleanup_author(str) -> str
    
Clean up and format author names.
Clean up and format author names .
def cleanup_author(s):
    dictionary = {'\\"a': '&auml;', '\\"A': '&Auml;', '\\"e': '&euml;', 
    '\\"E': '&Euml;', '\\"i': '&iuml;', '\\"I': '&Iuml;', '\\"o': '&ouml;', 
    '\\"O': '&Ouml;', '\\"u': '&uuml;', '\\"U': '&Uuml;', "\\'a": '&aacute;',
    "\\'A": '&Aacute;', "\\'e": '&eacute;', "\\'i": '&iacute;', 
    "\\'I": '&Iacute;', "\\'E": '&Eacute;', "\\'o": '&oacute;', 
    "\\'O": '&Oacute;', "\\'u": '&uacute;', "\\'U": '&Uacute;', 
    '\\~n': '&ntilde;', '\\~N': '&Ntilde;', '\\~a': '&atilde;', 
    '\\~A': '&Atilde;', '\\~o': '&otilde;', '\\~O': '&Otilde;', 
    '.': ' ', "\\'\\": '', '{': '', '}': '', ' And ': ' and '}
    for k, v in dictionary.iteritems():
        s = s.replace(k, v)
    s = s.strip()
    before, sep, after = s.rpartition(' and ')
    before = before.replace(' and ', ', ')
    s = before + sep + after
    return s
def cleanup_author ( s ) : dictionary = { '\\"a' : '&auml;' , '\\"A' : '&Auml;' , '\\"e' : '&euml;' , '\\"E' : '&Euml;' , '\\"i' : '&iuml;' , '\\"I' : '&Iuml;' , '\\"o' : '&ouml;' , '\\"O' : '&Ouml;' , '\\"u' : '&uuml;' , '\\"U' : '&Uuml;' , "\\'a" : '&aacute;' , "\\'A" : '&Aacute;' , "\\'e" : '&eacute;' , "\\'i" : '&iacute;' , "\\'I" : '&Iacute;' , "\\'E" : '&Eacute;' , "\\'o" : '&oacute;' , "\\'O" : '&Oacute;' , "\\'u" : '&uacute;' , "\\'U" : '&Uacute;' , '\\~n' : '&ntilde;' , '\\~N' : '&Ntilde;' , '\\~a' : '&atilde;' , '\\~A' : '&Atilde;' , '\\~o' : '&otilde;' , '\\~O' : '&Otilde;' , '.' : ' ' , "\\'\\" : '' , '{' : '' , '}' : '' , ' And ' : ' and ' } for k , v in dictionary . iteritems ( ) : s = s . replace ( k , v ) s = s . strip ( ) before , sep , after = s . rpartition ( ' and ' ) before = before . replace ( ' and ' , ', ' ) s = before + sep + after return s
Clean up and format author names.
Clean up and format author names .
"""Clean up and format author names.

    cleanup_author(str) -> str
    """
s