Minecraft wiki entry for Before_1.8, associated text: If the sacrifice is a book, there will be no repair, but the anvil will try to combine the book's enchantment onto the target. The item can also be renamed at the same time. The cost will be much less than for combining two similar items.