def proc_htrc_book(book, coll_dir, ignore=['.json', '.log', '.err']):
    book_root = os.path.join(coll_dir, book)

    logger = logging.getLogger(book)
    logger.setLevel(logging.INFO)
    log_file = os.path.join(coll_dir, book + '-raw-proc.log')
    handler = logging.FileHandler(log_file, mode='w')
    handler.setLevel(logging.DEBUG)
    formatter = logging.Formatter('%(asctime)s %(message)s')
    handler.setFormatter(formatter)
    logger.addHandler(handler)

    print 'Processing', book_root

    try:
        rm_pg_headers(book_root, logger, ignore=ignore)
        rm_lb_hyphens(book_root, logger, ignore=ignore)
    finally:
        handler.close()
Cleans up page headers, line breaks, and hyphens for all plain pages in the book directory. 
dataset/ETHPy150Open inpho/vsm/vsm/extensions/htrc.py/proc_htrc_book