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 09-28-2019, 03:05 AM   #1
3n4n
Junior Member
3n4n began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Sep 2019
Device: none
Get same style of css for all books in one series

I have five books in A Song of Ice and Fire series. The first four of them have a certain set of styles, but the last one is different. Is there an easy way to automatically edit the books in a series to have exactly same styles.

By style, I mean the css styles used for a paragraph, or a bold letter. For example, the last book has the first letter of every chapter in bold format and I want an automatic way to edit all the books in that series to have same settings to have first letter in each chapter in bold format.
3n4n is offline   Reply With Quote
Old 10-06-2019, 12:44 PM   #2
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Edit each book and manually edit (or add) the CSS code for the class you want to use for the first letter of each chapter title. There is no automatic way to do what you want to do, so you will have to manually edit or add the codes on each page for each chapter.
deback is offline   Reply With Quote
Advert
Old 10-06-2019, 12:56 PM   #3
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,456
Karma: 58055868
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 deback View Post
Edit each book and manually edit (or add) the CSS code for the class you want to use for the first letter of each chapter title. There is no automatic way to do what you want to do, so you will have to manually edit or add the codes on each page for each chapter.
So true. Even if the Look was the same in the others, the assigned selectors may be different.
Look
Note
Edit (the relevant place in the stylesheet is a lot easier than modifying the classes in the body of the work)
theducks is offline   Reply With Quote
Old 10-06-2019, 01:05 PM   #4
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
Quote:
Edit (the relevant place in the stylesheet is a lot easier than modifying the classes in the body of the work)
That would be true if the class for the first letter of each chapter title already exists in the body of the work, but if the class doesn't exist for the first letter of each chapter title, then the class will have to be manually added in the body of the work for each chapter title (in addition to adding the class in the .css file).
deback is offline   Reply With Quote
Old 10-06-2019, 02:46 PM   #5
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,537
Karma: 136565488
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 deback View Post
That would be true if the class for the first letter of each chapter title already exists in the body of the work, but if the class doesn't exist for the first letter of each chapter title, then the class will have to be manually added in the body of the work for each chapter title (in addition to adding the class in the .css file).
If you really want the last book to match the others, you'll need to load the last book and one of the others in two instances of the Editor so you can see the code for one while editing the other.

I hope you know CSS/HTML well enough to do this as there is no automated way to di this. It has to be done manually.
JSWolf is online now   Reply With Quote
Advert
Old 10-06-2019, 05:21 PM   #6
deback
Book E d i t o r
deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.deback ought to be getting tired of karma fortunes by now.
 
Posts: 432
Karma: 288184
Join Date: May 2015
Device: Laptop
He wants the first four books to match the fifth book, so he will have to manually edit all the chapter titles in the first four books. After he learns how to code with CSS, he should be able to quickly go through all the chapter titles in the first four books to add the coding for the first letter in each chapter title. Yes, opening the fifth book in the editor will show him how the code is written and what the CSS code should be in the stylesheet.css file.
deback is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Chapterhead style --- possible in CSS? GrannyGrump ePub 10 09-18-2013 10:58 PM
An example file of your CSS style sheet roger64 Writer2ePub 6 04-11-2012 03:59 AM
CSS style, TOC and other stuff sebdea Sigil 8 04-19-2011 04:40 AM
list-style in CSS? frabjous ePub 2 08-13-2009 07:28 PM


All times are GMT -4. The time now is 06:55 PM.


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