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-20-2011, 05:00 PM   #1
SoulStyle
Enthusiast
SoulStyle began at the beginning.
 
Posts: 26
Karma: 22
Join Date: May 2011
Device: Kindle 3
Unwanted page numbers and font change

Dear all,

I'm having trouble with a few ebooks as they have some unwanted page numbers and font change. Please see the two screen-shots below






Any idea how to get rid of this strange font change (Calibres font size rescaling does not help) and how to remove these page numbers in the middle of the text?
Every help is appreciated. Many thanks in advance.

Best regards,

SoulStyle
SoulStyle is offline   Reply With Quote
Old 05-20-2011, 08:18 PM   #2
theducks
Grand Sorcerer
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: 15,268
Karma: 6020309
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by SoulStyle View Post
Dear all,

I'm having trouble with a few ebooks as they have some unwanted page numbers and font change. Please see the two screen-shots below






Any idea how to get rid of this strange font change (Calibres font size rescaling does not help) and how to remove these page numbers in the middle of the text?
Every help is appreciated. Many thanks in advance.

Best regards,

SoulStyle
Those appear to be in the source. Caqlibre just made a best attempt to convert what it was given.

A convesion Guru may come by.
Personally, I use Sigil on the file and build specific REGEX replaces (may take a few dozen) to fix all the variations).

Last edited by theducks; 05-20-2011 at 08:25 PM.
theducks is online now   Reply With Quote
 
Advertisement
Old 05-21-2011, 04:33 AM   #3
Manichean
Wizard
Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!Manichean My eyes! My eyes! The light is just too bright!
 
Manichean's Avatar
 
Posts: 3,130
Karma: 80520
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
I don't know what would cause the font changes, but the page numbers mostly appear if your source is a page-based layout like PDF. You can easily get rid of them using the search & replace function within Calibre's conversion settings. There's a short tutorial available.
You can, of course, also correct the font changes during that step, but that would necessitate knowing what causes the change in the first place...
Manichean is offline   Reply With Quote
Old 05-21-2011, 05:07 AM   #4
sysiphus
Junior Member
sysiphus began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2011
Device: kindle
Your bold writing as well as the page numbers are all a different "class" from your regular text.
Page numbers are '<b class="calibre4">##</b>', while the bold text is '<span class="none2"></span>'.
If you did a replace "<span class="none2">" with "<span class="none4">", your text should even out.
sysiphus is offline   Reply With Quote
Old 05-21-2011, 11:40 AM   #5
dwig
Guru
dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.dwig ought to be getting tired of karma fortunes by now.
 
dwig's Avatar
 
Posts: 996
Karma: 1843322
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Dell Venue 8 Pro - Retired:Kindle 3, Clie UX50, T415, ...
Quote:
Originally Posted by Manichean View Post
I don't know what would cause the font changes, but the page numbers mostly appear if your source is a page-based layout like PDF. You can easily get rid of them using the search & replace function within Calibre's conversion settings. There's a short tutorial available.
You can, of course, also correct the font changes during that step, but that would necessitate knowing what causes the change in the first place...
The change seems to be coming from the class="s21" vs class="s22" in the DIV tags. If the "s22" isn't used elsewhere for an intentional bold then simply editing the CSS file so that s22 has the same style attributes as s21 will "fix" the font change problem.
dwig is offline   Reply With Quote
Old 05-21-2011, 05:58 PM   #6
SoulStyle
Enthusiast
SoulStyle began at the beginning.
 
Posts: 26
Karma: 22
Join Date: May 2011
Device: Kindle 3
Many thanks for all the hints. Regarding the font change, I could not figure out what was causing it and modifying class="s21" to match class="s22" did not work as strange enough both classes didn't contain and font size or "bold" instructions.
What did the trick was replacing '<span class="none2"> with '<span class="none4">

Regarding the stupid page numbers a regex in Sigil (boah, mighty stuff but as a first time contact pretty heavy )
I just replaced <b class="calibre4">\d*</b> with nothing and here we go.

Again, thnx for the support

BR,

SoulStyle
SoulStyle 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
Is there a hack for displaying page numbers rather than location numbers? nesler Kindle Developer's Corner 16 02-15-2011 01:00 AM
ePub - Changing Font size doesn't change page numbers higgs Sony Reader 46 03-26-2010 03:36 PM
unwanted table-change (vertical align) by calibre NASCARaddicted Calibre 2 01-27-2010 04:35 AM
epub - unwanted page break after image mrmikel Calibre 5 07-10-2009 08:35 AM
feed to lrf, how do I change font (or have default font) lovemov Calibre 3 03-16-2009 11:57 PM


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


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