Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 05-01-2023, 06:55 AM   #1
ishare
Junior Member
ishare began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2023
Device: Kindle
Transform HTML in Look & Feel - Common options doesn't work

Dear all, I usually convert the original EPUB book to EPUP in order to uniform its styles. Basically, my settings in Look % Feel - Common Option, such as Fonts, Layout, Styling, Transform styles, work well. Only the rules in tag "Transform HTML" failed. The rules are very simple, just remove all attributes in the tags of H1, H2, etc., I attached the screenshot for checking.

After run "conver books", those rules are not applied.

I am wondering if anyone here had this problem before and found way to solve it?

Looking forward to your help. Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	2023-05-01 12_46_43-calibre - Preferences - Common options.jpg
Views:	141
Size:	224.5 KB
ID:	201358  
ishare is offline   Reply With Quote
Old 05-01-2023, 08:35 AM   #2
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,079
Karma: 105211945
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
But often H2, H2 etc use CSS styles or other attribute stuff is needed.
Some epub don't put an class or style attribute in the <H1 or <H2 etc HTML but set CSS for all headings of a level in CSS

.h2 {
stuff: value;
more-stuff: value
}

etc.

I only use Transform for Styles and to remove line-height and white-space properties in any CSS.
line-height should never be set in books.

After that you need to edit if it looks wrong in ereader.
Quoth is offline   Reply With Quote
Advert
Old 05-01-2023, 08:46 AM   #3
ishare
Junior Member
ishare began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2023
Device: Kindle
I have my own stylesheet.css in which the attributies of h1, h2, etc are defined. That is why I need to remove all attributies in the original htmls and then replace them with mine during conversion from epub to epub.
ishare is offline   Reply With Quote
Old 05-01-2023, 01:52 PM   #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: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
THe attributes here refer to attributes on the HTML tags not styles. For that you use Transform css.
kovidgoyal is offline   Reply With Quote
Old 05-03-2023, 02:06 AM   #5
ishare
Junior Member
ishare began at the beginning.
 
Posts: 3
Karma: 10
Join Date: May 2023
Device: Kindle
Transform HTML doesn't work

Quote:
Originally Posted by kovidgoyal View Post
THe attributes here refer to attributes on the HTML tags not styles. For that you use Transform css.
Thanks. I understood, that style css is different. The problem is the settings under tag "Transform HTML" as illustrated in the attached screenshot didn't applied during conversion from orginal epub to calibre epub.
ishare is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
html -> epub: splitting doesn't work vik2005 Conversion 3 05-31-2021 09:18 AM
Calibre 5.0: Copying HTML/rich text in ePub doesn't work anymore barro350 Viewer 3 09-25-2020 10:01 AM
Look & Feel narrow works, wide doesn't? jackie999 Calibre 3 12-21-2018 06:35 PM
My Tags & Genres Doesn't Work? Please Help! Forhood Calibre 2 07-19-2016 05:05 AM
Search & Replace doesn't work for quotes habanr Conversion 11 04-22-2011 11:50 AM


All times are GMT -4. The time now is 07:41 AM.


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