I would agree with you that your example is a tricky situation, and I don't have a fast answer to it, but I try.
I would say memorising the whole text and then typing it down is in no way different from, let´s say, borrowing the book from a friend and copying it by hand. If he uses only part off...