The story I'm writing requires a character with skills in reading, writing, speaking foreign languages (including Spanish, French, and Portuguese), translating classical languages (particularly Latin), and advanced mathematics used in surveying and navigation. Basically, a band of pirates come upon a map leading to a buried treasure. Unfortunately, the map is written in Latin, and in place of landmarks, bearings, and coordinates; all the information is written in the form of riddles and/or require the reader to take thier own measurements. This is to prevent casual treasure hunters from searching for the treasure, while helping to conceal the treasure's true location. Originally, I was going to assign these skills to the pirate captain, but I wanted to know if that was realistic. If so, then what could he have been before he turned pirate? If not, what sort of random person could the pirates pull off the street and press into thier crew with the skills required to read the map? Keep in mind, this is set in the late 1600s.