02-19-2014, 01:15 PM | #1 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
side loaded books - font options - confused
I am trying to understand how my new Aura HD works with side loaded books
my test books all have embeedded fonts removed and all have standard 1em font size in CSS for text. my 1st impressions are that I can change the font size on the kobo very easily, but changing the font family seems to have no effect ( even though I have checked that all embedded fonts have been removed from my test books) is that a general principle ( i.e. do some sliders only work with kepubs - or does it depend on exactly what is in my epub book's CSS some have a simple font family:serif; setting others have an explicit Times New Roman setting - I used to add this to improve bookview in sigil but I have not consistently added it to all books because it made no difference on my previous Sony e-readers> I am also confused by the seeming lack of a global font -size setting on the Kobo aura HD. when I side-load a new book there seems no way to predict what font size will first appear, and no logic to where the sliders need to be to standardise across books. So with 4 test books, I have the sliders in 4 different positions at present, even though each book is using font-size:1em for it's <p> tags I am feeling very confused & wishing I'd stuck with a simpler model more confusion: I I select a test page of a book & cycle through the font options, the number of words per line and the font appearence stays the same, but the number of lines per page changes! - so if I go to Kobo font the line space is greater than say for Georgia. I guess each font has a (different) default line spacing and that IS being applied to the side loaded book, even though the actual font face is NOT changing. Last edited by cybmole; 02-19-2014 at 01:30 PM. |
02-19-2014, 01:33 PM | #2 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
You changed threads, are you trying to confuse me?
As I said previously, delete the font-family statements. On a Kobo, font-family:serif will give you it's default font (some kind of Georgia). This is not the same as on a Sony where font-family:serif in the CSS was equivalent to no font-family at all. ...And try to relax a bit and enjoy the journey I'm around all evening if you need specific help with Kobo vs Sony CSS issues. Go to PM if you prefer. |
02-19-2014, 02:31 PM | #3 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
it was a pre-emptive change before the mods say "this no longer has anything to do with Calibre ! ". I jumped before being pushed.
please see PM but 2 specific reasons for NOT wanting to remove all font-family assignments. 1. practicality - I would have to manually edit each book unless there is a cleaver way to do it via modify e-pub plug-in 2. I still like to edit in Sigil, I'm trying to migrate to calibre editor but tend to fall back to the software I know best. Sigil book view is awful unless there's a font-family setting, it's hard to read & the QT package leaves trailing bits of characters as you insert/delete text. SO pretty much every book I've ever edited has a font family setting which I've forced in via a calibre conversion or a modify e-pub tweak So I am hopeful that a consistent use of append css can lead to consistent appearance on Kobo e.g. instead of just appending p { font-family: "Times New Roman", Times, serif;} I could also append body { font-family: "Times New Roman", Times, serif;} If, however, I do strip out every font-family statement, do all the built-in Kobo fonts then all start to work, and what do I then see when I select "document original font". if YES , then maybe that's an acceptable trade-off for some ugliness within Sigil book view, but how would I automate finding & removing all those ? I think I've still not grasped the font sizing issues fully - maybe this is because some books had an explicit 1em value & others have nothing at all ( because older readers than assumed 1em ? ) is there a "proper" written kobo user manual anywhere, not the tiny one in the box that only tells you how to do set-up ? update: google finds a reasonable length user guide but it mostly restates the obvious. I Like old-school manuals for programmers like IBM used to write I did find this in the iuser guide though, which answers one question for me Note: • When you change the way text looks, your eReader remembers your preferred text size and style, and applies it to other books you read in the future. Last edited by cybmole; 02-19-2014 at 02:41 PM. |
02-19-2014, 03:07 PM | #4 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
UPDATE:
more testing, more clarity... I made a test copy of a book & stripped out every font family as you advised. Yes, the reader fonts are now switchable. I also noticed that if I minimise line spacing, there's a bit of an optical illusion effect, it seem like I'm using a worse font and it looks like a different font whereas really is just a bad line setting. now, opening that same book in calibre editor - the book preview is not too bad, better than the sigil book view so maybe a can lose all my font-family settings with no great pain. They had no effect on Sony reader anyway so no loss there. But I'm not aware of any tweak that will automate finding and stripping every instance from one or many books ? but more complex books may have e.g. font-family:sans-serif; for headings. I would need to test what happens if one or more of those is left in - ill Kobo still apply it's fonts to the story text ? back to the simple test book. I think I am seeing that font choice " document original" is the same as font "Georgia" on the Kobo - is that the case? & if YES then is the effect of leaving in some font-family:serif; commands just to lock the font into that Georgia option ? does accidental leaving just one of those in, say within one of several paragraph styles, lock the whole book out of font controls ? |
02-19-2014, 03:57 PM | #5 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
You should be OK with generic font-family:sans-serif statements. I believe the built-in Avenir font is used for those. Just avoid font-family:"my font" options for an easy life.
Caveat: If you need a generic font-family:monospace option for portions of a book you need a slightly different approach as Kobo doesn't include a monospace font. There is a fairly simple solution applied via calibre should you need it. Re: the is Default Document the same as the 'real' Kobo Georgia, I'm not sure. The real Georgia allows the Advanced thickness setting but the Default Document font choice doesn't. |
02-19-2014, 04:51 PM | #6 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
As I know you have some understanding of how CSS works, it may help you to think of it like this. When you select a font from the Kobo font menu it's almost as if the css statement body, p {font-family:my-chosen-font} had been added as the last line of the epub's css file and all the standard css cascading/inheritance/specificity rules apply as normal. N.B. This isn't actually what happens but the result is the same. Or maybe I've just added more confusion ... |
|
02-19-2014, 09:14 PM | #7 |
Guru
Posts: 770
Karma: 6528026
Join Date: Sep 2012
Device: Kobo Elipsa
|
Would you mind elaborating on the monospace font "fix"? Or just point me to an article or thread that discusses it? I have been wondering how to get Kobo to display text in monospace. Thanks.
|
02-19-2014, 11:02 PM | #8 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
I'm not sure whether option 2 will work for kepubs but it definitely works for standard epubs (at least in fw 3.1.1 and many earlier releases). |
|
02-20-2014, 12:28 AM | #9 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
[QUOTE=jackie_w;2768234]Sorry, forgot to answer this bit. There isn't really much Kobo black magic here./QUOTE]
that is very clear, thanks & is consistent with my test results. Yes I do calibre convert all books before reading, so as to have an original_epub backup so stuff was being added to CSS class definitions by my default preferences. I shall now change those. I now need ponder how best to remove explicit line-height: 1.2em; lines from new books so that line spacing controls work, as a lot of books have similar lines. and also <a> tags. when I touch a chapter number in my current book, I get a pop-up offering to launch the kobo browser- maybe I can turn that off in Kobo, otherwise I will have to mess with code that looks like this: <p class="title-num-rw" id="rw-title-num_65077-201898256"><a href="../Text/TOC.xhtml">3</a></p> PS Another CSS example from same book as the above- this books styles all text messages sent by characters in the narrative with a class containing font-family:sans-serif; to make then stand out. So this is an example with automatically wiping all font-family code ( via calibre CSS filter) would affect the intended book layout. So I am inclined not to enable that calibre CSS filter as a default perference Last edited by cybmole; 02-20-2014 at 12:31 AM. |
02-20-2014, 12:52 AM | #10 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
so: things to not have in CSS, ideally
font-family: affects font choice on Kobo line-height: prevents line spacing slider control on Kobo on Sony T2, T3 line-height:1.2; or 1.2 em; looked OK, but on Aura HD screen it looks cramped now wondering about: font-size: ( in em) will that affect font size slider on Kobo ? also wondering about widows & orphans: there seems to be a default value of something >0 in Kobo renderer, so I should add widows:0;orphans:0 explicitly to turn that off ? ( same as for Sony readers) Last edited by cybmole; 02-20-2014 at 12:58 AM. |
02-20-2014, 04:31 AM | #11 |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
update
line-height: xxx% code in CSS also prevents line spacing options on reader from working e.g. line-height:130%; specific font-size: values in CSS seem seem harmless I am a tad curious - when Kobo sell a KEPUB , do they have a quality control process that strips out any of this stuff or do they just hope that the book publisher has done it i.e. is it reasonable to expect all the sliders to work with every purchased .kepub format book ? Last edited by cybmole; 02-20-2014 at 04:33 AM. |
02-20-2014, 05:19 AM | #12 | ||
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Quote:
|
||
02-20-2014, 10:27 AM | #13 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
|
|
02-20-2014, 10:40 AM | #14 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
However, this option for the calibre KOBOTOUCH driver was created to tackle this problem. There is no need to edit all your existing epubs (unless you really want to). If you use the worked example in the link, the widows/orphans problem will be sorted out during the send-to-device transfer. The calibre library version of the epub will remain unchanged. |
|
02-20-2014, 10:50 AM | #15 | |
Wizard
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
|
Quote:
please expand on " necessary clean up" - I usually jsut delete the html toc then have the modify plug in clean up the "real" TOC. is there a different clean up which will take out the invalid href=...... I did a couple with regex but it has to be done carefully or the xlink:href on title page can get zapped also |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Side-loaded font bold-italic problem | roger64 | Kobo Reader | 5 | 11-25-2013 08:15 PM |
Aura: font options for side-loaded content? | miquele | Kobo Reader | 4 | 07-05-2013 06:58 PM |
Touch No dictionary for side-loaded books | dragon77 | Kobo Reader | 14 | 04-25-2013 07:07 AM |
Vox Disappearing side-loaded books | fenric10 | Kobo Tablets | 0 | 02-25-2013 08:55 AM |
syncing side-loaded books? | elemenoP | Which one should I buy? | 5 | 08-20-2011 08:49 PM |