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 Yesterday, 11:17 PM   #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 Today, 02: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,080
Karma: 22669822
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
Advert
Old Today, 03: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:	22
Size:	33.3 KB
ID:	209394

Click image for larger version

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

Click image for larger version

Name:	2.png
Views:	21
Size:	38.9 KB
ID:	209396
womp9 is offline   Reply With Quote
Old Today, 04: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,080
Karma: 22669822
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 Today, 09: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: 517
Karma: 32106
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
Advert
Old Today, 03: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 Today, 03: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; Today at 04:49 PM. Reason: SPOILERED files
womp9 is offline   Reply With Quote
Old Today, 04: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,058
Karma: 57259778
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; Today at 07:00 PM. Reason: i was supposed to be item
theducks is offline   Reply With Quote
Old Today, 06: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,197
Karma: 4949904
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 offline   Reply With Quote
Old Today, 07: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,058
Karma: 57259778
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
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 10:39 AM
Two images in a single page Pippo53s03 ePub 5 04-17-2020 04:56 AM
Default Paragraph Style When Viewing HTML Files DuckFOO Amazon Kindle 6 05-15-2017 08:45 PM
Print page range in viewer outputs single empty page larzeb Library Management 2 04-30-2013 05:24 AM
Single page "Invalid Page!" error Sony-505 2percentright Calibre 5 07-29-2009 11:22 AM


All times are GMT -4. The time now is 07:34 PM.


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