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 01-04-2015, 02:00 PM   #1
Buhaj47
Zealot
Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.
 
Buhaj47's Avatar
 
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
Removing the font size info from EPUB

I have a number of EPUB books, each of them happens to have a different font size encoded. How to unify it so that the reader decides on which font size to use?
Buhaj47 is offline   Reply With Quote
Old 01-04-2015, 02:20 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,925
Karma: 60358908
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 buhaj47 View Post
I have a number of EPUB books, each of them happens to have a different font size encoded. How to unify it so that the reader decides on which font size to use?
You could use the conversion Filter Style Properties section.

A bit of a sledge hammer approach as it will get All font-size usage

Personally, I use the editor and decide as I go as to which get tweaked
theducks is online now   Reply With Quote
Advert
Old 01-04-2015, 02:33 PM   #3
Buhaj47
Zealot
Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.
 
Buhaj47's Avatar
 
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
Quote:
Originally Posted by theducks View Post
You could use the conversion Filter Style Properties section.
Do you mean the "Filter Style Information" section when I choose the Convert option? I pick the "Fonts" box but that does not work.

Last edited by Buhaj47; 01-04-2015 at 02:40 PM.
Buhaj47 is offline   Reply With Quote
Old 01-04-2015, 02:43 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,925
Karma: 60358908
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 buhaj47 View Post
Do you mean the "Filter Style Information" section when I choose the Convert option? I pick the "Fonts" box but that does not work.
No
That box remove FONTS (hover for the Tool tip)
Use the Filter Style Properties box to enter what you want removed.
Use CARE.
Keep a backup copy
theducks is online now   Reply With Quote
Old 01-04-2015, 02:44 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,646
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by buhaj47 View Post
Do you mean the "Filter Style Information" section when I choose the Convert option? I pick the "Fonts" box but that does not work.
@buhaj47 - did you try entering 'font-size' in Filter Style Information->Other CSS properties?
BetterRed is offline   Reply With Quote
Advert
Old 01-04-2015, 03:06 PM   #6
Buhaj47
Zealot
Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.
 
Buhaj47's Avatar
 
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
Will it just unify the main body font-size of the books or rather make all the text (e.g. chapter titles) the same?
Buhaj47 is offline   Reply With Quote
Old 01-04-2015, 07:32 PM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,646
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by buhaj47 View Post
Will it just unify the main body font-size of the books or rather make all the text (e.g. chapter titles) the same?
I have no idea, that's why I wrote - 'did you try'.

Before trying things always make sure you have a way to undo?

BR
BetterRed is offline   Reply With Quote
Old 01-04-2015, 07:34 PM   #8
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by buhaj47 View Post
I have a number of EPUB books, each of them happens to have a different font size encoded. How to unify it so that the reader decides on which font size to use?
Since you have a Kobo device, you should get good results if you:

1. Make sure all the font-size parameters are specified in resizable units, i.e. em, %, small/medium/large, rather than absolute units such as px, pt, etc.

2. Avoid use of the font shorthand property; e.g. replace "font: 12pt Times" with individual properties "font-size: 1em; font-family: Times;"

I haven't looked in to how to do this automatically though, the number of books I have found with these sorts of problems is quite small so I just edit the stylesheet manually.
GeoffR is offline   Reply With Quote
Old 01-04-2015, 08:11 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,300
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by buhaj47 View Post
I have a number of EPUB books, each of them happens to have a different font size encoded. How to unify it so that the reader decides on which font size to use?
I suggest you use the Edit Book feature of Calibre to have a look at the CSS and then you can make proper decisions as to which font sizes to remove. Sometimes there is a font size for chapter titles, title pages, copyright page, drop caps, small caps, first letter, and other things that you do want to keep the font size.

So manually deleting font-size directives is the best way to go about it. If you delete them all, then you could end up with things the wrong size.
JSWolf is offline   Reply With Quote
Old 01-05-2015, 12:50 PM   #10
Buhaj47
Zealot
Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.
 
