One of the ways can be through poetry. Since many poems tend to include rhymes, the pronunciation of a word can sometimes be gleaned by comparing it to its rhyme pair (there's probably an actual word for that). Of course, that presupposes you know the pronunciation of the other word.
Edit: Pretty much what edanm said. I really should do a page refresh before replying when the tab has been open for a while :)