![]() |
#1 |
Junior Member
![]() 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. |
![]() |
![]() |
![]() |
#2 |
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() 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.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: May 2023
Device: Kindle
|
Transform HTML doesn't work
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.
|
![]() |
![]() |
Advert | |
|
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
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 |