Many years ago (at least 20 years past), I remember reading a fantasy book that I believe was the first in a series. It had something to do with a codex (I think?) and there was a strange portal of some sort into which the hero's love interest fell. The hero then spent some time yelling things...