The idea to scan the library’s manuscripts — above all, the 350 that date from before 1000 — was born as a reaction to the devastating floods that swept Dresden, Germany, and its artworks in 2002, said Ernst Tremp, an expert on medieval history who is the library director.