![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 117
Karma: 584308
Join Date: Oct 2010
Location: San Francisco
Device: Kindle
|
AZW3 and dropcaps
I converted an epub that had dropcaps defined as follows:
.dropcaps { float: left; font-size: 60px; line-height: 50px; padding-top: 1px; margin-top: -.04em; margin-right: .04em; } After I converted the epub to AZW3, the dropcaps ended up as this: .dropcaps { float: left; font-size: 2em; <----- line-height: 50px; margin-right: 0.04em; margin-top: -0.04em; padding-top: 1px } I can fix this manually but is there another way to deal with this? Is this an issue with the font size key? Using version 0.8.68 Last edited by Jeff L; 09-14-2012 at 01:39 AM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,185
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
calibre converts font sizes to ems. You can turn off font size rescaling in the conversion options, though I dont recall if that also prevents conversion to ems or just resizing.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 117
Karma: 584308
Join Date: Oct 2010
Location: San Francisco
Device: Kindle
|
Disabling font size rescaling kept the original font size but then the line height changed.
I don't mind the change to em from px, it's that the conversion doesn't create an equivalent size. I'll just do manual edits. Thanks. |
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
If you have font size rescaling ON then you also need to check the 8 values in the Font size key just below it. Could it be that the 8th value is currently set to 24? This would mean that nothing in your converted file will be >24pt. Try setting it higher to 36 or 48, whatever size you'd like your dropcaps to be. I have mine set to 36. This equates to my dropcaps font-size in the converted epub css file being 3em. My base font-size is set at 12pt (1em). I guess it's possible that the maths is slightly more complex if the base font-size is not 12pt.
|
![]() |
![]() |
![]() |
#5 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 117
Karma: 584308
Join Date: Oct 2010
Location: San Francisco
Device: Kindle
|
Thanks. The font size key did the trick for the font size but now I get the line height changing all the time. It's getting set to 1.2 without any unit named. I expect it means 1.2em.
I'm trying to make AZW3/older mobi packages, that is, I'm using the option to make one file that has both formats (I have older and newer Kindles in the family). If I make files with only AZW3, then I can edit them afterwards. But with the combo files, editting them removes the older mobi format so I can't edit them afterwards. I going to try Kindlegen and see what I get. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
I think your line-height problem is also to do with your conversion settings. On the same Look&Feel page, just under the Font size key, there are 2 line-height boxes. I'm not sure which one of them is the culprit, but my settings are
Minimum line height: 0% Line height: 0pt |
![]() |
![]() |
![]() |
#7 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,889
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
@Jeff L by default Minimum line height is set to 120% if you want to disable this, the pop-up screen says to set it to 0%.
|
![]() |
![]() |
![]() |
#8 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 117
Karma: 584308
Join Date: Oct 2010
Location: San Francisco
Device: Kindle
|
Yes, that was it. Line height now remains as it was. Of course, different Kindles interpret the settings differently, but that's a separate issue.
Karma all around. |
![]() |
![]() |
![]() |
#9 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,088
Karma: 144284184
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,248
Karma: 16539642
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Sounds like another good reason for me to stick with epub for the forseeable, then. My only Kindle-like hands-on experience to date has been Kindle for Android, which I found distinctly underwhelming.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dropcaps code wanted | JSWolf | ePub | 22 | 09-19-2012 02:31 AM |
CSS / dropcaps | Oldpilot | Sigil | 49 | 09-17-2012 09:44 AM |
TOC in AZW3 | pirl8 | Calibre | 2 | 08-18-2012 03:39 PM |
AZW3 | sespr | Conversion | 1 | 06-10-2012 05:42 PM |
Dropcaps example in User Manual FAQ | jackie_w | Calibre | 7 | 10-28-2009 06:52 AM |