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 02-21-2014, 12:32 PM   #1
frank14612
Connoisseur
frank14612 doesn't litterfrank14612 doesn't litterfrank14612 doesn't litter
 
Posts: 64
Karma: 210
Join Date: Jan 2013
Location: USA
Device: Nook Simple Touch with Glow-light
Question Text in converted epub is bold, underlined - How to make regular?

I've converted an image-only PDF, via OCR, to RTF fairly well. But a problem for me is that the converter mistakenly saw all the plain, regular text in the PDF as bold, and in the RTF all the text is now bold. I don't want to just use search and replace to change all the bold text in the RTF to regular, since that would change all headings, titles, etc., which should be bold, also, and I would rather not go through the ~200-page document and change each paragraph of bolded text to regular.

I could be persuaded to accept the bold text in the EPUB, but my further problem is that now the EPUB generated from the RTF, using Calibre, shows all the text as both bold and underlined. I don't understand how a simple conversion can make the "assumption" that bold text should be underlined too.

Can someone think of a simple way or a workaround to get the plain (bolded) text in the RTF to show up in the EPUB as regular text (not bold+underlined)? Just for info, I'm not familiar with the concept or use of CSS or style sheets.

Thanks!

Frank D
frank14612 is offline   Reply With Quote
Old 02-21-2014, 12:41 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: 25,516
Karma: 35353535
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT(Fixed,New Bat.), Galaxy Tab A, Kobo Aura2
Quote:
Originally Posted by frank14612 View Post
I've converted an image-only PDF, via OCR, to RTF fairly well. But a problem for me is that the converter mistakenly saw all the plain, regular text in the PDF as bold, and in the RTF all the text is now bold. I don't want to just use search and replace to change all the bold text in the RTF to regular, since that would change all headings, titles, etc., which should be bold, also, and I would rather not go through the ~200-page document and change each paragraph of bolded text to regular.

I could be persuaded to accept the bold text in the EPUB, but my further problem is that now the EPUB generated from the RTF, using Calibre, shows all the text as both bold and underlined. I don't understand how a simple conversion can make the "assumption" that bold text should be underlined too.

Can someone think of a simple way or a workaround to get the plain (bolded) text in the RTF to show up in the EPUB as regular text (not bold+underlined)? Just for info, I'm not familiar with the concept or use of CSS or style sheets.

Thanks!

Frank D
I would just use T(weak book) to edit the CSS, changing the selector for a regular paragraphs class="calibre#"
from: font-weight: bold;
to: font-weight: normal;

I would NOT do a wholesale bold to normal, there may be bolds you do want
theducks is offline   Reply With Quote
Old 02-21-2014, 06:44 PM   #3
frank14612
Connoisseur
frank14612 doesn't litterfrank14612 doesn't litterfrank14612 doesn't litter
 
Posts: 64
Karma: 210
Join Date: Jan 2013
Location: USA
Device: Nook Simple Touch with Glow-light
Quote:
Originally Posted by theducks View Post
I would just use T(weak book) to edit the CSS, changing the selector for a regular paragraphs class="calibre#"
from: font-weight: bold;
to: font-weight: normal;

I would NOT do a wholesale bold to normal, there may be bolds you do want
theducks,

I did that. Reconverted the epub. Nothing changed.

Looks like I'll have to edit the RTF.

Thanks anyway.

Frank

PS (a few minutes later): I edited the RTF to remove the bolding. It wasn't that hard. Result: Perfection!

Last edited by frank14612; 02-21-2014 at 07:10 PM. Reason: PS
frank14612 is offline   Reply With Quote
Old 02-21-2014, 06:47 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: 25,516
Karma: 35353535
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT(Fixed,New Bat.), Galaxy Tab A, Kobo Aura2
Quote:
Originally Posted by frank14612 View Post
theducks,

I did that. Reconverted the epub. Nothing changed.

Looks like I'll have to edit the RTF.

Thanks anyway.

Frank
Don't convert after editing the CSS, that should have removed the BOLD if you found the correct place(s)

just remove the line: text-decoration: underline; (the default is none)
theducks is offline   Reply With Quote
Old 02-22-2014, 09:30 AM   #5
frank14612
Connoisseur
frank14612 doesn't litterfrank14612 doesn't litterfrank14612 doesn't litter
 
Posts: 64
Karma: 210
Join Date: Jan 2013
Location: USA
Device: Nook Simple Touch with Glow-light
Smile

theducks,

Thank you for your help!

Frank
frank14612 is offline   Reply With Quote
Old 02-22-2014, 09:45 AM   #6
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: 25,516
Karma: 35353535
Join Date: Aug 2009
Location: The Central Coast of California
Device: K4NT(Fixed,New Bat.), Galaxy Tab A, Kobo Aura2
CSS is easy
It is the reverse engineering (tracing back to the CSS) of the particular book that can be a pain

glad you had a successful end to the project.
theducks 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
Converted .amz to .epub, but text won't respond to margin or spacing changes FunkyOne Conversion 0 03-17-2012 10:25 AM
When converted why can't you make notes or highlights on the text? hmooney Conversion 1 08-29-2011 01:45 PM
Any hack to make default ebook text bold? judith009 Kindle Developer's Corner 9 01-01-2011 02:32 PM
epub: links in toc should not be underlined ... NASCARaddicted Calibre 2 06-15-2010 06:26 PM


All times are GMT -4. The time now is 02:41 PM.


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