I've looked at this when working on
https://www.mobileread.com/forums/sh...d.php?t=349637
As you said, for PDFs you can easily get the current page number. For Epubs the best you can do is a percentage read (___PercentRead) and the current chapter (Title).