Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-28-2018, 11:11 AM   #16
Wlan
Enthusiast
Wlan began at the beginning.
 
Wlan's Avatar
 
Posts: 25
Karma: 10
Join Date: Jun 2018
Device: none
Quote:
Originally Posted by Hitch View Post
If you want to provide the file, I'll test it. The other thing I feel compelled to point out is that you should run the MOBI file through the KDP, download the resulting "preview mobi" and crack that open to see how your CSS survived the trip. I've seen mobi files undergo significant line-height modifications, at the KDP.

Hitch
Here is the file for the tests.

Thanks!
Attached Files
File Type: epub Drop Caps Test.epub (17.6 KB, 251 views)
Wlan is offline   Reply With Quote
Old 06-28-2018, 11:57 AM   #17
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Wlan View Post
Here is the file for the tests.

Thanks!
The book is failing to compile with the older Kindlegen. At least THREE CSS elements/properties were removed, in the building--max height, max width, and position:absolute, which I expected. AND, no surprise, line-height with an absolute property. But, that's the older KindleGen.

It does build with Kindlegen 3, under KP3.x. What's interesting, though, is that the resulting MOBI is pretty awful on KP2.9xx, which I've always found more accurate a representation of the results, than KP3. It seems fine on KP3. I fully expect, of course, that it will be non compos mentis for any KF7 devices, but all Drops are, so that is moot.

Now...Amazon's made a LOT of changes, recently; many in a very short period of time. I'm going to have to load this compiled file to my real devices, to see how it appears. I'll report back.

Hitch
Hitch is offline   Reply With Quote
Advert
Old 06-28-2018, 12:08 PM   #18
Wlan
Enthusiast
Wlan began at the beginning.
 
Wlan's Avatar
 
Posts: 25
Karma: 10
Join Date: Jun 2018
Device: none
Quote:
Originally Posted by Hitch View Post
The book is failing to compile with the older Kindlegen. At least THREE CSS elements/properties were removed, in the building--max height, max width, and position:absolute, which I expected. AND, no surprise, line-height with an absolute property. But, that's the older KindleGen.

It does build with Kindlegen 3, under KP3.x. What's interesting, though, is that the resulting MOBI is pretty awful on KP2.9xx, which I've always found more accurate a representation of the results, than KP3. It seems fine on KP3. I fully expect, of course, that it will be non compos mentis for any KF7 devices, but all Drops are, so that is moot.

Now...Amazon's made a LOT of changes, recently; many in a very short period of time. I'm going to have to load this compiled file to my real devices, to see how it appears. I'll report back.

Hitch
Awesome!!!
Wlan is offline   Reply With Quote
Old 06-28-2018, 12:15 PM   #19
Wlan
Enthusiast
Wlan began at the beginning.
 
Wlan's Avatar
 
Posts: 25
Karma: 10
Join Date: Jun 2018
Device: none
The CSS that is not compiling is referring to the cover page that I use an alternative responsive method.

Also the EPUB is in version 3 so maybe this can affect.

I know it works well on Google Books, Ibooks and Kindle apps.
Wlan is offline   Reply With Quote
Old 06-28-2018, 12:23 PM   #20
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Wlan View Post
The CSS that is not compiling is referring to the cover page that I use an alternative responsive method.

Also the EPUB is in version 3 so maybe this can affect.

I know it works well on Google Books, Ibooks and Kindle apps.
No--not the line-height. That's not the cover, that's essential to the Dropcaps, which I believe was discussed earlier in this thread.

Kindle apps render quite differently than actual devices. I'm not saying that this can't work--but it also needs testing at the KDP, because, as I previously mentioned, not all CSS survives that trip. I know for a fact that I had a client that came to us from another bookmaker, because he wanted this and that, and the other bookmaker didn't have the skillset; however, the other bookmaker made his book double-spaced, effectively--the line-heights.

I had to prove to the client that if he'd uploaded the other MOBI file at the KDP, that that fixed line-height would be REMOVED, entirely, and replaced with Amazon's default line-heights--because they strictly forbid messing with that. Yours is set a 1.2, which might skate, solely because that's the same as the default size, give or take a lie or two.

Hitch
Hitch is offline   Reply With Quote
Advert
Old 06-28-2018, 12:53 PM   #21
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Paperwhite/voyage..

