Better detection of chapters. Actually one chapter have division that really don't exist
Also, on few epubs I found out that first chapter starts with some metadata (which are NOT text in epub) such as padding:...margin:0pt}...body...text-align:center; etc.
It seems the first "Chapter" is almost always meta data / CSS, and also "Chapters" that punctuate two actual chapters. I'll look into this.
Also, sometimes after finishing a chapter, the text stream jumps at the beginning of the chapter instead of continuing with next chapter.
I have a similar issue with some epubs that choosing a chapter starts the book from the beginning.
I also have problems with the chapters. Once a chapter is finished, it returns to the beginning of this chapter, however, the indicator (bottom left) goes well in the next chapter. I have went through this counter to restart the chapter and then the application reads the correct one. To be clear: I read Chapter 2, at the end, the meter displays Chapter 3 but reread Chapter 2. Via the counter, I throw again the Chapter 3 and the apk reads well Chapter 3.
As for the latest build, book reading stops after the first chapter. And there's no way to switch to next chapters because in chapter list is listed only the first chapter. I hope it's only a semi-step to working chapter-recognition :)
Could you send me the epubs that are causing these problems?
There are some changes in 6b44f03b that significantly improves handling of epubs with Table of Contents.
I builded apk with the last commit and just sent you to email 2 epubs that did not and are not working now. Meaning I can't get through first chapter.
After last commits the epubs are readable again ;) So what remains now is to solve the chapter jumping issue.