Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Viewer

Notices

Reply
 
Thread Tools Search this Thread
Old 07-06-2024, 12:17 AM   #1
womp9
Junior Member
womp9 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2024
Device: Windows 10
Single paragraph viewing per page?

Is there a way I can make each page view only a single paragraph?
womp9 is offline   Reply With Quote
Old 07-06-2024, 03:05 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Add

Code:
p { page-break-after: always }
to the user stylesheet in the viewer.
kovidgoyal is offline   Reply With Quote
Old 07-06-2024, 04:59 AM   #3
womp9
Junior Member
womp9 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2024
Device: Windows 10
Quote:
Originally Posted by kovidgoyal View Post
Add

Code:
p { page-break-after: always }
to the user stylesheet in the viewer.
I have tried to follow your advice, but it looks like it still isn't working for me. I still don't get one paragraph per a page.

Click image for larger version

Name:	0.png
Views:	54
Size:	33.3 KB
ID:	209394

Click image for larger version

Name:	1.png
Views:	63
Size:	437.6 KB
ID:	209395

Click image for larger version

Name:	2.png
Views:	52
Size:	38.9 KB
ID:	209396
womp9 is offline   Reply With Quote
Old 07-06-2024, 05:49 AM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Then your book isnt actually using <p> tags for paragraphs, in which case there isnt any generic way to do this it will depend on per book markup.
kovidgoyal is offline   Reply With Quote
Old 07-06-2024, 10:17 AM   #5
nqk
Fanatic
nqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beautynqk does all things with Zen-like beauty
 
Posts: 526
Karma: 32158
Join Date: Feb 2012
Device: Onyx Boox Leaf
margin-bottom: 98vh !important;



Sent from my Pixel 7 Pro using Tapatalk
nqk is offline   Reply With Quote
Old 07-06-2024, 04:43 PM   #6
womp9
Junior Member
womp9 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2024
Device: Windows 10
Quote:
Originally Posted by kovidgoyal View Post
Then your book isnt actually using <p> tags for paragraphs, in which case there isnt any generic way to do this it will depend on per book markup.
That's a shame. Thanks anyway!
womp9 is offline   Reply With Quote
Old 07-06-2024, 04:54 PM   #7
womp9
Junior Member
womp9 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Jul 2024
Device: Windows 10
Quote:
Originally Posted by kovidgoyal View Post
Then your book isnt actually using <p> tags for paragraphs, in which case there isnt any generic way to do this it will depend on per book markup.
Would you know how I should edit this books CSS so that paragraphs turn into pagebreaks?:
Spoiler:

.bold {
font-weight: bold
}
.calibre {
display: block;
font-size: 1em;
padding-left: 0;
padding-right: 0;
text-align: justify;
margin: 0 5pt
}
.calibre_ {
display: block;
text-align: left;
text-indent: 1em;
margin: 0
}
.calibre_1 {
display: block;
text-align: left;
text-indent: 1em;
margin: 1em 0 0
}
.calibre_2 {
color: #000
}
.calibre_3 {
display: block;
margin: 1em 0 0 2em
}
.calibre_4 {
display: block;
text-align: left;
text-indent: 1em;
margin: 0 0 0 2em
}
.calibre_5 {
height: 349px;
vertical-align: baseline;
width: 103px
}
.calibre_6 {
display: block;
text-align: left;
text-indent: 0;
margin: 2em 0 0
}
.calibre_7 {
display: block;
text-indent: 0;
margin: 1em 0 0
}
.calibre_8 {
display: block;
text-indent: 0;
margin: 0
}
.calibre_9 {
display: block;
text-indent: 0;
margin: 0 0 0 2em
}
.calibre_10 {
display: block;
text-align: center;
text-indent: 1em;
margin: 1em 0 0
}
.calibre_11 {
display: block;
text-align: center;
text-indent: 1em;
margin: 0
}
.calibre_12 {
display: block;
text-align: justify;
text-indent: 1em;
margin: 0
}
.calibre_13 {
display: block;
text-align: right;
text-indent: 1em;
margin: 0
}
.calibre_14 {
height: 271px;
vertical-align: baseline;
width: 63px
}
.calibre_15 {
height: 271px;
vertical-align: baseline;
width: 60px
}
.calibre_16 {
height: 271px;
vertical-align: baseline;
width: 62px
}
.calibre_17 {
height: 271px;
vertical-align: baseline;
width: 56px
}
.calibre_18 {
display: block;
text-align: justify;
text-indent: 1em;
margin: 0 0 0 2em
}
.calibre_19 {
height: 271px;
vertical-align: baseline;
width: 54px
}
.calibre_20 {
display: block;
text-indent: 1em;
margin: 0
}
.calibre_21 {
height: 271px;
vertical-align: baseline;
width: 64px
}
.calibre_22 {
display: block;
text-align: center;
text-indent: 0;
margin: 1em 0 0
}
.calibre_23 {
height: 775px;
vertical-align: baseline;
width: 471px
}
.calibre1 {
display: block
}
.calibre2 {
font-size: 0.75em
}
.calibre3 {
font-size: 1.125em;
line-height: 1.2
}
.calibre4 {
display: block;
margin: 0 0 0 2em
}
.calibre5 {
font-size: 0.75em;
line-height: normal;
vertical-align: super
}
.calibre6 {
font-size: 0.77778em
}
.calibre7 {
font-size: 1.28571em
}
.italic {
font-style: italic
}
.mbp_pagebreak {
display: block;
margin: 0
}

