![]() |
#1 |
Carol
![]() Posts: 8
Karma: 10
Join Date: Jun 2011
Location: Toronto, Canada
Device: kobo
|
italic and bold ok in sigil but not on Kobo reader
I'm working on my first epub conversion (I've done a few mobis before). I converted my prc file to epub using Calibre and then opened that epub with Sigil. I've been fine tuning the book and it looks pretty good now but I'm having problems with italic and bold words. I don't have embedded fonts. I've tried using CSS - I have italic as a style in my stylesheet and I tried applying that using <span class="italic">word</span>. I've tried directly coding <i>word</i> and <em>word</em>. All of these attempts showed italic correctly when viewed in Sigil's book view, and also when viewed with ADE. However, as soon as I move the epub over to my Kobo touch to test it there, the italics are lost. Bold is exactly the same situation and I'm sure will have the same solution. I looked at other (purchased) books on my Kobo and they have italic and bold words. (I know HTML well but CSS, not so much. Calibre has thrown in a lot of it's own classes which I find a bit confusing - the input file was really pared down.) I've run out of ideas. Thanks to anyone who might have some suggestions!
|
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,913
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:
It only takes one tiny typo ![]() |
|
![]() |
![]() |
![]() |
#3 |
Carol
![]() Posts: 8
Karma: 10
Join Date: Jun 2011
Location: Toronto, Canada
Device: kobo
|
It's pretty simple. (Too simple?)
Code:
.italic { font-style: italic } |
![]() |
![]() |
![]() |
#4 |
Carol
![]() Posts: 8
Karma: 10
Join Date: Jun 2011
Location: Toronto, Canada
Device: kobo
|
![]()
Update! In re-reading my post, it struck me that italics and bold are fine on purchased books but not on my test book which is side-loaded. I googled "kobo sideload italic" and found (on Mobileread forums of course!) that this is a bug of the lasted Kobo firmware update! So, I've spent my entire day puzzling over a non-existent problem.
![]() |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,581
Karma: 11380098
Join Date: Aug 2010
Location: NE Oregon
Device: Kobo Sage, Pocketbook Era, Kobo Forma, Kindle Oasis 2
|
One thing I just noticed, it may just have been a typo on your part posting it here, but shouldn't the code actually be:
Code:
.italic { font-style: italic; } Edit: Oh, I use very simple code in my epubs and I have been just fine using <em></em> for italicized words. Works in ADE, works on Nook, works on Sony. Last edited by graycyn; 07-01-2011 at 12:29 AM. Reason: added additional sentence |
![]() |
![]() |
![]() |
#6 |
Nameless Being
|
As you have not posted the epub file for us to have a look at (a very common occurrence with these sorts of questions) I am going to have to attempt to divine the solution blind.
I believe I know what is wrong! Go into your kitchen and unplug your toaster or blender or both if you have both. There is obviously radio frequency interference with those appliances. On the other hand you could get rid of all those <span class="italic">some text</span> entries and replace them with <i>some text</i> or <em>some text</em> if you like. Then check your CSS and remove font-style: italic; from the I or EM definitions. SPAN and DIV have their uses but why use them to replace I or EM (or B or STRONG for that matter)? Of course, Calibre not using <p> for bog standard paragraphs is silly too. |
![]() |
![]() |
#7 | |
Carol
![]() Posts: 8
Karma: 10
Join Date: Jun 2011
Location: Toronto, Canada
Device: kobo
|
Quote:
|
|
![]() |
![]() |
![]() |
#8 | |
Carol
![]() Posts: 8
Karma: 10
Join Date: Jun 2011
Location: Toronto, Canada
Device: kobo
|
Quote:
![]() I had already tried using simply <em>some text</em> and <i>some text</i> to no avail. I agree that simple is best for ebooks. As ereading devices are offering more and more control to the individual reader (the new Kobo firmware now allows the reader to select from several fonts or install their own fonts, set line spacing and margins) I think in most cases we should not be embedding fonts or specifying margin widths or line spacing. Only in relative ways as for headings or required white space. When I did books for Kindle, I removed all span tags and almost all class attributes, leaving simply <p> as you suggested for most paragraphs. It was only in my converting the PRC files that I had prepared to upload to Amazon to EPUB (through Calibre and Sigil) that I ended up with all sorts of CSS stuff. Anyway, I've seen a few places now that have said that books which have been sideloaded to the Kobo have a problem with italics and bold since the new firmware release a few days ago. I expect Kobo will fix this soon. I'm pretty confident that has caused my problem. Thanks very much to those of you who offered help! Last edited by Mookiemon; 07-01-2011 at 10:45 AM. Reason: missing word |
|
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,220
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,220
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
One thing to note. Do not use Calibre's viewer to test your ePub. Use ADE to test your ePub.
|
![]() |
![]() |
![]() |
#11 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,913
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#12 |
Carol
![]() Posts: 8
Karma: 10
Join Date: Jun 2011
Location: Toronto, Canada
Device: kobo
|
It looks fine in ADE. Thanks.
![]() |
![]() |
![]() |
![]() |
#13 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Quote:
Dale |
|
![]() |
![]() |
![]() |
#14 | |
Never spit into the wind.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 328
Karma: 23499
Join Date: Jun 2011
Location: New Westminster, BC
Device: Kobo Original, Kobo Touch, Kobo Android(smartphone & tablet)
|
Quote:
Last edited by Joe563; 07-13-2011 at 06:41 PM. Reason: Clarification |
|
![]() |
![]() |
![]() |
#15 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,220
Karma: 145488788
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Fixed in v1.9.6 firmware.
|
![]() |
![]() |
![]() |
Tags |
bold, italic, kobo ereader, sigil |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Re Entering Title in Bold or Bold And Colour Font | pricespringer | Library Management | 1 | 05-09-2011 04:45 AM |
italic, bold etc to normal | cybmole | Sigil | 11 | 03-04-2011 10:37 AM |
Italic-Schnitt verschwindet mit Sigil | Alaska | Erste Hilfe | 4 | 05-01-2010 04:40 AM |
Bold in Sigil, not on my reader? | PKFFW | Sigil | 2 | 11-29-2009 04:55 PM |
PRS-500 Tags for Bold, Italic, Center, Etc. in LRF? | EatingPie | Sony Reader Dev Corner | 9 | 04-07-2007 01:06 AM |