Changed HocrReader from class to trait.