Last edited by theducks; 07-06-2024 at 05:49 PM. Reason: SPOILERED files
womp9 is offline   Reply With Quote
Old 07-06-2024, 05:55 PM   #8
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,444
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
By reverse engineering the files.

But wait, Calibre Editor made it simple

Code:
<p class="p12">Natesa laughed, and shook her head.</p>
Simply put the cursor on the item made lime and ctrl-right click. That jumps to the CSS that controls THAT P

insert that page break code there

Last edited by theducks; 07-06-2024 at 08:00 PM. Reason: i was supposed to be item
theducks is offline   Reply With Quote
Old 07-06-2024, 07:16 PM   #9
Karellen
Wizard
Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.Karellen ought to be getting tired of karma fortunes by now.
 
Karellen's Avatar
 
Posts: 1,356
Karma: 6794938
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by theducks View Post
Code:
<p class="p12">Natesa laughed, and shook her head.</p>
Simply put the cursor on the i made lime and ctrl-right click.
Sorry, I am not sure what you mean here.
It should be ctrl-left mouse button on the "p12" class.
I don't know what the "i" and lime is as they don't appear in the snippet you posted.
Karellen is online now   Reply With Quote
Old 07-06-2024, 08:02 PM   #10
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,444
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The i was supposed to be item
P12 is just the sample selector, yours will usually be different (eg calibre42)
theducks is offline   Reply With Quote
Old 07-07-2024, 02:33 AM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 44,542
Karma: 24495948
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Look at the HTML markup in your book. Find out what tags is used for paragraphs. Then in the CSS add

Code:
whatever-tag-that-is { page-break-after: always !important }
kovidgoyal is offline   Reply With Quote
Old 07-07-2024, 06:17 AM   #12
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,410
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by theducks View Post
By reverse engineering the files.

But wait, Calibre Editor made it simple

Code:
<p class="p12">Natesa laughed, and shook her head.</p>
Simply put the cursor on the item made lime and ctrl-right click. That jumps to the CSS that controls THAT P

insert that page break code there
Please don't use lime as a color. It's unreadable against a white background.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Size Equalizer-To single-page capture camera scan Rip8 Workshop 1 06-30-2021 11:39 AM
Two images in a single page Pippo53s03 ePub 5 04-17-2020 05:56 AM
Default Paragraph Style When Viewing HTML Files DuckFOO Amazon Kindle 6 05-15-2017 09:45 PM
Print page range in viewer outputs single empty page larzeb Library Management 2 04-30-2013 06:24 AM
Single page "Invalid Page!" error Sony-505 2percentright Calibre 5 07-29-2009 12:22 PM


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


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