In 1209 , the Jain scholar , minister , builder of temples and army commander Janna wrote , among other classics , Yashodhara Charite , a unique set of stories in 310 verses dealing with sadomasochism , transmigration of the soul , passion gone awry and cautionary morals for human conduct . The writing , although inspired by Vadiraja 's Sanskrit classic of the same name , is noted for its original interpretation , imagery and style . In one story , the poet tell of the infatuation of a man for his friend 's wife . Having killed his friend , the man abduct the wife , who die of grief . Overcome by repentance , he burn himself on the funeral pyre of the woman . The stories of infatuation reach a peak when Janna write about the attraction of Amrutamati , the queen , to the ugly mahout Ashtavakra , who please the queen with kicks and whip lashes . This story have piqued the interest of modern researchers . In honour of this work , Janna received the title Kavichakravarthi ( " Emperor among poets " ) from his patron , King Veera Ballala II . His other classic , Anathanatha Purana ( 1230 ) , is an account of the life of the 14th tirthankar Ananthanatha .