View Single Post
Old 08-26-2021, 03:06 AM   #72
rsuchwani
Enthusiast
rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.rsuchwani ought to be getting tired of karma fortunes by now.
 
Posts: 38
Karma: 2136220
Join Date: May 2012
Device: iPad, Kindle, Android
Quote:
Originally Posted by MicroDrie View Post
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.
This sounds amazing, yet so simple.

Let me thoroughly check the code and application, but I'm sure it works just as you said.

rsuchwani is offline   Reply With Quote