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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-17-2010, 09:25 PM   #1
Michaelus
Junior Member
Michaelus began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2010
Device: kobo
How can I change body text from bold to normal?

I have a stack of books (about 50) that I converted from LRF to epub using calibre, only trouble is all are in bold - title, headings, body text, everything.

If there is a simple fix, can someone please explain it (very simply, I am a rank beginner with all this), or do I have to remake all the files?
Michaelus is offline   Reply With Quote
Old 09-17-2010, 09:32 PM   #2
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
After you convert to epub you need to edit it by hand, which is easily done. Then you need to use either Sigil or a text editor to fix the file. If you use a text editor you need need to unzip the epub file into it's various pieces with any unzip program.

Calibre generally moves all the formatting to CSS when it does the conversion, so it should be trivial to find the setting in there and fix it. If you unzipped it then you need to recompress all the files together afterward and give it the exact same name/location as the original epub Calibre created.
ldolse is offline   Reply With Quote
Advert
Old 09-17-2010, 09:34 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: 29,769
Karma: 54401244
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 Michaelus View Post
I have a stack of books (about 50) that I converted from LRF to epub using calibre, only trouble is all are in bold - title, headings, body text, everything.

If there is a simple fix, can someone please explain it (very simply, I am a rank beginner with all this), or do I have to remake all the files?
Welcome

Something sounds wrong.
Were they bold when LRF?

Sigil may allow simple fixes if it can be fixed with a Stylesheet change.

Some LRF folk may step forward with conversion setting suggestions
theducks is online now   Reply With Quote
Old 09-17-2010, 09:46 PM   #4
Michaelus
Junior Member
Michaelus began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2010
Device: kobo
Quote:
Originally Posted by theducks View Post

Something sounds wrong.
Were they bold when LRF?

Sigil may allow simple fixes if it can be fixed with a Stylesheet change.

Some LRF folk may step forward with conversion setting suggestions
Yes, they were bold to start with.

I have tried editing by hand and managed one book in an hour or so - but there are more than 40 in total
Michaelus is offline   Reply With Quote
Old 09-17-2010, 09:49 PM   #5
Michaelus
Junior Member
Michaelus began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2010
Device: kobo
Quote:
Originally Posted by ldolse View Post

Calibre generally moves all the formatting to CSS when it does the conversion, so it should be trivial to find the setting in there and fix it. If you unzipped it then you need to recompress all the files together afterward and give it the exact same name/location as the original epub Calibre created.
Here is the CSS from the unzipped conversion.

@namespace h "http://www.w3.org/1999/xhtml";
.body {
display: block;
font-size: 1em;
margin-bottom: 0;
margin-left: 10pt;
margin-right: 5pt;
margin-top: 0;
page-break-before: always;
text-align: justify
}
.bs {
border-color: rgb(0, 0, 0);
border-style: solid;
border-width: 0;
color: rgb(0, 0, 0);
display: block;
font-size: 1.29167em;
font-weight: bold;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: center;
text-indent: 0
}
.bs1 {
border-color: rgb(0, 0, 0);
border-style: solid;
border-width: 0;
color: rgb(0, 0, 0);
display: block;
font-size: 1em;
font-weight: bold;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: center;
text-indent: 0
}
.bs2 {
border-color: rgb(0, 0, 0);
border-style: solid;
border-width: 0;
color: rgb(0, 0, 0);
display: block;
font-size: 0.83333em;
font-weight: bold;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: justify;
text-indent: 8pt
}
.bs3 {
border-color: rgb(0, 0, 0);
border-style: solid;
border-width: 0;
color: rgb(0, 0, 0);
display: block;
font-size: 0.625em;
font-weight: bold;
margin-bottom: 0;
margin-left: 0;
margin-right: 0;
margin-top: 0;
text-align: center;
text-indent: 0
}
.calibre {
display: block;
margin-bottom: 1em;
margin-left: 0;
margin-right: 0;
margin-top: 1em
}
.calibre1 {
font-style: italic
}
.ts {
font-weight: bold
}
.ts1 {
font-size: 1em
}

Do you know what changes I would need to make?
Michaelus is offline   Reply With Quote
Advert
Old 09-17-2010, 09:53 PM   #6
user_none
Sigil & calibre developer
user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.user_none ought to be getting tired of karma fortunes by now.
 
user_none's Avatar
 