Buhaj47's Avatar
 
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
Thanks guys - however, I think I'm gonna give it a break and just focus on reading the books. I've opened some EPUB and KEPUB books in the editor, and can't find the information relating to the font size. The thing is all the EPUB's (I use for novels) I have have similar font size, the KEPUB's (historical books with footnotes and pictures) are much smaller. Think I could add the values GeoffR mentioned, but never really studied HTML code.

@GeoffR - unless could you show me a sample of how you add specific info on the font size the books should use, e.g. small/medium size for main body? If that's an issue though, don't bother, thanks anyway.

EDIT: I have opened an EPUB in the editor once more, and, correct me if I'm wrong, the main font used in the novel is defined by the parameters in calibre1 which are here. Does it mean it will suffice to add the information on the font size here, e.g. font-size: small? If I use zero value, will the reader apply its default settings (if such exist)?

Last edited by Buhaj47; 01-05-2015 at 01:03 PM. Reason: images added
Buhaj47 is offline   Reply With Quote
Old 01-05-2015, 01:34 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,300
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
For the main body font, you don't need to add a font size to it. No font size means it will be the default font size and you can then easily change the font size using the font size slider.
JSWolf is offline   Reply With Quote
Old 01-05-2015, 01:42 PM   #12
Buhaj47
Zealot
Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.Buhaj47 ought to be getting tired of karma fortunes by now.
 
Buhaj47's Avatar
 
Posts: 149
Karma: 278068
Join Date: Dec 2014
Location: Poland
Device: Kindle PW3, Kobo Libra 2
I see, but what the font size shown on the screen depend on then, i.e. there must be a reason the books are rendered differently? Is this because they are in different formats, i.e. EPUB and KEPUB?
Buhaj47 is offline   Reply With Quote
Old 01-05-2015, 02:17 PM   #13
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,300
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Sometimes a font size is specified in the CSS for the body font. Usually a small font size is used. So that does make a difference. I strip font sizes in the body text out as I don't need or want them.
JSWolf is offline   Reply With Quote
Old 01-05-2015, 06:26 PM   #14
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by buhaj47 View Post
I see, but what the font size shown on the screen depend on then, i.e. there must be a reason the books are rendered differently? Is this because they are in different formats, i.e. EPUB and KEPUB?
From your first post I took it that you couldn't change the font size from the device? My suggestions about specifying font sizes in units of em instead of pt etc. and of avoiding the font: shorthand property are just because they can prevent the device from being able to change the font settings for the book.

Kepubs and epubs are read using different software, and so there will be some differences when you change from epub to kepub even if the book itself is identical. I believe the base kepub font size is a bit larger than for epubs, as kepub base margins are larger. I usually have to decrease the font size slider a few notches and reduce the margin slider one notch when I finish reading an epub and open a new kepub, but it also depends on the sizes set in the book.

If the device's font size adjustment slider is working, but you want all books to have the same base font size so you can avoid adjusting the font size on the device, then that can be done by rescaling all the font sizes in the book's stylesheet, but I would say it is a lot more effort than it is worth, Easier just to spend a few seconds adjusting the font size when you first open the book.
GeoffR is offline   Reply With Quote
Old 01-05-2015, 06:29 PM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,300
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by GeoffR View Post
From your first post I took it that you couldn't change the font size from the device? My suggestions about specifying font sizes in units of em instead of pt etc. and of avoiding the font: shorthand property are just because they can prevent the device from being able to change the font settings for the book.
Well, not with firmware 3.12.0. When I tried my test ePub using px to specify the font size, the H2O ignored it and rendered the text at whatever the font size was specified via the font size slider. So I don't know what's going on that would prevent the font size from being changed as it seem Kobo is ignoring the fixed size font specifications and rendering the non-fixed sizes.
JSWolf is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epub > Epub conversion changes font size.. why? OllieDixon Conversion 2 03-31-2014 02:30 AM
Determine font and font size on incoming epub? peaceridge Calibre 4 01-30-2012 03:35 PM
Epub Font Size Question Amalthia Calibre 15 01-03-2011 01:20 PM
Calibre not overwriting ePub CSS font info jswinden Calibre 4 04-06-2010 01:29 PM
Increase font size of epub? pennpin PocketBook 0 11-25-2009 05:41 PM


All times are GMT -4. The time now is 05:21 PM.


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