As I expected, due to long years of doing this and the frustration of drops, this is not working particularly well in the Paperwhite family of devices. I'm a bit swamped, today, but I'll get some screenshots, and while I'm at it, I'll test it on the new F10, too.

But, if you've seen Drop attempts on a PPW device before, you've seen this. Nothing, unfortunately, new. :-(

Hitch
Hitch is offline   Reply With Quote
Old 06-28-2018, 12:55 PM   #22
RbnJrg
Wizard
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 1,635
Karma: 8566337
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Hitch View Post
The book is failing to compile with the older Kindlegen. At least THREE CSS elements/properties were removed, in the building--max height, max width, and position:absolute, which I expected. AND, no surprise, line-height with an absolute property. But, that's the older KindleGen.

It does build with Kindlegen 3, under KP3.x. What's interesting, though, is that the resulting MOBI is pretty awful on KP2.9xx, which I've always found more accurate a representation of the results, than KP3. It seems fine on KP3. I fully expect, of course, that it will be non compos mentis for any KF7 devices, but all Drops are, so that is moot.

Hitch
Please Hitch, could you tell me where can I find Kindlegen3 inside KP3 (I only could find version 2.9 in the folder Kindle Previewer 3\lib\fc\bin). Many thanks in advance.

Rubén
RbnJrg is offline   Reply With Quote
Old 06-28-2018, 03:42 PM   #23
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Screenshots of tests...

Hi, guys:

Ok, to recap, I built the MOBI from the provided ePUB, using KP3.xx. I then loaded the resulting MOBI file onto my PPW and my KFire 10", figuring that covered a range of ages and advancement of devices. Attached are the relevant screenshots; the single screen, somewhat normal-sized, is the PPW, with various fonts, etc.; the two-page/screen view and the long portrait view is my Fire 10".

The screenshots speak for themselves. This solution, in my opinion, is not viable for the MOBI environment, at least, not more so than what most of us already do.

Hitch
Attached Thumbnails
Click image for larger version

Name:	screenshot_2018_06_28T09_46_24-0700.png
Views:	285
Size:	32.2 KB
ID:	164709   Click image for larger version

Name:	Screenshot_2018-06-28-12-24-24.png
Views:	281
Size:	437.9 KB
ID:	164710   Click image for larger version

Name:	Screenshot_2018-06-28-12-25-02.png
Views:	334
Size:	244.6 KB
ID:	164711   Click image for larger version

Name:	Screenshot_2018-06-28-12-26-37.png
Views:	281
Size:	275.8 KB
ID:	164712   Click image for larger version

Name:	screenshot_2018_06_28T09_46_36-0700.png
Views:	297
Size:	26.0 KB
ID:	164713  
Hitch is offline   Reply With Quote
Old 06-28-2018, 04:02 PM   #24
Wlan
Enthusiast
Wlan began at the beginning.
 
Wlan's Avatar
 
Posts: 25
Karma: 10
Join Date: Jun 2018
Device: none
Quote:
Originally Posted by Hitch View Post
Hi, guys:

Ok, to recap, I built the MOBI from the provided ePUB, using KP3.xx. I then loaded the resulting MOBI file onto my PPW and my KFire 10", figuring that covered a range of ages and advancement of devices. Attached are the relevant screenshots; the single screen, somewhat normal-sized, is the PPW, with various fonts, etc.; the two-page/screen view and the long portrait view is my Fire 10".

The screenshots speak for themselves. This solution, in my opinion, is not viable for the MOBI environment, at least, not more so than what most of us already do.

Hitch
If your MOBI removes the line-height like you said, it really is not supposed to work.

Can you confirm if this was the case?

Or do you think it's for some other reason?
Wlan is offline   Reply With Quote
Old 06-28-2018, 04:14 PM   #25
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Wlan View Post
If your MOBI removes the line-height like you said, it really is not supposed to work.

Can you confirm if this was the case?

Or do you think it's for some other reason?
I did not remove the line-height, and did not run these through KDP. These were simply converted via KindleGen. I changed nothing. I've attached the file; you can unpack it and review what was altered if such is the case.

My personal gut take on it is that Amazon says very clearly not to set the line-heights, etc. {shrug}.

P.S.: these results were easily viewable in Kindle Previewer 2.9xx, by the way, as well.
PPS: As I believe I mentioned previously, the line-height settings were ripped out of the BODY tag, which I expected it to do.

Hitch
Attached Files
File Type: mobi Drop Caps Test.mobi (87.7 KB, 223 views)

Last edited by Hitch; 06-28-2018 at 04:18 PM. Reason: Added P.S. and PPS
Hitch is offline   Reply With Quote
Old 06-28-2018, 04:54 PM   #26
Wlan
Enthusiast
Wlan began at the beginning.
 
Wlan's Avatar
 
Posts: 25
Karma: 10
Join Date: Jun 2018
Device: none
Quote:
Originally Posted by Hitch View Post
I did not remove the line-height, and did not run these through KDP. These were simply converted via KindleGen. I changed nothing. I've attached the file; you can unpack it and review what was altered if such is the case.

My personal gut take on it is that Amazon says very clearly not to set the line-heights, etc. {shrug}.

P.S.: these results were easily viewable in Kindle Previewer 2.9xx, by the way, as well.
PPS: As I believe I mentioned previously, the line-height settings were ripped out of the BODY tag, which I expected it to do.

Hitch
I made specific calculations to work on the MOBI.

Please try this file. Should work for 2, 3 and 4 lines.
Attached Files
File Type: epub Drop Caps Test.epub (17.8 KB, 241 views)
Wlan is offline   Reply With Quote
Old 06-28-2018, 05:24 PM   #27
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Wlan View Post
I made specific calculations to work on the MOBI.

Please try this file. Should work for 2, 3 and 4 lines.
Did you run it and test it on KP 2.9xx?

Hitch
Hitch is offline   Reply With Quote
Old 06-28-2018, 05:36 PM   #28
Wlan
Enthusiast
Wlan began at the beginning.
 
Wlan's Avatar
 
Posts: 25
Karma: 10
Join Date: Jun 2018
Device: none
Quote:
Originally Posted by Hitch View Post
Did you run it and test it on KP 2.9xx?

Hitch
I did not.

How is it on PPW and KFire 10?
Wlan is offline   Reply With Quote
Old 06-28-2018, 05:43 PM   #29
Hitch
Bookmaker & Cat Slave
Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.Hitch ought to be getting tired of karma fortunes by now.
 
Hitch's Avatar
 
Posts: 11,503
Karma: 158448243
Join Date: Apr 2010
Location: Phoenix, AZ
Device: K2, iPad, KFire, PPW, Voyage, NookColor. 2 Droid, Oasis, Boox Note2
Quote:
Originally Posted by Wlan View Post
I did not.

How is it on PPW and KFire 10?
Which? The new file? I don't know yet. I have this pesky darn business to run, and these egregiously annoying folks called "customers" that think I should be servicing THEM, instead of testing eBook stuff for other people, selfish bustards.

It'll be a while, maybe even tomorrow. On top of those pesky customers, I happen to have this positively grim backache today, and it's denting my normally chipper personality.

Hitch
Hitch is offline   Reply With Quote
Old 06-28-2018, 06:24 PM   #30
Wlan
Enthusiast
Wlan began at the beginning.
 
Wlan's Avatar
 
Posts: 25
Karma: 10
Join Date: Jun 2018
Device: none
For those who want to test, this code should work on the vast majority of devices

CSS:

@charset "utf-8";
*{margin:0%;padding:0%;border-width:0;}
html{height:100%;}
body{height:100%;line-height:1.2;}
body *{line-height:inherit;}
p{text-align:justify;text-indent:6.4mm;}
.removeti{text-indent:0%;}

/* 2 Lines(2.333em) Drop Caps for line-height 1.2 Example */
span.dropcaps2{
float:left;
font-size:1.944166666666667em;
height:1.2em;
line-height:1.2em;
margin-right:0.04em; /* optional */
margin-left:0.04em; /* optional */
}

/* 3 Lines(3.5em) Drop Caps for line-height 1.2 Example */
span.dropcaps3{
float:left;
font-size:2.916666666666667em;
height:1.2em;
line-height:1.2em;
margin-right:0.04em; /* optional */
margin-left:0.04em; /* optional */
}

/* 4 Lines(4.667em) Drop Caps for line-height 1.2 Example */
span.dropcaps4{
float:left;
font-size:3.889166666666667em;
height:1.2em;
line-height:1.2em;
margin-right:0.04em; /* optional */
margin-left:0.04em; /* optional */
}

HTML:

<p class="removeti"><span class="dropcaps2">L</span>orem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a nunc ac nibh venenatis aliquet. Cras posuere, dolor eget aliquet lobortis, lorem quam viverra purus, non pretium urna tortor ac neque. Fusce iaculis justo eget luctus mattis. Pellentesque finibus nisi eu aliquam porta. Nam ut pharetra ligula, eget venenatis ex. Ut vel urna elementum, tincidunt quam at, auctor ipsum. Suspendisse sagittis metus non ante ultrices lacinia. Morbi quis orci erat. Mauris sed sapien maximus, aliquam mauris sed, ornare ante. Donec in ultricies sapien, sed aliquam est. Vivamus tristique sapien a dolor tincidunt tempor. Cras pretium sagittis nulla, in suscipit libero feugiat auctor. In ac dui id velit porta aliquam eget vitae eros.</p>
<br/>
<p class="removeti"><span class="dropcaps3">L</span>orem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a nunc ac nibh venenatis aliquet. Cras posuere, dolor eget aliquet lobortis, lorem quam viverra purus, non pretium urna tortor ac neque. Fusce iaculis justo eget luctus mattis. Pellentesque finibus nisi eu aliquam porta. Nam ut pharetra ligula, eget venenatis ex. Ut vel urna elementum, tincidunt quam at, auctor ipsum. Suspendisse sagittis metus non ante ultrices lacinia. Morbi quis orci erat. Mauris sed sapien maximus, aliquam mauris sed, ornare ante. Donec in ultricies sapien, sed aliquam est. Vivamus tristique sapien a dolor tincidunt tempor. Cras pretium sagittis nulla, in suscipit libero feugiat auctor. In ac dui id velit porta aliquam eget vitae eros.</p>
<br/>
<p class="removeti"><span class="dropcaps4">L</span>orem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a nunc ac nibh venenatis aliquet. Cras posuere, dolor eget aliquet lobortis, lorem quam viverra purus, non pretium urna tortor ac neque. Fusce iaculis justo eget luctus mattis. Pellentesque finibus nisi eu aliquam porta. Nam ut pharetra ligula, eget venenatis ex. Ut vel urna elementum, tincidunt quam at, auctor ipsum. Suspendisse sagittis metus non ante ultrices lacinia. Morbi quis orci erat. Mauris sed sapien maximus, aliquam mauris sed, ornare ante. Donec in ultricies sapien, sed aliquam est. Vivamus tristique sapien a dolor tincidunt tempor. Cras pretium sagittis nulla, in suscipit libero feugiat auctor. In ac dui id velit porta aliquam eget vitae eros.</p>
<br/>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam a nunc ac nibh venenatis aliquet. Cras posuere, dolor eget aliquet lobortis, lorem quam viverra purus, non pretium urna tortor ac neque. Fusce iaculis justo eget luctus mattis. Pellentesque finibus nisi eu aliquam porta. Nam ut pharetra ligula, eget venenatis ex. Ut vel urna elementum, tincidunt quam at, auctor ipsum. Suspendisse sagittis metus non ante ultrices lacinia. Morbi quis orci erat. Mauris sed sapien maximus, aliquam mauris sed, ornare ante. Donec in ultricies sapien, sed aliquam est. Vivamus tristique sapien a dolor tincidunt tempor. Cras pretium sagittis nulla, in suscipit libero feugiat auctor. In ac dui id velit porta aliquam eget vitae eros.</p>
Wlan is offline   Reply With Quote
Reply

Tags
css, drop caps


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop Caps question holdit Sigil 11 08-24-2014 08:01 AM
Drop caps RandyK Conversion 2 05-18-2014 09:13 PM
Is there a way to strip drop caps? ficbot Calibre 2 08-30-2013 11:06 AM
drop caps in paperwhite? morrow Kindle Formats 7 12-11-2012 12:10 PM
Drop caps huebi ePub 8 03-04-2012 06:25 AM


All times are GMT -4. The time now is 01:52 AM.


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