Improve translation rule parsing