![]() |
What part of the CSS can cause this? (smallcaps related in Sigil)
Dear ePub experts,
I need your help again. I'm working on an ePub produced by InDesign CS5. Original document is a complex book designed for print—I had to simplify the styles a lot but after some work (thanks for the help I got here) I managed to get a decent ePub export and started to tweak it with Sigil. There are many small problems with the formatting, but the biggest problem is that the smallcaps are doing weird things that I don't understand at all. Specially in Sigil. I will show you the CSS and an example from one of the xhtml file—my question is simple: how can the text be shown as smallcaps in this situation? The xhtml file looks like this, in the <body> tag there is: Code:
<h1 class="titre-chapitre" id="toc-anchor">Chapter Title</h1>Code:
h1.titre-chapitre {Also, the smallcaps don't appear in ADE (but I think that is just because it doesn't support smallcaps or something), and they appear almost correctly in Firefox... Last weird thing with this particular ePub: when I open it in Sigil on my Mac, scrolling in a xhtml file is very very laggy. It's not doing this on my PC—and my PC is considerably older and slower than my new Macbook Pro. Did someone else experienced something similar with Sigil on different platforms with same file? And no problem with other ePub so I'm wondering what is wrong with this one (my first created with InDesign). Thanks again for your help, Michael |
Edit...misread post
InDesign isn't the problem. I'm guessing it's a funny display thing with Sigil. I get a similar issue with ADE on OSX, (sans-serif displaying instead of serif, that type of thing)... Try closing all your open fonts Trash the Sigil preferences and see if that fixes your problem |
Code:
h1.titre-chapitre { |
What he had is what comes out of InDesign.
There wasn't anything wrong with his original CSS. Nothing that would make small caps to appear .i.e font-variant: small-caps; |
It indeed was a "funny display thing" with Sigil. I don't know exactly what "fixed" it, but text went back to normal display while I was playing with something that seemed unrelated in the CSS (an element unrelated to those I posted). I just hope that it really isn't a problem with the ePub—I would hate to see the text appears all in smallcaps on certain e-readers.
That said, since JSWolf cleaned my CSS, I have a couple questions on the subject. First, I see that "line-height" attribute was removed: is it because this element isn't really used by e-readers? I was thinking of removing it but wasn't sure. I see that "font-size: normal" and "font-variant: normal" (I let that one there thinking that it could help avoid smallcaps) were removed. And the font-size of the <h1> element declared with "x-large" value instead of em: why is it better to do this? Also is there an advantage to declaring the 4 margins separately instead of all on same line? And, last question about css, why declaring the margins in pixels instead of em? Now that I'm getting "better" with my InDesign/ePub workflow, I guess I'll spend a couple of hours watching the CSS training on Lynda.com. Thanks a lot for your help and advices. |
Quote:
|
Quote:
Quote:
Quote:
Quote:
Quote:
|
You guys rock! Thanks again—much appreciated.
|
Quote:
|
Quote:
As for the reason for the separate margins, I just find it's easier to read. As far as the font size in the h1 CSS entry, I really should have removed that line and let h1 be it's default size. And if h1 is too large, change it to h2 and change it to h2 in the CSS as well. |
Quote:
Quote:
Quote:
Quote:
|
Quote:
Code:
span.smallcaps {And at the time of writing this I checked the same file in the Calibre viewer and it only accepted my h1.title smallcaps, not even the small caps declared in p.chaptertitle. Small caps is the most mysterious part of the formatting so far... There was also a mysterious problem with "text-align" in iBooks, but thanks to Liz Castro's blog I fixed the problem by adding <span> and </span> inside the element I want to align differently. |
Quote:
Quote:
Quote:
Quote:
|
Quote:
https://www.mobileread.com/forums/sho...45&postcount=3 Quote:
|
Quote:
|
| All times are GMT -4. The time now is 05:59 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.