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 03-05-2023, 09:04 AM   #1
GeorgeTMule
Junior Member
GeorgeTMule began at the beginning.
 
GeorgeTMule's Avatar
 
Posts: 4
Karma: 10
Join Date: Mar 2023
Location: Elizabeth, CO, USA
Device: Calibre reader, Kindle
Getting rid of "Bold" font attribute PDF-EPUB

Hi All
My first post here. Your "introduce yourself" thread is closed for some reason?
I'm trying to convert some books in PDF to EPUB or MOBI. My conversions are working OK, except for a "Bold" font attribute that appears to originate in the PDF document, which my Adobe reader reports as "LiberationSerif-Bold. Obviously the reader won't let me change this, and I don't work with PDF enough to justify purchasing the full application. Might not let me change it anyway.
Whatever, the Bold attribute looks bad in the Calibre reader, and is tiring to read.
I've gone thru the "conversion" and "edit" settings, and tried things that looked like they might work, but the Bold remains.
I've reached the end of my very limited knowledge on the subject, I've looked thru the Manual, the FAQ, and searched the forum w/o finding anything very useful, so I thought to try asking the Gurus
Any thoughts greatly appreciated. TIA! Steve (and George, the Mule)
GeorgeTMule is offline   Reply With Quote
Old 03-05-2023, 12:27 PM   #2
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,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A

The calibre VIEWER has its own settings. Tap Esc. to see those.
The font section seems to only apply to unstyled fonts, so than might not fix your issue.

You could try editing the books EPUB Stylesheet Using the editor (T)
2 general places might help: change the font-family: used for the Bolded style
Code:
 font-family: Alegreya, serif;
to a different font or just leave the generic (serif)

or change the font-weight for the style (assumes a span, b or p controls)
theducks is offline   Reply With Quote
Advert
Old 03-06-2023, 01:41 PM   #3
GeorgeTMule
Junior Member
GeorgeTMule began at the beginning.
 
GeorgeTMule's Avatar
 
Posts: 4
Karma: 10
Join Date: Mar 2023
Location: Elizabeth, CO, USA
Device: Calibre reader, Kindle
Hi TheDucks

Alas, there isn't an option in the viewer to select std. vs bold.
The conversion will filter out embedded text from the input doc, and will allow me to select an alternate font, but it still comes out "bold".
I think something like this is what I need to find, but I'm not sure where to find it:
"or change the font-weight for the style (assumes a span, b or p controls)"
I did come up with a work-around by selecting a really skinny font (Letter Gothic), and converting into epub. At least this yields a readable book.
I'll experiment some more as time and enthusiasm allow.
GeorgeTMule is offline   Reply With Quote
Old 03-06-2023, 01:57 PM   #4
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,897
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
George.
I gave up trying to fix book looks using Conversion.
I use the Editor and do surgery on the CSS
ctrl-right-click of the style= part of the offensive paragraph and it will usually jump to that part of thew CSS
theducks is offline   Reply With Quote
Old 03-06-2023, 02:23 PM   #5
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,605
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by GeorgeTMule View Post
Whatever, the Bold attribute looks bad in the Calibre reader, and is tiring to read.
I've gone thru the "conversion" and "edit" settings, and tried things that looked like they might work, but the Bold remains.
In the stylesheet.css file look for...

font-weight: bold;

It might be in the <body> tag, or in the paragraph tags <p>. Change it to...

font-weight: normal;
Karellen is online now   Reply With Quote
Advert
Old 03-06-2023, 05:09 PM   #6
GeorgeTMule
Junior Member
GeorgeTMule began at the beginning.
 
GeorgeTMule's Avatar
 
Posts: 4
Karma: 10
Join Date: Mar 2023
Location: Elizabeth, CO, USA
Device: Calibre reader, Kindle
Hi Karellen

Yup, that did it. Good Job!
It was there twice, once under ".calibre2 {", and again under ".calibre4 {". It looks like the first entry, the one in .calibre2, was the one that made it happen, just FWIW.

Calibre is an awesome tool, but like any tool, ya gotta learn how to use it :-)
(Calibre5 on MacbookPro, Mojave)

Thanks! Steve (and George, the Mule)
GeorgeTMule is offline   Reply With Quote
Old 03-06-2023, 05:29 PM   #7
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,605
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
Quote:
Originally Posted by GeorgeTMule View Post
Hi Karellen

Yup, that did it. Good Job!
Great!! Glad it worked

Those converted stylesheets can be difficult to read as most classes are converted to "calibre..." with numbers appended. Makes it more difficult to pick apart.
If they were labelled with intuitive names like class="para" or class="noindent" it is easier to quickly diagnose.
Karellen is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add "font-size" and "font-colour" functions to next version of Page Edit? hhtmp88 Sigil 6 08-20-2020 03:09 PM
epub Error while parsing file: value of attribute "src" is invalid; must be a URI Bowcat ePub 2 10-08-2019 10:46 AM
IngramSpark EPUB validator error:value of attribute "http-equiv" Bjorn G ePub 2 05-03-2019 04:22 PM
iPad "Upgraded" to iBooks 3.2 – Bold fonts are extra-bold, italics are now bold-italic MHC Apple Devices 4 03-03-2014 01:50 PM
Bug in epub metadata writer? Invalid attribute role="aut" Man Eating Duck Calibre 3 09-26-2012 09:55 AM


All times are GMT -4. The time now is 01:44 AM.


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