Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-22-2019, 04:57 PM   #1
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,268
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Centering Chapter Headings

I don't like seeing "Chapter One" (or whatever chapter heading there is) along the left side of the page. Short of going into the book and manually centering it, is there some automatic way to set it? This generally applies to books that I have edited that were originally in paper format.

I default keep the original page style, but sometimes I set it to left orientation. I like the ragged edges and the natural spacing between words. However I do not like seeing the chapter headings on the left paragraph. I will go into a book and manually center (and often change the tag to "H2". Not a huge deal, but is there a way to do this automatically?

I know that there is a setting in conversion that allows the wizard to make changes, but I am not sure how to use it in this instance.

Any help or suggestions would be appreciated, and I plan to come back and keep an eye on this post today because I have a bad habit of posting and forgetting :-)

Last edited by Rellwood; 03-22-2019 at 04:59 PM. Reason: clarification
Rellwood is offline   Reply With Quote
Old 03-22-2019, 05:25 PM   #2
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
In the editor I would simply add 'text-align: center' to the css entry used for the "Chapter Nnnnn" heading paragraphs. If all such paragraphs didn't use the same css entry I would make it so that they do

BR
BetterRed is online now   Reply With Quote
Advert
Old 03-22-2019, 05:33 PM   #3
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,268
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Thanks! I actually was able to see that in some books they were preceded by a specific tag. I went in and added the "text align: center;" option. However short of doing this each time, it seems there is no way of doing it automatically.

Especially annoying when trying to edit merged books.

Too many authors have very messy internals. I am so thankful for the beautification button.
Rellwood is offline   Reply With Quote
Old 03-22-2019, 05:37 PM   #4
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,268
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Quote:
Originally Posted by BetterRed View Post
In the editor I would simply add 'text-align: center' to the css entry used for the "Chapter Nnnnn" heading paragraphs. If all such paragraphs didn't use the same css entry I would make it so that they do

BR
How can I add a css entry that would standardize each chapter heading if they weren't already set?

If I were smarter I would just learn how to edit books all together.
Rellwood is offline   Reply With Quote
Old 03-22-2019, 05:48 PM   #5
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: 31,056
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Rellwood View Post
How can I add a css entry that would standardize each chapter heading if they weren't already set?

If I were smarter I would just learn how to edit books all together.
There are no (CSS or Style) standards for any part of the book, so you need to 'edit' the book to see how it was done, which may require following back to the CSS. This could be many DIV layers deep for some publishers as they build 'blocks' for various parts. This is why trying to Center it in Bookview does not always work...the centering was done by an outer block that only affects the inner ones.
Codeview rules them all
theducks is online now   Reply With Quote
Advert
Old 03-22-2019, 05:51 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
If the epub came from calibre conversion there'll probably be something like this for chapter headers in the xhtml files:

Code:
<h2 id="calibre_toc_3" class="calibre5">Chapter Two </h2>
And in the stylesheet.css there'll probably be something like this

Code:
.calibre5 {
    display: block;
    font-size: 1.375em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.83em;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.83em
    }
If you add the text-align centre into the calibre5 definition then everything that uses calibre5 will be centred.

Because the epub came from calibre conversion there's a good chance chapter headings will be the only things that will use that particular css class - use Search make sure that's true. It won't necessarily be 'calibre5' could be 'calibre101'

BR

Last edited by BetterRed; 03-22-2019 at 06:12 PM.
BetterRed is online now   Reply With Quote
Old 03-22-2019, 06:52 PM   #7
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,268
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
@all,

Finding the tag that precedes the chapter heading was something I just realized to do today, but I thought you guys were suggesting that I could just insert my own tag in the cc file that would automatically target and format chapter headings regardless of what there already is. Absurd to think this, but it would be nice?

Yeah, it is kind of like a game to me to take a book with awful internals because of multiple conversions or editing and make it "pretty" again.
Rellwood is offline   Reply With Quote
Old 03-22-2019, 06:55 PM   #8
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,268
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Quote:
Originally Posted by BetterRed View Post
If the epub came from calibre conversion there'll probably be something like this for chapter headers in the xhtml files:

Code:
<h2 id="calibre_toc_3" class="calibre5">Chapter Two </h2>
And in the stylesheet.css there'll probably be something like this

Code:
.calibre5 {
    display: block;
    font-size: 1.375em;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.83em;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0.83em
    }
If you add the text-align centre into the calibre5 definition then everything that uses calibre5 will be centred.

Because the epub came from calibre conversion there's a good chance chapter headings will be the only things that will use that particular css class - use Search make sure that's true. It won't necessarily be 'calibre5' could be 'calibre101'

BR

This is exactly what I discovered today. Funny how I have been at this for a few years now but am learning new things. I have had to go back and completely re-edit previous books because they were so badly done because of my lack of understanding. The worst part is having to wait until I come across the bad book when trying to read it for the first time and realizing I need to go to the computer to edit it and resend it to my Kindle before I can move forward.
Rellwood is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Chapter seperators (lines underneath chapter headings) indieauthor83 Sigil 9 06-23-2017 06:01 AM
How to mark chapter headings JimLL Sigil 107 06-17-2012 09:02 AM
Chapter Headings Paxman53 Conversion 3 10-12-2011 12:31 PM
Why H1 and H2 Chapter Headings? Ransom Calibre 11 08-10-2011 04:29 PM
Help converting chapter headings p3aul Conversion 6 04-03-2011 12:56 PM


All times are GMT -4. The time now is 05:58 PM.


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