Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 05-20-2011, 04: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, 07:18 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: 29,801
Karma: 54830978
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 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 07:25 PM.
theducks is online now   Reply With Quote
Advert
Old 05-21-2011, 03:33 AM   #3
Manichean
Wizard
Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.Manichean is the 'tall, dark, handsome stranger' all the fortune-tellers are referring to.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 91256
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, 04: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, 10:40 AM   #5
dwig
Wizard
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: 1,613
Karma: 6718479
Join Date: Dec 2004
Location: Paradise (Key West, FL)
Device: Current:Surface Go & Kindle 3 - Retired: DellV8p, Clie UX50, ...
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
Advert
Old 05-21-2011, 04: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


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 12:00 AM
ePub - Changing Font size doesn't change page numbers higgs Sony Reader 46 03-26-2010 02:36 PM
unwanted table-change (vertical align) by calibre NASCARaddicted Calibre 2 01-27-2010 03:35 AM
epub - unwanted page break after image mrmikel Calibre 5 07-10-2009 07:35 AM
feed to lrf, how do I change font (or have default font) lovemov Calibre 3 03-16-2009 10:57 PM


All times are GMT -4. The time now is 01:07 PM.


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