View Single Post
Old 08-25-2021, 08:09 AM   #68
MicroDrie
Connoisseur
MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.MicroDrie ought to be getting tired of karma fortunes by now.
 
Posts: 58
Karma: 438844
Join Date: Aug 2019
Device: PC, Linux Mint, Tablet, and Telephone
Good news for rsuchwani, I have so simple solution for the "Loss of text" and "Indent character(s) at the top of new page". The cause is the use of a nested list and a render rule unknown to me for block elements. Building the list with a paragraph or div element in combination with a "before" content does solve the loss of text, but you still keep the indent characters on a new page.

So I'm building a list using a table that has broad support for E-readers and EPUB apps. Here I give the table 100% width and I define in CSS the size and behavior of the first (left) cell, such as indent width.

Since you wrote that your indent characters are in most fonts, I use those. This increases the applicability to E-readers that cannot load fonts.

By defining a separate class for each indent level containing the required indent width with right alignment, it becomes even simpler. You can put in any indentation character or number you want.

Google Play Books has no problems reading and displaying.

Before printing to a PDF you will have to look at the settings, converting does not present any problems here either.

Good luck with this very simple old-school Proof-of-Concept.
Attached Thumbnails
Click image for larger version

Name:	NestedTabel.png
Views:	212
Size:	73.7 KB
ID:	188899   Click image for larger version

Name:	PdfTwoPages.png
Views:	193
Size:	113.6 KB
ID:	188902  
Attached Files
File Type: epub PlayBooks_NestedLists_Test_Fixed.epub (8.5 KB, 206 views)
File Type: pdf PlayBooks_NestedLists_Test_Fixed.pdf (97.6 KB, 171 views)
MicroDrie is offline   Reply With Quote