Posts: 2,488
Karma: 1063785
Join Date: Jan 2009
Location: Florida, USA
Device: Nook STR
Delete all of the font-weight: bold; entries.
user_none is offline   Reply With Quote
Old 09-17-2010, 10:17 PM   #7
Michaelus
Junior Member
Michaelus began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2010
Device: kobo
Quote:
Originally Posted by user_none View Post
Delete all of the font-weight: bold; entries.
Have just tried that - Deleted all font-weight: bold; entries, rezipped everything and tried to open it in calibre, but got an error message, that it was not a zip file.

That's true - I use winrar, not winzip.

But I believe there is a right and wrong way to pack the files, and I'm not sure how to do that.

Maybe if I packed them the right way I would get a better outcome?
Michaelus is offline   Reply With Quote
Old 09-17-2010, 10:59 PM   #8
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: 29,769
Karma: 54401244
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 Michaelus View Post
Have just tried that - Deleted all font-weight: bold; entries, rezipped everything and tried to open it in calibre, but got an error message, that it was not a zip file.

That's true - I use winrar, not winzip.

But I believe there is a right and wrong way to pack the files, and I'm not sure how to do that.

Maybe if I packed them the right way I would get a better outcome?
Use Sigil to edit the CSS, It takes care of the packing
theducks is online now   Reply With Quote
Old 09-17-2010, 11:51 PM   #9
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Sigil might be easiest for you, but the main problem is you used rar and not zip. Use zip and you should be ok.

Also make sure to compress the group of files and not the outer directory that the unzipping programs often create.
ldolse is offline   Reply With Quote
Old 09-18-2010, 04:09 AM   #10
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by Michaelus View Post
Have just tried that - Deleted all font-weight: bold; entries, rezipped everything and tried to open it in calibre, but got an error message, that it was not a zip file.
Use tweak-epub to open the book, select the CSS file and edit it with something like Notepad++.
DoctorOhh is offline   Reply With Quote
Old 09-18-2010, 07:59 PM   #11
speakingtohe
Wizard
speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.speakingtohe ought to be getting tired of karma fortunes by now.
 
Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
Lots of times I just convert to rtf, open file, select all, hit bold two or three times, save, convert rtf to epub and everything is normal.

I don't mind bold, but all italics or all centered text, one wonders what they were thinking.

Generally you don't lose anything valuable format wise as it is not great to start out with.

Helen

PS if you have 50 files do a mass convert and open 10 or so at a time. Will take about a minute a file when you have done a couple.

Last edited by speakingtohe; 09-18-2010 at 08:02 PM.
speakingtohe is offline   Reply With Quote
Old 09-18-2010, 09:21 PM   #12
Michaelus
Junior Member
Michaelus began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2010
Device: kobo
Thanks everyone for your advice and helpful suggestions.
For, after a few false starts and I bit of trial and error, I eventually worked out what needed to be done, and how to do it.
All the best,
Michael
Michaelus is offline   Reply With Quote
Old 07-28-2022, 12:48 PM   #13
quinta@ebf.cz
Connoisseur
quinta@ebf.cz began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Mar 2019
Device: Kindle 3 Paperwhite
Topic is quite old... However:

Instead of editing converted epub, you can filter css rules during conversion. In order to get rid of bold format:
- run command line conversion with parameter: --filter-css font-weight
- or in user interface use conversion option: Look & feel -> Styling -> Filter style information -> Other CSS properites: font-weight

Filter will remove bold emphasize from paragraph format (but not bold format applied inline - which probably most of time will be desirable behaviour).
quinta@ebf.cz is offline   Reply With Quote
Old 07-28-2022, 04:42 PM   #14
ShellShock
Wizard
ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.ShellShock ought to be getting tired of karma fortunes by now.
 
ShellShock's Avatar
 
Posts: 1,176
Karma: 2431850
Join Date: Sep 2008
Device: IPad Mini 2 Retina
Holy thread from the dead, Batman!
ShellShock is offline   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
[Old Thread] Can I make all text BOLD in epub format? WJMuldowney Calibre 7 07-04-2012 09:51 AM
How to Change the Text Size Jill4223 Amazon Kindle 5 01-03-2010 08:25 PM
PDF Won't Change text size TGNY PDF 1 10-24-2009 01:20 PM
Change PDF body font size ufasoli PDF 11 10-18-2009 11:05 AM


All times are GMT -4. The time now is 10:13 AM.


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