Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-17-2022, 10:27 AM   #1
pitipilot
Junior Member
pitipilot began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2022
Device: KOBO Format
Add Automatically new page

Hello there,

It seems that when we have too much characters at one page (html page), all of them are truncated.

How can I adapt my source code to create automatically another page if I have too much characters ?
pitipilot is offline   Reply With Quote
Old 07-17-2022, 11:32 AM   #2
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 3,347
Karma: 20171571
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
Hello - and welcome to MR!

I'm not sure exactly what is going on...html pages don't have a character limit. Can you explain in a little more detail?
Turtle91 is offline   Reply With Quote
Advert
Old 07-17-2022, 12:43 PM   #3
pitipilot
Junior Member
pitipilot began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2022
Device: KOBO Format
Quote:
Originally Posted by Turtle91 View Post
Hello - and welcome to MR!

I'm not sure exactly what is going on...html pages don't have a character limit. Can you explain in a little more detail?
In fact in SIGIL editor to make my EBOOK, I have a HTML page with lot of characters. But on the preview page generated, the text is truncated and the same in my e-reader.
pitipilot is offline   Reply With Quote
Old 07-17-2022, 12:46 PM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
Is this a fixed layout epub? Maybe a screen cap would help?
KevinH is online now   Reply With Quote
Old 07-17-2022, 12:47 PM   #5
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,568
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
There's probably some negative margins or 'pre' tags/css that causes text to run off the screen. Hence the mistaken notion that there's been some sort of limitation being reached. Either that, or there's unsupported fixed layout stuff going on.

Older versions of Sigil might have run into a 10Mb webengine limitation, but I have no idea how it might have manifested, and that's been fixed for quite a few releases, now.

Last edited by DiapDealer; 07-17-2022 at 12:50 PM.
DiapDealer is online now   Reply With Quote
Advert
Old 07-17-2022, 05:30 PM   #6
pitipilot
Junior Member
pitipilot began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2022
Device: KOBO Format
I take a screenshot of the problem and integrate the source code.
You can find the pdf file which describe the problem here : https://we.tl/t-fj5O5SvY9K

Thanks for you help guys
pitipilot is offline   Reply With Quote
Old 07-17-2022, 06:04 PM   #7
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
Unfortunately, the issue is in one of your two css files. Either page-styles.css or stylesheet.css.

Please open each in CodeView and screen capture their contents and post them here.

Or alternatively just unzip your epub and zip up those two css files and post them here as an attachment.
KevinH is online now   Reply With Quote
Old 07-17-2022, 06:43 PM   #8
pitipilot
Junior Member
pitipilot began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2022
Device: KOBO Format
Please find my EPUB here https://we.tl/t-X3TxI2sxm7
pitipilot is offline   Reply With Quote
Old 07-17-2022, 06:58 PM   #9
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
try removing the class attribute and its contents from the offending paragraph.
KevinH is online now   Reply With Quote
Old 07-17-2022, 07:12 PM   #10
pitipilot
Junior Member
pitipilot began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2022
Device: KOBO Format
It works, when I remove for example : "<div class="frame_10">", there aren't truncated paragraphs.

But how can I do that easely for all my HTML page (around 200 pages) ?
pitipilot is offline   Reply With Quote
Old 07-17-2022, 07:30 PM   #11
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,168
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by pitipilot View Post
It works, when I remove for example : "<div class="frame_10">", there aren't truncated paragraphs.

But how can I do that easely for all my HTML page (around 200 pages) ?
You could install and use TagMechanic (a Sigil plugin). I tested it by selecting all the text files and then running TagMechanic with:
Action type: delete
Tag name: div
Having the attribute: class
Whose value is frame_[0-9]

This seems to have removed all the div class="frame_xx]/</div> pairs. See the attached file.

One quick question is why this epub seems to have been made with each page as a separate file. Almost like it was a fixed layout epub that was mangled into a reflowable format.
Attached Files
File Type: epub Pourquoi les femmes des riches - Gouillou Philippe.epub (589.7 KB, 238 views)
DNSB is offline   Reply With Quote
Old 07-17-2022, 10:01 PM   #12
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
Perfect analysis. Yes, each block and frame has specific fixed widths and fixed heights with overflow: hidden.

This does appear as if someone took a fixed layout epub3 and shoehorned it into a reflowable epub2.

The resulting css is truly horrible for a reflowable epub. Perhaps you (pitipilot) might want to think about stripping out all the css classes and starting over from scratch with much more minimalist cross platform css suitable for a reflowable epub.


Quote:
Originally Posted by DNSB View Post
You could install and use TagMechanic (a Sigil plugin). I tested it by selecting all the text files and then running TagMechanic with:
Action type: delete
Tag name: div
Having the attribute: class
Whose value is frame_[0-9]

This seems to have removed all the div class="frame_xx]/</div> pairs. See the attached file.

One quick question is why this epub seems to have been made with each page as a separate file. Almost like it was a fixed layout epub that was mangled into a reflowable format.

Last edited by KevinH; 07-18-2022 at 07:54 AM.
KevinH is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add books automatically dunhill Library Management 2 03-28-2022 05:07 PM
Add books automatically dunhill Library Management 1 12-25-2020 04:09 PM
Is there a way to automatically/batch add the summary of the epub as a page? beejsbj Calibre 6 09-22-2018 09:53 AM
How to automatically add comments MarcDS Library Management 3 09-01-2017 05:23 PM
Automatically Add - How often does it check? Stresspuppy Library Management 2 05-19-2014 10:05 PM


All times are GMT -4. The time now is 01:10 PM.


MobileRead.com is a privately owned, operated and funded community.