Complex sentence: These were not put into writing until the 19th and 20th centuries and until then they had been memorized and told for generations.
Split into simpler sentences: These were not put into writing until the 19th and 20th centuries. Before then they had been memorized and told for generations.