A scholar of India explores how two 19th-century memoirs portray a land where different religious identities coexist.